mirror of
https://github.com/google/blockly.git
synced 2026-01-04 23:50:12 +01:00
Replace individual .travis.yml commands and test_runner.js with tests/run_all_tests.sh, which manages the travis_fold statements and accumulating the output of all the test phases. This script is now in charge of test_setup.sh (previously handled by npm pretest script). It also adds green/red color coding to each test section, based on success and failure.
26 lines
630 B
YAML
26 lines
630 B
YAML
language: node_js
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: trusty
|
|
node_js: stable
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- google-chrome-stable
|
|
- os: osx
|
|
node_js: stable
|
|
osx_image: xcode8.3
|
|
|
|
before_script:
|
|
# Symlink closure library used by test/jsunit
|
|
- ln -s $(npm root)/google-closure-library ../closure-library
|
|
- export DISPLAY=:99.0
|
|
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then ( tests/scripts/setup_linux_env.sh ) fi
|
|
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then ( tests/scripts/setup_osx_env.sh ) fi
|
|
- sleep 2
|
|
|
|
script:
|
|
- tests/run_all_tests.sh
|