-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
36 lines (32 loc) · 1.04 KB
/
.travis.yml
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
---
language: python
python:
- 3.7
branches:
only:
- master
jobs:
include:
- stage: CI - Test Codebase - Quality Gate
install:
- docker pull code4cwb/datascience-kit
script:
- docker run -it -v $(pwd):/app code4cwb/datascience-kit ./deploy.sh;
- stage: CD - Deploy
if: branch = master
install:
- docker pull code4cwb/datascience-kit
script:
- docker run -it -v $(pwd):/app code4cwb/datascience-kit ./deploy.sh;
before_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=$(cat VERSION)-$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://[email protected]/CodeForCuritiba/ds-curitiba-dados-abertos --tags
deploy:
provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file: clean_data/*
skip_cleanup: true