Commit 4559331a authored by Matthieu Dorier's avatar Matthieu Dorier
Browse files

added CI files

parent 70c35581
#!/bin/bash
set -e
HERE=`dirname "$0"`
echo "Setting up Spack"
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack bootstrap
echo "Copying packages.yaml file"
cp $HERE/mcs-workstation-packages.yaml $HOME/.spack/linux/packages.yaml
echo "Setting up sds-repo"
git clone https://xgitlab.cels.anl.gov/sds/sds-repo.git
spack repo add sds-repo
echo "Installing depencencies"
spack install mpich
spack install ch-placement
spack install thallium
spack install sdskeyval
spack install yaml-cpp
spack install boost+serialization
spack install cmake
spack install libuuid
spack install cppunit
echo "List of packages"
spack find
echo "Loading packages"
spack load -r mpich
spack load -r ch-placement
spack load -r thallium
spack load -r sdskeyval
spack load -r yaml-cpp
spack load -r boost
spack load -r cmake
spack load -r libuuid
spack load -r cppunit
echo "Building HEPnOS"
mkdir build
cd build
cmake .. -DCMAKE_CXX_COMPILER=mpicxx -DENABLE_TESTS=ON -DBUILD_SHARED_LIBS=ON
make
make test
packages:
all:
providers:
mpi: [ mpich, openmpi ]
boost:
variants: ~atomic ~chrono ~date_time ~exception ~graph ~filesystem ~iostreams ~locale ~log ~math ~multithreaded ~program_options ~random ~regex +signals +singlethreaded ~system ~test ~thread ~timer ~wave
ch-placement:
version: [ develop ]
mercury:
variants: ~boostsys~verbose
margo:
version: [ develop ]
sdskeyval:
version: [ develop ]
yaml-cpp:
version: [ develop ]
thallium:
version: [ develop ]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment