Skip to content

Commit 982de4b

Browse files
chore(test): run sample-app-angular E2E tests
1 parent 5aa794e commit 982de4b

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# common
22
node_modules
3+
downstream_projects
34
.DS_Store
45
*~
56
.tscache

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ test
88
scripts
99

1010
node_modules
11+
downstream_projects
1112

1213
tslint.json
1314
tsconfig.json

.travis.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
language: node_js
2-
node_js:
3-
- '8.9.1'
2+
node_js: '8.9.1'
43

5-
before_script:
6-
- export DISPLAY=:99.0
7-
- sh -e /etc/init.d/xvfb start
8-
- "./nodeserver.sh > /dev/null &"
9-
- greenkeeper-lockfile-update
4+
cache:
5+
directories:
6+
- node_modules
7+
- downstream_projects
108

11-
before_install:
12-
- curl -o- -L https://yarnpkg.com/install.sh | bash
13-
- export PATH="$HOME/.yarn/bin:$PATH"
14-
- yarn global add greenkeeper-lockfile@1
9+
before_install: npm i -g yarn yalc greenkeeper-lockfile@1
10+
install: yarn --check-files
1511

12+
before_script: greenkeeper-lockfile-update
1613
script:
1714
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
1815
- >
@@ -22,16 +19,13 @@ script:
2219
pushd ui-router-core && \
2320
yarn && \
2421
yarn build && \
25-
CORE_PACK_FILENAME=`npm pack` && \
22+
yalc publish \
2623
popd && \
27-
yarn add ./ui-router-core/${CORE_PACK_FILENAME} ;
24+
yalc add @uirouter/core ;
2825
fi
2926
- npm run travis
30-
3127
after_script: greenkeeper-lockfile-upload
3228

33-
sudo: false
34-
3529
git:
3630
depth: 10
3731

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"build": "run-s compile bundle fixmaps:*",
1212
"release": "release --deps @uirouter/core",
1313
"travis": "npm run build && npm run noimplicitany && npm run test",
14-
"test": "karma start",
14+
"test": "karma start && npm run test:downstream",
15+
"test:downstream": "npm run build && test_downstream_projects",
1516
"noimplicitany": "tsc --noEmit --noImplicitAny --skipLibCheck --moduleResolution node --target es6 test/noimplicitany.ts",
1617
"debug": "karma start --singleRun=false --autoWatch=true --autoWatchInterval=1 --browsers=Chrome",
1718
"package": "npm run build",

0 commit comments

Comments
 (0)