Skip to content

Commit 782c2d8

Browse files
committed
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.
1 parent 4c890d9 commit 782c2d8

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
branches:
2+
except:
3+
- master
4+
- /v\d.+/
5+
language: node_js
6+
os:
7+
- windows
8+
- linux
9+
node_js:
10+
- 12
11+
before_install: if [[ "$(npm -v)" != "6.9.0" ]] && [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then npm install --global [email protected]; fi
12+
install: npm ci
13+
before_script: |
14+
if [[ "${TRAVIS_OS_NAME}" != "windows" ]]; then
15+
checksum=$(md5sum package-lock.json)
16+
npm install --package-lock-only
17+
if ! echo ${checksum} | md5sum --quiet -c -; then
18+
echo "package-lock.json was modified unexpectedly. Please rebuild it using npm@$(npm -v) and commit the changes."
19+
exit 1
20+
fi
21+
fi
22+
23+
if [[ "${TRAVIS_OS_NAME}" == "windows" ]]; then
24+
git config core.symlinks true
25+
git reset --hard
26+
fi
27+
after_success: npx codecov --file=./coverage/lcov.info

0 commit comments

Comments
 (0)