Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 1042c6a

Browse files
ci(Travis): replace travis-deploy-once with build stages
... and add a security dep-bump
1 parent c01bac8 commit 1042c6a

File tree

3 files changed

+267
-1825
lines changed

3 files changed

+267
-1825
lines changed

.travis.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,26 @@ notifications:
66
77
on_success: never
88
on_failure: always
9-
perl:
10-
- "5.28"
11-
- "5.26"
129
cache:
1310
directories:
1411
- "~/.npm"
1512
- "node_modules"
13+
perl:
14+
- "5.28"
15+
- "5.26"
16+
# Trigger a push build on master and dependabot branches + PRs build on every branches
17+
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
18+
branches:
19+
only:
20+
- master
21+
- /^dependabot.*$/
1622
script:
17-
- ./scripts/coverage.sh
18-
after_success:
19-
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
20-
./scripts/generatedocs.sh &&
21-
git config --replace-all remote.origin.fetch +refs/heads/*:refs/remotes/origin/* &&
22-
git fetch --tags &&
23-
nvm install lts/* &&
24-
nvm use lts/* &&
25-
npm prune &&
26-
npm i &&
27-
npx travis-deploy-once "npx semantic-release" ; fi
23+
- ./scripts/coverage.sh
24+
jobs:
25+
include:
26+
- stage: release
27+
node_js: lts/*
28+
script:
29+
- npm prune
30+
- travis_retry npm i
31+
- npx semantic-release

0 commit comments

Comments
 (0)