.gitlab-ci.yml 688 Bytes
Newer Older
Emmanuel Papillon's avatar
Emmanuel Papillon 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
stages:
  - test
  - deploy

test:
  stage: test
  before_script:
    - source activate tango2.7
    - conda install --yes git
    - git clone https://gitlab.esrf.fr/ID15/id15.git
    - conda install --yes --channel http://bcu-ci.esrf.fr/stable --file bliss/requirements-conda.txt
    - conda install --yes --channel http://bcu-ci.esrf.fr/stable --file bliss/requirements-test-conda.txt
    - pip install bliss/
  script: python setup.py test
  artifacts:
    paths:
      - tests/htmlcov/
    expire_in: 7 days

pages:
  stage: deploy
  dependencies:
    - test
  script:
    - mv tests/htmlcov public/
  artifacts:
    paths:
      - public
    expire_in: 2 months
  only:
    - master