Skip to content

Commit 76a1a8b

Browse files
ci(travis): review config
1 parent 7e022c6 commit 76a1a8b

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.travis.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,11 @@ notifications:
77
on_success: never
88
on_failure: always
99
python:
10+
- "3.5"
1011
- "3.6"
1112
- "3.7"
12-
# Trigger a push build on master and dependabot branches + PRs build on every branches
13-
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
14-
branches:
15-
only:
16-
- master
17-
- /^dependabot.*$/
18-
before_install:
19-
- export PATH="$HOME/.config/composer/vendor/bin:$PATH"
20-
- export TRAVIS_NODE_VERSION="lts/*"
13+
- "3.8"
2114
install:
22-
- rm -rf ~/.nvm
23-
- git clone https://github.com/creationix/nvm.git ~/.nvm
24-
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
25-
- source ~/.nvm/nvm.sh
26-
- nvm install $TRAVIS_NODE_VERSION
2715
- travis_retry pip install --upgrade pip
2816
- pip -V
2917
- travis_retry pip install --upgrade -r requirements.txt
@@ -35,8 +23,15 @@ jobs:
3523
include:
3624
- stage: release
3725
node_js: lts/*
38-
script:
39-
- nvm install lts/* && nvm use lts/*
26+
before_install:
27+
- export TRAVIS_NODE_VERSION="lts/*"
28+
install:
29+
- rm -rf ~/.nvm
30+
- git clone https://github.com/creationix/nvm.git ~/.nvm
31+
- (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
32+
- source ~/.nvm/nvm.sh
33+
- nvm install $TRAVIS_NODE_VERSION
4034
- npm prune
41-
- npm i
35+
- travis_retry npm i
36+
script:
4237
- npx semantic-release

0 commit comments

Comments
 (0)