before_script: - make data - make germline - make -C browser sha1 - cp -p doc/analysis-example.vidjil browser/ stages: - test_quality - test_unit - deploy_review - test_functional - test_shouldvdj - valgrind_unit - valgrind_functional - deploy_prod # Algorithm test_algo_unit: stage: test_unit script: make -C algo unit only: - /^feature-a\/.*$/ test_tools_unit: stage: test_unit script: make -C tools/tests only: - /^feature-a\/.*$/ test_algo_should: stage: test_functional script: make -C algo should only: - /^feature-a\/.*$/ test_algo_shouldvdj: stage: test_shouldvdj script: make -C algo shouldvdj only: - /^feature-a\/.*$/ algo_valgrind_unit: stage: valgrind_unit script: make -C algo valgrind_unit only: - /^feature-a\/.*$/ algo_valgrind_functional: stage: valgrind_functional script: make -C algo valgrind_should when: manual only: - /^feature-a\/.*$/ # Client test_browser_unit: stage: test_unit script: make unit_browser artifacts: paths: - browser/ only: - /^feature-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/ - prod-client test_browser-functional: stage: test_functional script: - make -C browser - source /etc/profile.d/rvm.sh - rvm use 2.1.1 - make headless_browser artifacts: paths: - browser/ only: - /^feature-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/ - prod-client code_quality: stage: test_quality script: make -C browser quality only: - /^feature-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/ - prod-client deploy_review: stage: deploy_review script: - rsync -av --delete browser $DEPLOY_SERVER:$DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG environment: name: review/$CI_BUILD_REF_NAME url: http://$CI_BUILD_REF_SLUG.ci.vidjil.org/?data=analysis-example.vidjil on_stop: stop_deploy only: - /^feature-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/ deploy_prod: stage: deploy_prod script: - rsync -av --delete browser $PROD_CLIENT_SERVER:$PROD_CLIENT_PATH - ssh $PROD_CLIENT_SERVER "cp -pr $PROD_CLIENT_PATH_TEMPLATE/browser $PROD_CLIENT_PATH" environment: name: production url: http://app.vidjil.org/?data=analysis-example.vidjil only: - prod-client stop_deploy_review: stage: deploy_review variables: GIT_STRATEGY: none script: - ssh $DEPLOY_SERVER "rm -rf $DEPLOY_SERVER_PATH$CI_BUILD_REF_SLUG" when: manual environment: name: review/$CI_BUILD_REF_NAME action: stop only: - /^feature-[cw]\/.*$/ - /^hotfix-[cw]\/.*$/