forked from mozilla/web-ext
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (69 loc) · 2.89 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
language: node_js
os:
- linux
- windows
node_js:
- '10'
- '12'
- '14'
# Skip node_js 6 on travis windows workers (as it often fails because
# travis fails to init the node_js 6 environment).
jobs:
fast_finish: true
exclude:
# The travis CI windows worker are slower than the linux ones, restrict the
# jobs running on windows to just the last nodejs version listed in the.
# node_js property.
- node_js: '10'
os: windows
- node_js: '12'
os: windows
include:
- stage: npm audit and lint github PR title
## Keep this in sync with the last version listed in the node_js property.
node_js: '14'
os: linux
script:
- npm run audit-deps
- npm run travis-pr-title-lint
- stage: deploy on npm
## Keep this in sync with the last version listed in the node_js property.
node_js: '14'
os: linux
script: echo "Deploying to npm..."
## Make sure we have a production build.
before_deploy: NODE_ENV=production npm run build
deploy:
provider: npm
email: [email protected]
# Travis dpl v2 (See https://docs.travis-ci.com/user/deployment-v2/providers/npm/)
edge: true
# Note that cleanup runs *after* the before_deploy script.
cleanup: false
# This is the API key for npm user 'addons-robot'
api_token:
secure: CVUpq7hp1/CvAD40vA0cm+5jI7Izlsb83mCNrAt7Qcjb4orFWTHUxE3Y0a5wGS2gAIr5l/hd/CruXdy4EfMVS6GyW5qhTeWxS0b36+t542z4Xlk9eY4UvB5DdKMJKH8RT+Sz8E/Sx6fhISgvQW48rGJCq3ePaH54mLkXLRJW7HqZxSnrAGc8XLiTJOUPKhOzo4AALXvLKDB+doTtHtSDFD+G+kpABMlJBw849V4mGVi/oUpK5Z/tnCjBBKIaU2Cw//2rE0Wo2mN4osq9eUHxNNTA4fTZoEONaDN/zeYhp3IjYc4cRVK611xnhITLW8CJwRSFJYaoPDB0S1sHOuIcl026SC36m01m7vb0RdxzxhTRBcdClSgo0VcqWHjGjZ5knR1s3ztUcOgVbkcuyQ7x03jp7DEe52sH86myzpWpymu6StRXQix4YjkDoGMFczhPmOP+fWYUex87VCsF1f3rdXJSQmtFuM4Tm11E4WoZGaLB5cgKTNZodJ5v6+UK5u3mop59fIJsIrFF+NKCJNnHvegchiLyGiOJb5wYWpnP4/O2XXNvDEtSPJBRGT/fcHVnYBr6hAl6ux/z4ND3xX77hKKnqQk+CrR28aQpURBNJMKFgtW2DcABAXTZ16ezhXsPlIp6/2GXu0VozTTnwPCRhvsl+s+dqqJu0faxSo+vB7s=
on:
tags: true
script:
## run eslint, flow and the unit test suite.
- npm run test-coverage
## NOTE: by setting the configured python to /bin/false we are forcing the production mode tests
## to fail if any of the dependencies is a binary dependency that is build using node-gyp.
- npm config set python /bin/false
## run functional test suite in a npm production environment
## (See #1082 for rationale).
- TEST_PRODUCTION_MODE=1 npm run test-functional
## run functional test suite in "npm legacy bundling mode"
## (See #1639 for rationale).
- TEST_PRODUCTION_MODE=1 TEST_LEGACY_BUNDLING=1 npm run test-functional
## NOTE: remove the custom python path from the npm config, and also
## remove production package.json.
- npm config delete python
after_script: npm run publish-coverage
notifications:
irc:
channels:
- irc.mozilla.org#amo-bots
on_success: change
on_failure: always