-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.travis.yml
47 lines (36 loc) · 1009 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo: false
dist: bionic
cache: false
# Build all branches
branches:
only:
- gh-pages
- /.*/
language: node_js
node_js:
- "10"
- "12"
install:
- yarn install --immutable
env:
- WEBPACK_VERSION=4 MOCHA_VERSION=6
- WEBPACK_VERSION=4 MOCHA_VERSION=7
- WEBPACK_VERSION=4 MOCHA_VERSION=8
- WEBPACK_VERSION=5 MOCHA_VERSION=7
- WEBPACK_VERSION=5 MOCHA_VERSION=8
before_script:
- "yarn add -D webpack@$WEBPACK_VERSION"
- "yarn add -D mocha@$MOCHA_VERSION"
# Need to skip ts check for getAffectedModuleIds in webpack 4
- |
if [ $WEBPACK_VERSION == 4 ]; then
echo -e "// @ts-nocheck\n/*eslint-disable*/\n$(cat src/webpack/util/getAffectedModuleIds.ts)" > src/webpack/util/getAffectedModuleIds.ts;
fi
- |
if [ $WEBPACK_VERSION == 5 ]; then
echo -e "// @ts-nocheck\n$(cat src/webpack/util/webpack4GetBuildStats.ts)" > src/webpack/util/webpack4GetBuildStats.ts;
fi
script:
- yarn run cover
after_success:
- bash <(curl -s https://codecov.io/bash)