Skip to content

Commit 414da2d

Browse files
committed
ci(Travis): adds travis build
1 parent 31b26bc commit 414da2d

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.travis.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Tasks are commented out purposfully. Will be uncommented for webpack-defaults application
2+
sudo: false
3+
language: node_js
4+
branches:
5+
only:
6+
- master
7+
matrix:
8+
fast_finish: true
9+
include:
10+
- os: linux
11+
node_js: '6'
12+
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
13+
- os: linux
14+
node_js: '4.3'
15+
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
16+
- os: linux
17+
node_js: '7'
18+
env: WEBPACK_VERSION="2.2.0" JOB_PART=test
19+
# - os: linux
20+
# node_js: '7'
21+
# env: WEBPACK_VERSION="2.2.0" BITHOUND_CHECK=true JOB_PART=lint
22+
# - os: linux
23+
# node_js: '7'
24+
# env: WEBPACK_VERSION="2.2.0" JOB_PART=coverage
25+
before_install:
26+
- nvm --version
27+
- node --version
28+
before_script:
29+
- if [ "$WEBPACK_VERSION" ]; then yarn add webpack@^$WEBPACK_VERSION; fi
30+
# - if [ "$BITHOUND_CHECK" ]; then npm install -g bithound; bithound check git@github.com:$TRAVIS_REPO_SLUG.git; fi
31+
script:
32+
- yarn run travis:$JOB_PART
33+
# after_success:
34+
# - bash <(curl -s https://codecov.io/bash)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"author": "Tobias Koppers @sokra",
55
"description": "extracts inlined source map and offers it to webpack",
66
"scripts": {
7-
"test": "mocha -R spec"
7+
"test": "mocha -R spec",
8+
"travis:test": "mocha -R spec"
89
},
910
"devDependencies": {
1011
"should": "^3.3.1",

0 commit comments

Comments
 (0)