Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to add a working 'test' job to gitlab-ci
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Aug 2018 09:58:53 +0000 (11:58 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 21 Aug 2018 10:02:39 +0000 (12:02 +0200)
.gitlab-ci.yml

index 3ef1530..4e6e0fc 100644 (file)
@@ -1,9 +1,9 @@
 image: debian:testing-slim
 
 image: debian:testing-slim
 
-.build: &build
+pages:
   script:
   script:
-  - apt-get update
-  - apt-get install -y python3-pip doxygen libboost-all-dev libboost-dev fig2dev
+  - apt update
+  - apt install -y libboost-all-dev libboost-dev python3-pip doxygen fig2dev
   - pip3 install --requirement docs/requirements.txt 
   - cd docs
   - sphinx-build -M html source/ build/
   - pip3 install --requirement docs/requirements.txt 
   - cd docs
   - sphinx-build -M html source/ build/
@@ -11,13 +11,12 @@ image: debian:testing-slim
   artifacts:
     paths:
     - public
   artifacts:
     paths:
     - public
-
-pages:
-  <<: *build
   only:
   - master
 
   only:
   - master
 
-test:
-  <<: *build
-  except:
-  - master
+tests:
+  script:
+  - apt update
+  - apt install -y libboost-all-dev libboost-dev cmake chrpath default-jdk valgrind gfortran
+  - cmake -Denable_model-checking=ON  -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON .
+  - make VERBOSE=1 && ctest --output-on-failure