Commit 493d7f0a authored by Pierre Aubert's avatar Pierre Aubert
Browse files

Add CI

parent 6b56e29a
image: ctalapp/cta_analysis
stages:
- BuildTestinstall
- deploy
#- build
#- test
#- deploy
dailyBuildMasterAll:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
#cache:
#untracked: true
#paths:
#- build/
stage: BuildTestinstall
script:
- export LD_LIBRARY_PATH=/usr/lib
- source activate ${CONDA_ENV}
- env
- mkdir -p build
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DSELF_TESTS_MODE=yes
- make all
- make install
only:
- branches
- tags
tags:
pages:
variables:
CONDA_ENV_DIR: /opt/conda/envs/ctadev
stage: deploy
script:
- export LD_LIBRARY_PATH=/usr/lib
- source activate ${CONDA_ENV}
- env
- rm -fr build public
- mkdir -p build
- mkdir -p public
- cd build
- >
cmake ..
-DCMAKE_INSTALL_PREFIX=/usr
-DRELEASE_MODE=yes
-DDOC_MODE=yes
- make all
- make doc
- scp -r doc/html/* ../public
artifacts:
paths:
- public
expire_in: 1d
only:
- branches
- tags
tags:
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