mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(): initial setup for travis ci
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- '4.2.3'
|
||||
|
||||
addons:
|
||||
firefox: "latest"
|
||||
|
||||
install:
|
||||
npm install -g angular-cli
|
||||
|
||||
before_script:
|
||||
# Necessary to run test on Travis CI that require a graphical interface.
|
||||
# See https://docs.travis-ci.com/user/gui-and-headless-browsers
|
||||
- "export DISPLAY=:99.0"
|
||||
- "sh -e /etc/init.d/xvfb start"
|
||||
|
||||
script:
|
||||
- ./scripts/ci/build-and-test.sh ${MODE}
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- $HOME/.pub-cache
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -ex
|
||||
|
||||
echo "======= Starting build-and-test.sh ========================================"
|
||||
|
||||
# Go to project dir
|
||||
SCRIPT_DIR=$(dirname $0)
|
||||
cd ${SCRIPT_DIR}/../..
|
||||
|
||||
ng build
|
||||
karma start ./karma.conf.js
|
||||
Reference in New Issue
Block a user