forked from OpenNTF/dojo-webpack-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (21 loc) · 769 Bytes
/
.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
language: node_js
node_js:
- '8'
env:
global:
- COVERALLS_PARALLEL=true
jobs:
WEBPACK_VERSION=V4
WEBPACK_VERSION=V3
WEBPACK_VERSION=V2
before_install:
- if [ "$WEBPACK_VERSION" = "V3" ]; then rm -f package-lock.json; sed "s/\"webpack\":\s*\"4\.[0-9]\+\.[0-9]\+\"/\"webpack\":\"3.11.0\"/" package.json >package.webpack3.json; cp -f ./package.webpack3.json ./package.json; fi
- if [ "$WEBPACK_VERSION" = "V2" ]; then rm -f package-lock.json; sed "s/\"webpack\":\s*\"4\.[0-9]\+\.[0-9]\+\"/\"webpack\":\"2.6.0\"/" package.json >package.webpack2.json; cp -f ./package.webpack2.json ./package.json; fi
cache:
directories:
- node_modules
sudo: false
after_success:
- npm run coveralls
notifications:
webhooks: https://coveralls.io/webhook