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"
|
|
|
|
|
|
|
|
|
|
|
|
# Run unit tests
|
|
|
|
travisFoldStart "test.aio.unit"
|
2017-09-23 10:25:11 -04:00
|
|
|
yarn test --single-run
|
2017-03-05 04:49:10 -05:00
|
|
|
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"
|
2017-08-15 20:34:53 -04:00
|
|
|
yarn test-pwa-score-localhost
|
2017-03-31 19:24:25 -04:00
|
|
|
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
|
|
|
)
|