chore(): initial setup for travis ci

This commit is contained in:
Jeremy Elbourn
2016-01-08 15:42:23 -08:00
parent fddcdb3f9c
commit 644c001655
2 changed files with 37 additions and 0 deletions
+26
View File
@@ -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
+11
View File
@@ -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