Skip to content

Commit 737fc1b

Browse files
authored
fix: move comprehensive test to CodeBuild (#3154)
1 parent a302615 commit 737fc1b

File tree

2 files changed

+9
-31
lines changed

2 files changed

+9
-31
lines changed

.travis.yml

+2-25
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,10 @@
11
language: node_js
22
node_js:
3-
# - "0.8"
43
- "0.10"
54
- "0.12"
6-
- "4.2"
7-
- "4.4"
8-
- "5"
5+
- "4"
96
- "6"
10-
- "7"
117
- "8"
12-
- "9"
138
- "10"
14-
env:
15-
- TEST_SCRIPT=coverage
16-
17-
sudo: false
18-
19-
matrix:
20-
include:
21-
- node_js: "10"
22-
env: TEST_SCRIPT=test
23-
24-
addons:
25-
rake:
26-
chrome: stable
27-
28-
before script:
29-
- export CHROME_BIN=/usr/bin/chromium-browser
30-
319
script:
32-
- npm run $TEST_SCRIPT
33-
- "if [[ $TEST_SCRIPT == 'coverage' ]]; then node ./node_modules/.bin/codecov || exit 0; fi"
10+
- npm run coverage

buildspec.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ version: 0.2
33
env:
44
variables:
55
AWS_REGION: "us-west-2"
6-
NODE_PATH: "/root/.nvm/v8.11.3/lib/node_modules"
7-
PATH: "/root/.nvm/versions/node/v8.11.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
6+
CHROME_BIN: "/usr/bin/chromium-browser"
87

98
phases:
9+
install:
10+
runtime-versions:
11+
nodejs: 12
1012
pre_build:
1113
commands:
12-
- echo use node 8.11.3
13-
- export NVM_DIR=~/.nvm && source ~/.nvm/nvm.sh && nvm install 8.11.3
14-
- echo use npm 3.10.10
15-
- npm install -g [email protected]
1614
- echo Install npm dependencies
1715
- npm install
1816
- gem install rake
1917
build:
2018
commands:
2119
- echo Running Test
2220
- npm run test
21+
post_build:
22+
commands:
23+
- ./node_modules/.bin/codecov -f coverage/*.json

0 commit comments

Comments
 (0)