Commit 7fe1ad3d authored by French, Robert's avatar French, Robert
Browse files

Run tests separately from deployment

parent 0273b040
Loading
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
stages:
  - test
  - deploy

test:
  script:
  - ./tests/run.sh
  tags:
  - titan

deploy:
  script:
  - ./deploy.sh
  tags:
  - titan
  only:
  - master
+2 −1
Original line number Diff line number Diff line
@@ -8,10 +8,11 @@ module load PrgEnv-gnu
module swap gcc gcc/7.1.0

set -x
export HOME=$(pwd)
rm -rf $HOME/.spack

unset CRAYPE_VERSION
SPACKROOT=tests/artifacts/.spack
SPACKROOT=/sw/xk6/container-builder/$(git rev-parse HEAD)

if [ ! -d $SPACKROOT ]; then
	git clone https://github.com/spack/spack.git $SPACKROOT
+4 −2
Original line number Diff line number Diff line
#!/bin/bash -e
virtualenv .venv
source .venv/bin/activate
pip install openstack

echo "## Testing building with spack"
./tests/integration/build_with_spack.sh
find tests -name "test_*.sh" -exec {} +