2017-01-25 12:39:01 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-03-02 03:22:24 -05:00
|
|
|
set -u -e -o pipefail
|
2017-01-25 12:39:01 -05:00
|
|
|
|
|
|
|
# Setup environment
|
2017-03-05 04:49:10 -05:00
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
|
|
source ${thisDir}/_travis-fold.sh
|
|
|
|
|
|
|
|
|
|
|
|
# run in subshell to avoid polluting cwd
|
|
|
|
(
|
|
|
|
cd ${PROJECT_ROOT}/aio
|
|
|
|
|
|
|
|
|
|
|
|
# Lint the code
|
|
|
|
travisFoldStart "test.aio.lint"
|
2017-03-31 19:24:25 -04:00
|
|
|
yarn lint
|
2017-03-05 04:49:10 -05:00
|
|
|
travisFoldEnd "test.aio.lint"
|
|
|
|
|
|
|
|
|
2017-08-09 17:21:10 -04:00
|
|
|
# Run unit tests for boilerplate tools
|
|
|
|
travisFoldStart "test.aio.boilerplate.unit"
|
|
|
|
yarn boilerplate:test
|
|
|
|
travisFoldEnd "test.aio.boilerplate.unit"
|
|
|
|
|
|
|
|
|
2017-03-05 04:49:10 -05:00
|
|
|
# Run unit tests
|
|
|
|
travisFoldStart "test.aio.unit"
|
|
|
|
yarn test -- --single-run
|
|
|
|
travisFoldEnd "test.aio.unit"
|
|
|
|
|
2017-03-01 17:39:37 -05:00
|
|
|
|
2017-03-05 04:49:10 -05:00
|
|
|
# Run e2e tests
|
|
|
|
travisFoldStart "test.aio.e2e"
|
2017-03-31 19:24:25 -04:00
|
|
|
yarn e2e
|
2017-03-05 04:49:10 -05:00
|
|
|
travisFoldEnd "test.aio.e2e"
|
2017-03-01 17:39:37 -05:00
|
|
|
|
2017-08-09 17:21:10 -04:00
|
|
|
|
2017-03-31 19:24:25 -04:00
|
|
|
# Run PWA-score tests
|
|
|
|
travisFoldStart "test.aio.pwaScore"
|
|
|
|
yarn test-pwa-score-local
|
|
|
|
travisFoldEnd "test.aio.pwaScore"
|
|
|
|
|
2017-08-09 17:21:10 -04:00
|
|
|
|
2017-03-01 17:39:37 -05:00
|
|
|
# Run unit tests for aio/aio-builds-setup
|
|
|
|
travisFoldStart "test.aio.aio-builds-setup"
|
2017-03-07 04:36:41 -05:00
|
|
|
./aio-builds-setup/scripts/test.sh
|
2017-03-01 17:39:37 -05:00
|
|
|
travisFoldEnd "test.aio.aio-builds-setup"
|
2017-03-05 04:49:10 -05:00
|
|
|
)
|