Skip to content

Commit

Permalink
fix: move comprehensive test to CodeBuild (#3154)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 17, 2020
1 parent a302615 commit 737fc1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 31 deletions.
27 changes: 2 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
language: node_js
node_js:
# - "0.8"
- "0.10"
- "0.12"
- "4.2"
- "4.4"
- "5"
- "4"
- "6"
- "7"
- "8"
- "9"
- "10"
env:
- TEST_SCRIPT=coverage

sudo: false

matrix:
include:
- node_js: "10"
env: TEST_SCRIPT=test

addons:
rake:
chrome: stable

before script:
- export CHROME_BIN=/usr/bin/chromium-browser

script:
- npm run $TEST_SCRIPT
- "if [[ $TEST_SCRIPT == 'coverage' ]]; then node ./node_modules/.bin/codecov || exit 0; fi"
- npm run coverage
13 changes: 7 additions & 6 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ version: 0.2
env:
variables:
AWS_REGION: "us-west-2"
NODE_PATH: "/root/.nvm/v8.11.3/lib/node_modules"
PATH: "/root/.nvm/versions/node/v8.11.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
CHROME_BIN: "/usr/bin/chromium-browser"

phases:
install:
runtime-versions:
nodejs: 12
pre_build:
commands:
- echo use node 8.11.3
- export NVM_DIR=~/.nvm && source ~/.nvm/nvm.sh && nvm install 8.11.3
- echo use npm 3.10.10
- npm install -g npm@3.10.10
- echo Install npm dependencies
- npm install
- gem install rake
build:
commands:
- echo Running Test
- npm run test
post_build:
commands:
- ./node_modules/.bin/codecov -f coverage/*.json

0 comments on commit 737fc1b

Please sign in to comment.