diff --git a/.travis.yml b/.travis.yml index cd957fddf6..8459d39a11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/buildspec.yml b/buildspec.yml index ecf2d1dd9a..108d5471be 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -3,16 +3,14 @@ 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 @@ -20,3 +18,6 @@ phases: commands: - echo Running Test - npm run test + post_build: + commands: + - ./node_modules/.bin/codecov -f coverage/*.json