mirror of
https://github.com/embarklabs/web3.js.git
synced 2026-08-30 22:21:10 +00:00
57 lines
1018 B
Bash
Executable File
57 lines
1018 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
|
|
npm run bundlesize
|
|
|
|
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
|
|
npm run test:e2e:min
|
|
npm run test:e2e:cdn
|
|
|
|
elif [ "$TEST" = "e2e_truffle" ]; then
|
|
|
|
npm run test:e2e:publish
|
|
npm run test:e2e:truffle
|
|
|
|
elif [ "$TEST" = "e2e_mosaic" ]; then
|
|
|
|
npm run test:e2e:publish
|
|
npm run test:e2e:mosaic
|
|
|
|
elif [ "$TEST" = "e2e_ens" ]; then
|
|
|
|
npm run test:e2e:ens
|
|
|
|
elif [ "$TEST" = "e2e_ganache" ]; then
|
|
|
|
npm run test:e2e:publish
|
|
npm run test:e2e:ganache:core
|
|
|
|
fi
|