Skip to content
Permalink
Browse files

Run some tests on Travis still

While GitHub Actions are in beta, that CI workflow only runs if
contributors are also in the beta. Let's run some tests in Travis for
the time being.
  • Loading branch information...
novemberborn committed Sep 8, 2019
1 parent 4c890d9 commit 782c2d874e466de26b797b1e0972a552a8894eda
Showing with 27 additions and 0 deletions.
  1. +27 −0 .travis.yml
@@ -0,0 +1,27 @@
branches:
except:
- master
- /v\d.+/
language: node_js
os:
- windows
- linux
node_js:
- 12
before_install: if [[ "$(npm -v)" != "6.9.0" ]] && [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then npm install --global npm@6.9.0; fi
install: npm ci
before_script: |
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
checksum=$(md5sum package-lock.json)
npm install --package-lock-only
if ! echo ${checksum} | md5sum --quiet -c -; then
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes."
exit 1
fi
fi
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
git config core.symlinks true
git reset --hard
fi
after_success: npx codecov --file=./coverage/lcov.info

0 comments on commit 782c2d8

Please sign in to comment.
You can’t perform that action at this time.