Skip to content

Commit a5e07d2

Browse files
ci(Travis): replaced travis-deploy-once with build stages
1 parent f4df4e9 commit a5e07d2

File tree

3 files changed

+1038
-2152
lines changed

3 files changed

+1038
-2152
lines changed

.travis.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ notifications:
1010
rooms:
1111
secure: S8cFuwL1mEKPWG238p4iIac6yZYw6hgNMOH878cZSEqb//GnNVriiR82B4uWj6QQ5K/l93KAK7LdB33Y8zk6OC4huutQwCMzU9g1BGbZC8LrMeXGnpXY+xmfldo8apr7JyL7u0mSam08YUDqyvHI+988iQTQjuXoW7o8fMrJ5ij0Rjdm2IqSqcJwX/6QxOVue1oURAUdDzllB88Ugzv/zNdqZ1NaVYCk4lVayCyDVJnuPtKM24g3DEyduKlwqfXOO2F6Fd0L4JpW6SOrHQhvwNwSwan6gp9dnevmnPgWOr0W32C7KFFQZSS1OyCX0HFxCGZyTjpFaHjqEow/abK7KxKlKVPJfr8Zqi1bG8YyM1Dgc3NJWchaXsKOcWxp4BvSqBYVpZx/ZAoqmFfazRmexhLTJKz9A1jH8SuxPEYadDjxBURDFjZe7woyxNGpQvOkvEJnUgowfiUeHDcAuU7IbSu0XDZPuks5drjJ0Pxzf1W+jP2nxrKeFqLisQa4qB/4fvPEgGYE9mGaKNiRFFRYWVwsLhOvOLwHH+1w+r3/nc4yAzMUnemwO0nONm0fr/72VGn1hFhaWBhrP6jTx9gShZ6iXer1qU+SuL9kzh79w/52NQDa9Q/6L7J9L7B9vGhaA4YQwKbK0xT5thw+XdNKjXtZLiuvHbnI0Vyv3BjaOaQ=
1212
on_success: always
13-
on_failure: always
13+
on_failure: always
1414
cache:
1515
directories:
1616
- ~/.npm
@@ -20,15 +20,24 @@ node_js:
2020
- '10'
2121
- '9'
2222
- '8'
23+
# Trigger a push build on master and dependabot branches + PRs build on every branches
24+
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
25+
branches:
26+
only:
27+
- master
28+
- /^dependabot.*$/
2329
before_install:
2430
- npm prune
2531
install:
26-
- npm i
32+
- travis_retry npm i
2733
before_script:
2834
- npm run build
2935
- npm run lint
3036
script:
3137
- npm run test
32-
after_success:
33-
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
34-
npm run documentation && npx travis-deploy-once "npx semantic-release" ; fi
38+
jobs:
39+
include:
40+
- stage: release
41+
node_js: lts/*
42+
script:
43+
- npx semantic-release

0 commit comments

Comments
 (0)