Skip to content

Commit b749dda

Browse files
committed
Add comments
1 parent 52840dc commit b749dda

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,33 @@ os:
66
- osx
77
- windows
88
script: npm run ci-test
9+
# When pushing a tagged commit, Travis adds two builds: one with the tag, one
10+
# without. We only want to build the one with the tag, because it's the one
11+
# that runs the deployment stage
912
if: '!(commit_message =~ /^Release/ && tag is blank)'
13+
# Deployment must happen after tests for the whole matrix have been performed,
14+
# so we use `jobs.include` with a different `stage`
1015
jobs:
1116
include:
1217
- stage: Deploy
18+
# We have already run tests
1319
script: skip
20+
# We want to run install step and keep built files for release
21+
skip_cleanup: true
22+
# We run `release-it` locally (which tagged the commit and create a
23+
# GitHub release) but we publish to npm only after CI success.
1424
deploy:
1525
provider: npm
1626
1727
api_key:
1828
secure: 'HGXkllgDvBpKufrSY73j9u2QqEm0aiKXpyLQ4DvwPTaOlFnWWe74j+eiNJvpdKoRoi9CZQGFnaO0ngzOUfGgxP5fa0N1Gt5Pjiwr2dcqsKgkN1OMozzkS8Wzzwtpulfs7hUdfydqjo0P+5A9qEPRA1yhn5TFUYompOT1IYZyyS8hJwrn0o516/ZkxzpJI75p3vUv62o+Fnd7RyWeCVKIjzS2lEV3YSsVeixlSFKJ08F7YtlWgwHju5wCkcYvtMH3S1XQz8SFGbnT74XKxb5SnEaIr6j3c4TS6JP0myCZL/t9YlRzPUHCsYRgxAs7IdsHr+eK+SBODHyfzpkBcTErfdyf74AymJu244EFT1jAGMeydq4ZYexrgcftVTPYsdmzSZJgSXoL7ziayXm1qstFmJPQrfcRHag0BEivPHl1nAvS2sstk7YdQQN/1ri39qi9oK24fdL8GQ7kcj9shRHBd2UTZDl8tE/3g0Ujn+iQsUeJ/JFAlaa8hN9SaRGhG/dvdiYAu3lB8ga1aDKNlnHEkR6eR9GCPV8WjbooSNBSHEJC/cGHLzJeeF4By8prshCIBd3iPou6JDtjpyiVa2nOnlFIdU//fDdU0wq6tcp/LxUqYaBpHvU3LpklKVZzUAmipBnlKLgEpgt1sSpuJckTJOY+TWt6T3egYtieLeIiLqk='
19-
skip_cleanup: true
2029
on:
2130
tags: true
2231
cache: npm
32+
# This merges all LCOV files into one before sending to Coveralls, allowing
33+
# code coverage percentage to include OS/environment-specific coverage.
2334
env:
2435
global: COVERALLS_PARALLEL=true
2536
notifications:
26-
email: false
2737
webhooks: https://coveralls.io/webhook
38+
email: false

0 commit comments

Comments
 (0)