Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gitlab-ci: pages only waits for the pip build, to speed things up
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 5 Mar 2020 10:50:29 +0000 (11:50 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 5 Mar 2020 10:50:32 +0000 (11:50 +0100)
- This way, the pages can be built before the tests are run

.gitlab-ci.yml

index 6e24120..380224c 100644 (file)
@@ -11,20 +11,6 @@ ctest:
   script:
   - cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=OFF -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON -DLTO_EXTRA_FLAG="auto" .
   - make -j$(nproc) VERBOSE=1 all tests && ctest -j$(nproc) --output-on-failure
-  artifacts:
-    paths:
-    - lib/
-    expire_in: 1 week
-
-pip:
-  image: debian:testing
-  stage: build
-  except:
-  - stable
-  script:
-  - apt-get --allow-releaseinfo-change update && apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
-  - python3 setup.py sdist
-  - cd dist && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build
 
 release:
   stage: build
@@ -50,11 +36,23 @@ release:
     - simgrid-*.jar
     - simgrid-*.tar.gz
 
+pip:
+  image: debian:testing
+  stage: build
+  except:
+  - stable
+  script:
+  - apt-get --allow-releaseinfo-change update && apt install -y python3-pip cmake libboost-dev g++ gcc pybind11-dev
+  - python3 setup.py sdist
+  - cd dist && tar xfz simgrid*.tar.gz && cd simgrid-*/ && python3 setup.py build
+  artifacts:
+    paths:
+    - lib/
+    expire_in: 1 week
+  
 pages:
   stage: deploy
   script:
-#  - cmake -Denable_model-checking=OFF -Denable_documentation=ON -Denable_compile_optimizations=OFF -Denable_smpi=OFF -Dpython=ON -DLTO_EXTRA_FLAG="auto" .
-#  - make -j$(nproc)
   - pip3 install --requirement docs/requirements.txt
   - cd docs
   - LC_ALL=C.UTF-8 ./Build.sh
@@ -71,6 +69,5 @@ pages:
     - public
   only:
   - master
-  dependencies:
-  - ctest
+  needs: ["pip"]