WSL/SLF GitLab Repository

Commit 994a8eb2 authored by Adrien Michel's avatar Adrien Michel
Browse files

Update .gitlab-ci.yml file

parent 9aa76ea3
Pipeline #58 passed with stages
in 6 minutes and 39 seconds
......@@ -15,6 +15,7 @@
stages:
- build-metoio
- clean-build-metoio # Retry to build meteoio fecthing clean files if previous build had an error
- build-snowpack
- test
......@@ -25,24 +26,34 @@ cache:
- meteoio
- bin
- lib
- snowpack/*/CMakeFiles/
- snowpack/*/CMakeFiles/
- CMakeFiles
build-job-mio:
stage: build-metoio
interruptible: true
script:
- ls
- REPOSRC=https://gitlabext.wsl.ch/snow-models/meteoio.git
- LOCALREPO=meteoio
- LOCALREPO_VC_DIR=$LOCALREPO/.git
- if [ ! -d $LOCALREPO_VC_DIR ]; then rm -rf $LOCALREPO; git clone $REPOSRC $LOCALREPO; else cd $LOCALREPO; git pull; cd .. ; fi
- cd meteoio
- cmake . -DCMAKE_INSTALL_PREFIX=local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DMETEOIO_TIMESERIES=OFF
- make meteoio -j4
- make install
clean-build-job-mio:
stage: clean-build-metoio
interruptible: true
script:
- REPOSRC=https://gitlabext.wsl.ch/snow-models/meteoio.git
- LOCALREPO=meteoio
- rm -rf $LOCALREPO
- git clone $REPOSRC $LOCALREPO
- cd meteoio
- cmake . -DCMAKE_INSTALL_PREFIX=local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DMETEOIO_TIMESERIES=OFF
- make meteoio -j4
- make install
when: on_failure
build-job-snp:
stage: build-snowpack
interruptible: true
......@@ -60,6 +71,6 @@ unit-test-job:
stage: test
interruptible: true
script:
- cmake . -DMETEOIO_INCLUDE_DIR=meteoio/local/include -DMETEOIO_LIBRARY=meteoio/local/lib/libmeteoio.a -DCMAKE_INSTALL_PREFIX=local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DBUILD_TESTING=ON
- cmake . -DMETEOIO_INCLUDE_DIR=meteoio/local/include -DMETEOIO_LIBRARY=meteoio/local/lib/libmeteoio.a -DCMAKE_INSTALL_PREFIX=local -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DBUILD_TESTING=ON #We need to re-run cmake in order to have the files needed by CTest
- make test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment