Skip to content

Commit 72017bf

Browse files
chore(test): Use test_downstream_projects to run sample app e2e tests
1 parent 1dc2738 commit 72017bf

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# common
22
node_modules
33
bower_components
4+
downstream_projects
5+
46
.DS_Store
57
*~
68
**/.*

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
**/.*
33

44
node_modules
5+
downstream_projects
56
scripts
67
src
78
test

.travis.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ node_js:
44

55
before_install:
66
- time npm i -g yarn
7-
- yarn global add greenkeeper-lockfile@1
7+
- yarn global add greenkeeper-lockfile@1 yalc
88

9-
install:
10-
- time yarn > /dev/null
9+
cache:
10+
directories:
11+
- downstream_projects
12+
- node_modules
1113

12-
before_script:
13-
- export DISPLAY=:99.0
14-
- sh -e /etc/init.d/xvfb start
15-
- "./nodeserver.sh > /dev/null &"
16-
- greenkeeper-lockfile-update
14+
install: yarn --check-files
15+
16+
before_script: greenkeeper-lockfile-update
1717

1818
script:
1919
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
@@ -25,9 +25,9 @@ script:
2525
pushd ui-router-core && \
2626
yarn && \
2727
yarn build && \
28-
CORE_PACK_FILENAME=`npm pack` && \
28+
yalc publish && \
2929
popd && \
30-
yarn add ./ui-router-core/${CORE_PACK_FILENAME} ;
30+
yarn add @uirouter/core ;
3131
fi
3232
- tsc && npm test
3333

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-angularjs": "https://github.com/ui-router/sample-app-angularjs.git"
3+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"test:ng14": "karma start --ngversion 1.4",
2323
"test:ng15": "karma start --ngversion 1.5",
2424
"test:ng16": "karma start --ngversion 1.6",
25-
"test:integrate": "tsc && npm run noimplicitany && npm run test:ng16 && npm run test:ng15 && npm run test:ng14 && npm run test:ng13 && npm run test:ng12",
25+
"test:integrate": "tsc && npm run noimplicitany && npm run test:ng16 && npm run test:ng15 && npm run test:ng14 && npm run test:ng13 && npm run test:ng12 && npm run test:downstream",
26+
"test:downstream": "npm run build && test_downstream_projects",
2627
"watch": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1",
2728
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
2829
"docs": "./scripts/docs.js",

0 commit comments

Comments
 (0)