-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (53 loc) · 1.35 KB
/
Copy path.travis.yml
File metadata and controls
53 lines (53 loc) · 1.35 KB
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
language: bash
os: linux
dist: xenial
env:
global:
- UNIT_TEST=false
- MODELING_GAUSS=false
- MODELING_MULTI=false
- DEPLOY=true
branches:
only:
- master
- /^develop.*$/
- test
jobs:
include:
- stage: Unit test
name: Unit test
if: env(UNIT_TEST)=true
script: ./TDD/test_travis_docker.sh 'make'
- stage: Modeling
name: Gaussian Reflector
if: env(MODELING_GAUSS)=true
script: ./TDD/test_travis_docker.sh 'python -m unittest test_gaussianModelBuild'
- if: env(MODELING_MULTI)=true
script: ./TDD/test_travis_docker.sh 'python -m unittest test_multiLayerModelBuild'
name: Multi Layer
- stage: Deploy
name: Deploy
if: env(DEPLOY)=true
script: echo "Deploy"
before_deploy:
- git config --local user.name "dirack"
- git config --local user.email "rodolfo_profissional@hotmail.com"
- export TRAVIS_TAG=$(cat VERSION.md)
- ./deploy/build_release_message.sh
- ./deploy/build_changelog_update.sh
- ./deploy/build_dockerfile.sh
- git tag -a $TRAVIS_TAG -F tag.deploy
deploy:
provider: releases
token: $GITHUB_TOKEN
skip_cleanup: true
draft: true
file:
- tag.deploy
- Dockerfile.deploy
- CHANGELOG.deploy
on:
repo: Dirack/creGatherStack
branch:
- master
- test