Skip to content

Commit 8efd7ac

Browse files
test(hybrid): Build angular-hybrid and run the sample-app-angular-hybrid tests
1 parent 6d7920b commit 8efd7ac

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _bundles
1212
*.ipr
1313
*.iml
1414
*.iws
15-
.*
15+
**/.*
1616
stats.html
1717

1818
# Logs

.npmignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
src
22
scripts
3-
.*
3+
**/.*
44

55
*.ipr
66
*.iml
@@ -9,4 +9,4 @@ node_modules
99
tsconfig.json
1010
rollup.config.js
1111
stats.html
12-
examples
12+
examples

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@ before_install: yarn global add greenkeeper-lockfile@1 yalc
55
install: yarn --check-files
66

77
before_script: greenkeeper-lockfile-update && greenkeeper-lockfile-upload
8-
script: npm test
8+
script:
9+
# If DOWNSTREAM or DOWNSTREAM_PKGS is set, run downstream packages' tests instead
10+
- if [ "x${DOWNSTREAM_PKGS}${DOWNSTREAM}x" != "xx" ] ; then npm run test:downstream ; else tsc && npm run travis ; fi
911

1012
env:
1113
global:
1214
secure: P9LR6+rvwLH6zWx1nS12pwHxBf1nnVMRMclXrKdJQJ6ZqM8ndT8kl5gzDavvgEWdZ6988HOgkgS17yzVU7tBUz+id0l0D2Ugw7YYl3e1IET8++3RDn0jQamVixIaEStTR4Sy0rWd5hIhEzf2hJsAlW1DKr3G1aDp+kuZN2Ugdfnuk3NCt5H5awswoYHg460ClSeA9iEhmiA5HipgGEXlRG3S6DZgOS8z7GSp/G7siApoRAO4pqkUEsYJJ6LKeLquupAgCl6ONMB6YM7M/InpYjjgXArJnOh2CcMy9RQ1gOZk7NMuPEq1s8bwVWoDMkN+3dolF4x1rTaiGng7MAF7RQvCMdjBfqCQmqCW1mV68T2iimCEq1IrCr9oRkAE2mwlYWyqpB5dZPumWBnhNMrcGL40CVlT/EFt7fVSCi9RtPiep0D17agtO+Cp+VaViVAFvZINL5RCDYqyYDEYWuPTQo7CcMCjimWPBkYi0qO0RpvVhFavmIQEdBweffyfS6ZAboEbNcBVEjY5axt7frXx3rvf0itIXx6XVZN58npEPn62a1ZUamrWc+shxUWD1pY2V0z+fDPpv/+OATIJx3Diu7igKAsYChZPZcT9SCuODhuigqn8A8p0gDAjCKVOKOEHRcY6JCkCemc99x7bW6n6zpUbmOMjx2RP8bZTWKnQq/s= matrix:
13-
15+
matrix:
16+
- DOWNSTREAM=
17+
- DOWNSTREAM=true
1418

1519
notifications:
1620
slack:

downstream_projects.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"sample-app-angular-hybrid": "https://github.com/ui-router/sample-app-angular-hybrid.git"
3+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"fixmaps:lib": "tweak_sourcemap_paths -a --include 'lib/**/*.js.map' 'lib-esm/**/*.js.map'",
1111
"fixmaps:bundle": "tweak_sourcemap_paths -p ../src --include '_bundles/**/*.js.map'",
1212
"release": "release --deps @uirouter/core @uirouter/angular @uirouter/angularjs",
13+
"test": "npm run build",
14+
"test:downstream": "npm run build && test_downstream_projects",
1315
"prepublishOnly": "npm run build"
1416
},
1517
"license": "MIT",

0 commit comments

Comments
 (0)