Skip to content

Commit 749d243

Browse files
chore(travis): Test both the released version of core as well as master. Test downstream projects, but do not fail.
1 parent a4310ed commit 749d243

File tree

3 files changed

+21
-28
lines changed

3 files changed

+21
-28
lines changed

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
.DS_Store
2-
.tslintrc
1+
**/.*
32
tslint.json
4-
.eslintrc
5-
.vscode
6-
.idea
73
*.ipr
84
*.iml
95
*.iws
106
lib/
117
lib-esm/
128
_bundles/
139
node_modules/
14-
downstream_projects
1510
_doc

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.*
1+
**/.*
22
**/webpack.config.js
33
**/webpack.example.js
44
**/tsconfig.json

.travis.yml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
language: node_js
22
node_js: '8.9.1'
33

4-
cache:
5-
yarn: true
6-
directories:
7-
- node_modules
8-
- downstream_projects
9-
10-
before_install:
11-
- curl -o- -L https://yarnpkg.com/install.sh | bash
12-
- export PATH="$HOME/.yarn/bin:$PATH"
13-
- yarn global add greenkeeper-lockfile@1 yalc
14-
4+
before_install: yarn global add greenkeeper-lockfile@1 yalc
155
install: yarn --check-files
166

177
before_script: greenkeeper-lockfile-update && greenkeeper-lockfile-upload
18-
198
script:
20-
- if [ "x${DOWNSTREAM_PKGS}x" != "xx" ] ; then npm run test:downstream ; else tsc && npm test ; fi
9+
# When CORE_BRANCH env variable is set, it will fetch, build, and test using that branch of @uirouter/core
10+
- if [ "x${CORE_BRANCH}x" != "xx" ] ; then ./node_modules/.bin/publish_yalc_package .downstream_cache/core https://github.com/ui-router/core.git && yalc add @uirouter/core ; fi
11+
# If DOWNSTREAM or DOWNSTREAM_PKGS is set, run downstream packages' tests instead
12+
- if [ "x${DOWNSTREAM_PKGS}${DOWNSTREAM}x" != "xx" ] ; then yarn test:downstream ; else tsc && yarn test; fi
2113

2214
env:
2315
global:
2416
secure: ULNlEMoHRgle5QW7bWUwPFtWFAj0ZlRolybzmc1k0bUaXQp1+e+xjbONHUcAZeSHyYbw0nq4VY2fHOqiH9EVhxJSwExUA6NXoEIhn+lZwyDZ2kCV0xMrdZ/TuORFO6QNXWJ9Bi5IFs0V0cQk8hnkqDUxF/fY6AlB+zojUcYyFeGtSToIppTF+RmJ1HMi9XXT34JGNmkUfuACEm6d9+WaFSACwzKuS1ZCiaGMyOQz3AgCn92YwNs65o89ekZgmngrRiOSH7Cd6dUM1hqKpZzwUB/Cu7grrNyFQ2fDAbYCmS4ZcNZyo5gCC0Urqn9I3aOCT1bhg04eVo9FH6qjEIrg3zdOOM4Qqvq8jPo45cH9W55AMSUgnPmds1YOI1E74f0FS6b04AwDmdgaG4UmC6dRA6pXJS6+v8+2MH4/zptJZFbxycq+cMH4o7cqrz8QUR6WfpzsEPaZkp82lp2B3OXOgJBtfbq8BmpKbG+91vde9ayLBZABzRN/L1Cdh31mbEnbSgCl5jiNTznv6kD8WU9tyVkEKjzqVnCvSQxZ4WeCFTN3+70cLvOQZBFpFqUA16X+iJEetcrjeTgVl80arK02LfCDeA1qYiAV+M+KmWnx32lflA1vNIhfajAWu8XoAYkilTL6hNKZuU0BfRJCxOS7T+QCyRbewuuzXYzyCqD9LUc=
2517
matrix:
26-
- DOWNSTREAM_PKGS=
27-
- DOWNSTREAM_PKGS=sample-app-react
18+
- CORE_BRANCH=
19+
- CORE_BRANCH=master
20+
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM=true
21+
- DOWNSTREAM=true
2822

2923
matrix:
3024
fast_finish: true
3125
allow_failures:
32-
- env: DOWNSTREAM_PKGS=sample-app-react
33-
34-
sudo: false
35-
36-
git:
37-
depth: 3
26+
- env: CORE_BRANCH=
27+
- env: DOWNSTREAM=true
28+
- env: CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM=true
3829

3930
notifications:
4031
slack:
4132
secure: nW+OwrkgbT2hxtz3Xp3yJsjsjBBhWYCgg2BNIaSmM6FkHJ4BQACPL6aHbRGbbdbAhRF7aHsYMhy1vCu5SvjlSgmrqsLXIiC3NmOoXoerbUAjRhmpU4BdwV8qEHFTCxzkjLzOM/Lub81g2GQ4eYvKfK8H9L7Am/Hg6XyApGy75o6tmqM4OdZsl0PSH0P3LPaSovPxC+l9i6a0vnw+pVd3T1rSBpQ1tL3AI+2/J+K2lMqR1lQXuzeXE6IZ3FH9yqBT27d9KeM3SQE4nowSlsnfkCOVsq4K/FMcwXVSksK+b2qB/77nDh3m7A4mM3htc/1GIMoJLsNFQU0BY5wHAS2ZDB3nNcQ7Yta35HPQhka70ZSCzaRiIxsYg0bw6AluxqMFk2K89HGmBS0fUlTe0eNXXLZAG3WwH9bqqFLtUMPY31Vrp96UpfqvtjDhwjTuyuFIbYug1VeLkY9o2CRI55thLeWqyXH0k/MRT9GwbNcQIgLbMJdQel0/odgegsDqv4XhmI6IgnPT9DpnZvh4Qcfzx5lOkbcaoC81telxTN0fZB1PQ4mQWIx5IQiRPI0gO2dRGed97wQ42aV42sSoBcFv8cubxhq6QGB9Lelu9tkCZcTj460Fvh8BZTWAW+dOX7ifJ62agyhz32wNFdRsPnihszU1jP3PwVJuvSJXW/Qnx1Q=
4233

34+
sudo: false
35+
36+
cache:
37+
yarn: true
38+
directories:
39+
- node_modules
40+
- .downstream_cache

0 commit comments

Comments
 (0)