Skip to content

Commit 972ab2e

Browse files
committedFeb 25, 2019
fix(ci): switch to modern .travis.yml
https://github.com/ipfs/aegir/tree/v18.2.0#activate-travis License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
1 parent 2cd1983 commit 972ab2e

File tree

1 file changed

+35
-16
lines changed

1 file changed

+35
-16
lines changed
 

‎.travis.yml

+35-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,42 @@
1-
21
language: node_js
2+
cache: npm
3+
stages:
4+
- check
5+
- test
6+
- cov
7+
38
node_js:
4-
- node
9+
- '10'
10+
11+
os:
12+
- linux
13+
- osx
14+
15+
script: npx nyc -s npm run test:node -- --bail
16+
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
517

6-
# Make sure we have new NPM.
7-
before_install:
8-
- npm install -g npm
18+
jobs:
19+
include:
20+
- os: windows
21+
cache: false
922

10-
script:
11-
- npm run lint
12-
- npm test
13-
- npm run coverage
23+
- stage: check
24+
script:
25+
- npx aegir commitlint --travis
26+
- npx aegir dep-check
27+
- npm run lint
1428

15-
addons:
16-
firefox: 'latest'
29+
- stage: test
30+
name: chrome
31+
addons:
32+
chrome: stable
33+
script: npx aegir test -t browser -t webworker
1734

18-
before_script:
19-
- export DISPLAY=:99.0
20-
- sh -e /etc/init.d/xvfb start
35+
- stage: test
36+
name: firefox
37+
addons:
38+
firefox: latest
39+
script: npx aegir test -t browser -t webworker -- --browsers FirefoxHeadless
2140

22-
after_success:
23-
- npm run coverage-publish
41+
notifications:
42+
email: false

0 commit comments

Comments
 (0)
Please sign in to comment.