mirror of
https://github.com/embarklabs/web3.js.git
synced 2026-08-31 14:41:17 +00:00
40 lines
696 B
Bash
Executable File
40 lines
696 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# -----------------------------
|
|
# Travis CI matrix job selector
|
|
# -----------------------------
|
|
|
|
# Exit immediately on error
|
|
set -o errexit
|
|
|
|
if [ "$TEST" = "unit" ]; then
|
|
|
|
npm run test:unit
|
|
|
|
elif [ "$TEST" = "build_and_lint" ]; then
|
|
|
|
npm run build
|
|
npm run dtslint
|
|
npm run depcheck
|
|
|
|
elif [ "$TEST" = "unit_and_e2e_clients" ]; then
|
|
|
|
npm run test:e2e:ganache
|
|
npm run test:e2e:geth:insta
|
|
npm run test:e2e:geth:auto
|
|
npm run test:unit
|
|
npm run coveralls
|
|
|
|
elif [ "$TEST" = "e2e_browsers" ]; then
|
|
|
|
npm run build
|
|
npm run test:e2e:chrome
|
|
npm run test:e2e:firefox
|
|
|
|
elif [ "$TEST" = "e2e_truffle" ]; then
|
|
|
|
npm run test:e2e:publish
|
|
npm run test:e2e:truffle
|
|
|
|
fi
|