https://github.com/angular/angular
Raw File
Tip revision: 62a8618536d836f7cacc109e54b9d3bbdf2bf817 authored by Jason Aden on 10 May 2017, 22:44:28 UTC
docs: add changelog for 4.1.2
Tip revision: 62a8618
test-aio.sh
#!/usr/bin/env bash

set -u -e -o pipefail

# Setup environment
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"
    yarn lint
  travisFoldEnd "test.aio.lint"


  # Start xvfb for local Chrome used for testing
  if [[ ${TRAVIS} ]]; then
    travisFoldStart "test.aio.xvfb-start"
      sh -e /etc/init.d/xvfb start
    travisFoldEnd "test.aio.xvfb-start"
  fi


  # Run unit tests
  travisFoldStart "test.aio.unit"
    yarn test -- --single-run
  travisFoldEnd "test.aio.unit"


  # Run e2e tests
  travisFoldStart "test.aio.e2e"
    yarn e2e
  travisFoldEnd "test.aio.e2e"

  # Run PWA-score tests
  travisFoldStart "test.aio.pwaScore"
    yarn test-pwa-score-local
  travisFoldEnd "test.aio.pwaScore"

  # Run unit tests for aio/aio-builds-setup
  travisFoldStart "test.aio.aio-builds-setup"
    ./aio-builds-setup/scripts/test.sh
  travisFoldEnd "test.aio.aio-builds-setup"
)
back to top