forked from ui-router/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (36 loc) · 1.04 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
41
42
43
44
language: node_js
node_js:
- "6.6"
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./nodeserver.sh > /dev/null &
matrix:
allow_failures:
- env: CORE_BRANCH=
env:
matrix:
# CORE_BRANCH env variable specifies the branch of @uirouter/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 @uirouter/core from npm dependencies
# (as specified in package.json)
- CORE_BRANCH=
script:
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
- >
if [ "x${CORE_BRANCH}x" != "xx" ] ; then
echo "Installing @uirouter/core from ${CORE_BRANCH}" && \
git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git ui-router-core && \
pushd ui-router-core && \
yarn && \
npm run build && \
popd && \
npm install ./ui-router-core ;
fi
- npm run travis
sudo: false
git:
depth: 10
notifications:
slack: angularbuddies:b6leQM9gkBCW0S7MNDsELpqU