Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit e2908ec

Browse files
chore(travis): Only require the main CORE_BRANCH=master tests to pass the build, but report all success/failures
1 parent 32cf763 commit e2908ec

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,24 @@ before_script: greenkeeper-lockfile-update && greenkeeper-lockfile-upload
88
script:
99
# If CORE_BRANCH is set, fetch and build the @uirouter/core branch from github, then install it
1010
- if [ "x${CORE_BRANCH}x" != "xx" ] ; then ./node_modules/.bin/publish_yalc_package ui-router-core https://github.com/ui-router/core.git && yalc add @uirouter/core ; fi
11-
- if [ "x${DOWNSTREAM_PKGS}x" != "xx" ] ; then npm run test:downstream ; else tsc && npm test ; fi
11+
# If DOWNSTREAM or DOWNSTREAM_PKGS is set, run downstream packages' tests instead
12+
- if [ "x${DOWNSTREAM_PKGS}${DOWNSTREAM}x" != "xx" ] ; then npm run test:downstream ; else tsc && npm test ; fi
1213

1314
env:
1415
global:
1516
secure: TanWbkSRljYf0ENPiF3LDM+6RDYyUZoVIIQjUk9UDZ1MBvzEiqISB/zKSXSoYY1JNZpNcXgje2Sl08yGhAugRVodH+FJa/khSkXwRsZAlJuG8qPFAevW4gffvJvPAE7O0uy4jLyyu+Fi9dptdi1zDGsOps/Q+WURH9jWPGmQpj8=
1617
matrix:
17-
- CORE_BRANCH=
1818
- CORE_BRANCH=master
19-
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM_PKGS=sample-app-angularjs
20-
- DOWNSTREAM_PKGS=sample-app-angularjs
21-
- DOWNSTREAM_PKGS=typescript2.2,typescript2.3,typescript2.4,typescript2.5,typescript2.6
19+
- CORE_BRANCH=
20+
- DOWNSTREAM=true
21+
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM=true
2222

2323
matrix:
2424
fast_finish: true
2525
allow_failures:
2626
- env: CORE_BRANCH=
27-
- env: DOWNSTREAM_PKGS=sample-app-angularjs
27+
- env: DOWNSTREAM=true
28+
- env: CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM=true
2829

2930
notifications:
3031
slack:

0 commit comments

Comments
 (0)