Skip to content

Commit 75ecf9e

Browse files
ci(Travis): replace travis-deploy-once with build stages
... and add security dep-bump
1 parent c429972 commit 75ecf9e

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.travis.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,31 @@ notifications:
1111
secure: aOQtp4LspmuOoqhLU+e8TPV4OZljA233513ksPl3+c/4i2DfWwkgAIwENa7R8kMzE6p3moNH48p5Wr53KdioON/6AXUoUuJRZYgXIVzHxN1/ef0d0prBsJq6OzRuySv48ZF+aWrY/pyGOn9mQuYz/WiTX7li/V5aeb0JWYyr7QtiMxMYKsG1heYcV0JOa119Q3V1ELry4rxazp4jWsJxuCgUGzyIJYXgzLEF75rj00gQeiGEbpSpaIGTKZk36hX8vUKu0dN0MwycNnBkSPI8hn2oH9eEh0i0UEKkFdCxyIkMTiiMYq3eRlbxQvWFQJgBWhfSzaTTAWLZg81Ml61nS0srMiiUX0v57MSjOPDh6L1JXayUydVPleOoClOkgk+C6lUswVm1uV0mge4apyVOrNs0HidOwT3Ox/qGvr3lx4319NAHDaN0SGr+YxrV5L9RoLx3MIpCLwPNw3mMPea7HtVvn8rujEN6cajphu0mRWy1MM2A2HvkOCbiqQisoJgLbaG+68PheZxyf+tsrg+P54f3SjrtrbmccD4HkzqmxwJnN6pHL0S/VUOuGBAwUpR/KfMBbCvCGtI/12OGe0hsvBXuvTefZVeR1dQfTPT+cq08MVQN6PDwYhGqBUQujKrOfyVUxSQC/s+eZrjM4xYtKslqufa+h3OUNBZ5+/OMTK4=
1212
on_success: always
1313
on_failure: always
14-
python:
15-
- '3.5'
16-
- '3.6'
17-
- '3.7'
1814
cache:
1915
directories:
2016
- "~/.npm"
2117
- node_modules
18+
python:
19+
- '3.5'
20+
- '3.6'
21+
- '3.7'
22+
# Trigger a push build on master and dependabot branches + PRs build on every branches
23+
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
24+
branches:
25+
only:
26+
- master
27+
- /^dependabot.*$/
2228
install:
23-
- pip install -r requirements.txt
29+
- travis_retry pip install -r requirements.txt
2430
- pip install -e .
2531
script:
2632
- "./scripts/pep8check.sh"
2733
- "./scripts/coverage.sh"
28-
after_success:
29-
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
30-
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
31-
&& git fetch --tags && nvm install lts/* && nvm use lts/* && npm prune && npm i
32-
&& npx travis-deploy-once "npx semantic-release" ; fi
33-
branches:
34-
except:
35-
- "/^v\\d+\\.\\d+\\.\\d+$/"
34+
jobs:
35+
include:
36+
- stage: release
37+
node_js: lts/*
38+
script:
39+
- npm prune
40+
- npm i
41+
- npx semantic-release

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
"@semantic-release/git": "7.0.8",
5252
"@semantic-release/github": "5.2.10",
5353
"conventional-changelog": "3.1.3",
54-
"semantic-release": "^15.10.6",
55-
"travis-deploy-once": "^5.0.9"
54+
"semantic-release": "^15.13.12"
5655
},
5756
"dependencies": {},
5857
"release": {
@@ -118,7 +117,6 @@
118117
]
119118
},
120119
"scripts": {
121-
"semantic-release": "semantic-release",
122-
"travis-deploy-once": "travis-deploy-once"
120+
"semantic-release": "semantic-release"
123121
}
124122
}

0 commit comments

Comments
 (0)