Skip to content
Snippets Groups Projects
Commit c28926d3 authored by Franck Pérignon's avatar Franck Pérignon
Browse files

update CI. Run all tests

parent 9fa2a2cb
No related branches found
No related tags found
No related merge requests found
...@@ -16,29 +16,14 @@ config:debian: ...@@ -16,29 +16,14 @@ config:debian:
build:debian: build:debian:
image: fperignon/hysop:debian image: fperignon/hysop:debian
stage: build stage: build
script: script: "sh ci/build_install_clean.sh"
- cd build
- make
- make install
- cd ..
- python -c 'import hysop'
- cd build
- echo $'y\n'|make uninstall
- make clean
dependencies: dependencies:
- config:debian - config:debian
artifacts:
paths:
- build/
test:debian: test:debian:
image: fperignon/hysop:debian image: fperignon/hysop:debian
stage: test stage: test
script: script: "sh ci/run_tests.sh"
- cd build
- make
- ctest -VV -I 2,2
#- make test
dependencies: dependencies:
- build:debian - build:debian
...@@ -53,35 +38,15 @@ config:ubuntu: ...@@ -53,35 +38,15 @@ config:ubuntu:
build:ubuntu: build:ubuntu:
image: fperignon/hysop:ubuntu image: fperignon/hysop:ubuntu
stage: build stage: build
script: script: "sh ci/build_install_clean.sh"
- cd build
- make
- make install
- cd ..
- python -c 'import hysop'
- cd build
- echo $'y\n'|make uninstall
- make clean
- cd ..
- rm -rf build
dependencies: dependencies:
- config:ubuntu - config:ubuntu
#artifacts:
# paths:
# - build/
test:ubuntu: test:ubuntu:
image: fperignon/hysop:ubuntu image: fperignon/hysop:ubuntu
stage: test stage: test
script: script:
#- cd build
#- chmod -R 777 .
- useradd "hysoprunner" - useradd "hysoprunner"
- su "hysoprunner" -c "sh ci/run_tests.sh" - su "hysoprunner" -c "sh ci/run_tests.sh"
#- su "hysoprunner" -c "ctest -VV -I 1,4"
#- make test
dependencies: dependencies:
- build:ubuntu - build:ubuntu
#artifacts:
# paths:
# - build/
...@@ -4,4 +4,4 @@ cd build ...@@ -4,4 +4,4 @@ cd build
export FC=mpif90 CC=mpicc CXX=mpic++ export FC=mpif90 CC=mpicc CXX=mpic++
cmake -D CMAKE_BUILD_TYPE=Debug -DWITH_LIB_CXX=OFF .. cmake -D CMAKE_BUILD_TYPE=Debug -DWITH_LIB_CXX=OFF ..
make make
ctest -VV -I 1,4 make test
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment