forked from angular-ui/ui-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (46 loc) · 1.29 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
45
46
47
48
49
50
51
52
53
54
55
56
57
language: node_js
node_js:
- "6.9.2"
#cache:
# directories:
# - $HOME/.npm
# - $HOME/.yarn-cache
# - node_modules
before_install:
- time npm i -g yarn
install:
- time yarn > /dev/null
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- ./nodeserver.sh > /dev/null &
script:
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
# Fetch and build the @uirouter/core branch from github, then install it
- >
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 @uirouter/core && \
pushd @uirouter/core && \
yarn > /dev/null && \
yarn build && \
popd && \
npm install ./@uirouter/core ;
fi
- tsc && npm test
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=
sudo: false
git:
depth: 3
notifications:
slack: angularbuddies:b6leQM9gkBCW0S7MNDsELpqU