|
1 | 1 | language: node_js |
2 | 2 | node_js: |
3 | | - - "6.9.2" |
4 | | - |
5 | | -#cache: |
6 | | -# directories: |
7 | | -# - $HOME/.npm |
8 | | -# - $HOME/.yarn-cache |
9 | | -# - node_modules |
10 | | - |
| 3 | +- 6.9.2 |
11 | 4 | before_install: |
12 | | - - time npm i -g yarn |
13 | | - |
| 5 | +- time npm i -g yarn |
14 | 6 | install: |
15 | | - - time yarn > /dev/null |
16 | | - |
| 7 | +- time yarn > /dev/null |
17 | 8 | before_script: |
18 | | - - export DISPLAY=:99.0 |
19 | | - - sh -e /etc/init.d/xvfb start |
20 | | - - ./nodeserver.sh > /dev/null & |
21 | | - |
| 9 | +- export DISPLAY=:99.0 |
| 10 | +- sh -e /etc/init.d/xvfb start |
| 11 | +- "./nodeserver.sh > /dev/null &" |
22 | 12 | script: |
23 | | - - echo "CORE_BRANCH = x${CORE_BRANCH}x"; |
| 13 | +- echo "CORE_BRANCH = x${CORE_BRANCH}x"; |
24 | 14 | # Fetch and build the @uirouter/core branch from github, then install it |
25 | 15 | - > |
26 | | - if [ "x${CORE_BRANCH}x" != "xx" ] ; then |
27 | | - echo "Installing @uirouter/core from ${CORE_BRANCH}" && \ |
28 | | - git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git @uirouter/core && \ |
29 | | - pushd @uirouter/core && \ |
30 | | - yarn > /dev/null && \ |
31 | | - yarn build && \ |
32 | | - popd && \ |
33 | | - npm install ./@uirouter/core ; |
34 | | - fi |
35 | | - - tsc && npm test |
| 16 | + if [ "x${CORE_BRANCH}x" != "xx" ] ; then |
| 17 | + echo "Installing @uirouter/core from ${CORE_BRANCH}" && \ |
| 18 | + git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git @uirouter/core && \ |
| 19 | + pushd @uirouter/core && \ |
| 20 | + yarn > /dev/null && \ |
| 21 | + yarn build && \ |
| 22 | + popd && \ |
| 23 | + npm install ./@uirouter/core ; |
| 24 | + fi |
| 25 | +- tsc && npm test |
36 | 26 |
|
37 | 27 | matrix: |
38 | 28 | allow_failures: |
|
42 | 32 | matrix: |
43 | 33 | # CORE_BRANCH env variable specifies the branch of @uirouter/core to use during build/test |
44 | 34 | # Each CORE_BRANCH listed here will trigger a SEPARATE job in travis |
45 | | - - CORE_BRANCH=master |
| 35 | + - CORE_BRANCH=master |
46 | 36 |
|
47 | 37 | # If CORE_BRANCH is empty, it will use the @uirouter/core from npm dependencies |
48 | 38 | # (as specified in package.json) |
49 | | - - CORE_BRANCH= |
| 39 | + - CORE_BRANCH= |
50 | 40 |
|
51 | 41 | sudo: false |
52 | 42 |
|
53 | 43 | git: |
54 | 44 | depth: 3 |
55 | 45 |
|
56 | 46 | notifications: |
57 | | - slack: angularbuddies:b6leQM9gkBCW0S7MNDsELpqU |
| 47 | + slack: |
| 48 | + secure: LqlW9u5Lyh7eHffLqfrIEyIdpqJmPg29NQHqjM6ij2BUFOs9se+NgpRagfICukCEMimOdzEiIE6S4DXNhCcy6hoA24cpswb84vHRuZ4pFz8USq13rX72AgygR1tPKB9sbXLp+XIjRaLPO5z8asECCr7jxSCpMvHRylPAGL4DduI= |
0 commit comments