Skip to content

Commit 04e150b

Browse files
committed
feat(travis): adding CI with Travis
1 parent 0b99c45 commit 04e150b

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

.travis.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
sudo: false
2-
branches:
3-
only:
4-
- master
52
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
66
notifications:
77
email:
88
on_success: always
99
on_failure: change
10-
cache:
11-
directories:
12-
- node_modules
1310
node_js:
14-
- '9'
11+
- '6'
12+
before_install:
13+
- npm i -g npm@^2.0.0
1514
install:
1615
- npm install
16+
- npm install -g codecov
17+
before_script:
18+
- npm prune
19+
script:
20+
- npm run test:cover
1721
after_success:
1822
- npm run build
19-
- cd dist
20-
- npm run travis-deploy-once "npm run semantic-release"
23+
- npm run coveralls
24+
- bash <(curl -s https://codecov.io/bash)
25+
- npm run semantic-release
26+
branches:
27+
except:
28+
- /^v\d+\.\d+\.\d+$/

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"babel-register": "^6.16.3",
4848
"browser-cookies": "^1.2.0",
4949
"chai": "^4.0.0-canary.1",
50-
"coveralls": "^2.11.14",
50+
"coveralls": "^2.13.3",
5151
"del": "^2.2.2",
5252
"eslint": "^3.19.0",
5353
"eslint-config-airbnb-base": "^10.0.1",
@@ -59,13 +59,15 @@
5959
"semantic-release": "^12.4.1",
6060
"sinon": "^2.0.0-pre.3",
6161
"sinon-stub-promise": "^4.0.0",
62-
"vue": "^2.5.13",
63-
"travis-deploy-once": "^4.3.4"
62+
"travis-deploy-once": "^4.3.4",
63+
"vue": "^2.5.13"
6464
},
6565
"scripts": {
6666
"build": "node tools/build",
6767
"test": "mocha --compilers js:babel-register",
68+
"test:cover": "babel-node ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha",
6869
"travis-deploy-once": "travis-deploy-once",
69-
"semantic-release": "semantic-release"
70+
"semantic-release": "semantic-release",
71+
"coveralls": "type /coverage/lcov.info | coveralls"
7072
}
7173
}

0 commit comments

Comments
 (0)