-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
71 lines (70 loc) · 1.82 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: python
dist: focal
sudo: false
branches:
except:
- /^v\d+\.*$/
- gh-pages
- travis-*
- /^untagged.*/
- /^feature.*/
matrix:
include:
- python: "3.5"
env:
- FLAG=false
TOXENV=py35
- python: "3.6"
env:
- FLAG=true
TOXENV=py36,doc,build
install:
- travis_retry pip install tox
script:
- tox
deploy:
- provider: script
skip_cleanup: true
script: >-
pip install -U bumpversion gitchangelog &&
git config --global user.email "[email protected]" &&
git config --global user.name "Travis CI" &&
git pull -t &&
git checkout -b travis-master-$TRAVIS_BUILD_NUMBER origin/$TRAVIS_BRANCH &&
bumpversion --tag --commit --message "[skip ci] Travis Build ${TRAVIS_BUILD_NUMBER}. Update version {current_version} --> {new_version}" patch
on:
branch: master
condition: $FLAG = true
- provider: script
skip_cleanup: true
script: >-
make clean-pyc clean-build build &&
pip install -U pystache gitchangelog &&
gitchangelog > CHANGELOG.md &&
git add CHANGELOG.md && git commit -m "[skip ci] @skip Generated CHANGELOG file" &&
git tag -f $(git describe --tags `git rev-list --tags --max-count=1`) &&
git checkout master &&
git merge travis-master-$TRAVIS_BUILD_NUMBER &&
git push --tags https://[email protected]/BBVA/data-refinery.git $TRAVIS_BRANCH &&
make codecov release doc &&
touch docs/build/html/.nojekyll
on:
branch: master
condition: $FLAG = true
- provider: releases
overwrite: true
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
branch: master
condition: $FLAG = true
notifications:
email:
recipients:
on_success: never
on_failure: always