forked from angular-ui/ui-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (32 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: node_js
node_js:
- "4.1"
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- npm install -g yarn karma typescript
- ./nodeserver.sh > /dev/null &
matrix:
allow_failures:
- env: CORE_BRANCH=
env:
matrix:
# CORE_BRANCH env variable specifies the branch of ui-router-core to use during build/test
# Each CORE_BRANCH listed here will trigger a SEPARATE job in travis
- CORE_BRANCH=master
# If CORE_BRANCH is empty, it will use the ui-router-core from npm dependencies
# (as specified in package.json)
- CORE_BRANCH=
script:
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
# Fetch and build the ui-router-core branch from github, then install it
- >
if [ "x${CORE_BRANCH}x" != "xx" ] ; then
git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git ui-router-core && pushd ui-router-core && yarn && popd && npm install ./ui-router-core ;
fi
- npm test
sudo: false
git:
depth: 3
notifications:
slack: angularbuddies:b6leQM9gkBCW0S7MNDsELpqU