.gitlab-ci.yml 1.13 KB
Newer Older
Pierre Aubert's avatar
Add CI  
Pierre Aubert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
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: