.gitlab-ci.yml 1.13 KB
Newer Older
1 2 3 4 5 6 7


before_script:
  - make data
  - make germline

stages:
8
  - test_unit
9
  - test_functional
10
  - deploy
11 12

test_browser_unit:
13
  stage: test_unit
14
  script: make unit_browser
15 16 17
  artifacts:
    paths:
    - browser/
18 19 20
  only:
    - /^feature-c\/.*$/
    - prod-browser
21

22 23
test_browser-functional:
  stage: test_functional
24 25 26 27 28
  script:
    - make -C browser
    - source /etc/profile.d/rvm.sh
    - rvm use 2.1.1
    - make headless_browser
29 30 31
  artifacts:
    paths:
    - browser/
32 33 34
  only:
    - /^feature-c\/.*$/
    - prod-browser
35

36 37 38
deploy:
  stage: deploy
  script:
39 40
    - rsync -av --delete browser $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG
    - scp doc/analysis-example.vidjil $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG/browser/
41
  environment:
42
    name: review/$CI_BUILD_REF_NAME
Mikaël Salson's avatar
Mikaël Salson committed
43
    url: http://$CI_BUILD_REF_SLUG.ci.vidjil.org/?data=analysis-example.vidjil
44
    on_stop: stop_deploy
45 46
  only:
    - /^feature-c\/.*$/
47 48 49 50 51 52 53 54 55

stop_deploy:
  stage: deploy
  variables:
    GIT_STRATEGY: none
  script:
    - ssh $DEPLOY_SERVER "rm -rf $DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG"
  when: manual
  environment:
56
    name: review/$CI_BUILD_REF_NAME
57
    action: stop