diff --git a/Jenkinsfile b/Jenkinsfile index 12dd2fb..c5d1f42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,37 +1,35 @@ pipeline { agent { dockerfile { additionalBuildArgs '--tag tamaas-environment'} } stages { stage('Configure') { steps { sh 'git submodule update --init --recursive' sh 'echo "py_exec = \'python3\'" >> build-setup.conf' sh 'echo "build_python = \'true\'" >> build-setup.conf' sh 'echo "build_tests = \'true\'" >> build-setup.conf' sh 'echo "use_googletest = \'true\'" >> build-setup.conf' } } - stage('Compile') { + stage('Compile CPU') { steps { sh 'scons' - sh 'mv build-release build-cpu' - sh 'scons backend=cuda' } } - stage('Compile tests') { + stage('Run tests') { steps { - sh 'PYTHONPATH=./build-cpu/python/ python -m pytest build-cpu' + sh 'PYTHONPATH=./build-release/python/ python -m pytest build-release' } } } post { always { deleteDir() } } }