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

Commit 8673934

Browse files
Merge branch 'travis'
2 parents c18f106 + 4e0314c commit 8673934

26 files changed

+178
-30
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# common
22
node_modules
33
bower_components
4-
downstream_projects
54

65
.DS_Store
76
*~
@@ -15,8 +14,6 @@ idea-out
1514

1615
# generated files
1716
_doc
18-
.testlib
1917
lib
2018
lib-esm
2119
release
22-
stats.html

.npmignore

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

44
node_modules
5-
downstream_projects
65
scripts
76
src
87
test

.travis.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
language: node_js
22
node_js: '8.9.1'
33

4-
cache:
5-
yarn: true
6-
directories:
7-
- downstream_projects
8-
- node_modules
9-
- ui-router-core
10-
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 yalc
15-
4+
before_install: yarn global add greenkeeper-lockfile@1 yalc
165
install: yarn --check-files
176

187
before_script: greenkeeper-lockfile-update && greenkeeper-lockfile-upload
19-
208
script:
219
# If CORE_BRANCH is set, fetch and build the @uirouter/core branch from github, then install it
2210
- 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
@@ -26,13 +14,11 @@ env:
2614
global:
2715
secure: TanWbkSRljYf0ENPiF3LDM+6RDYyUZoVIIQjUk9UDZ1MBvzEiqISB/zKSXSoYY1JNZpNcXgje2Sl08yGhAugRVodH+FJa/khSkXwRsZAlJuG8qPFAevW4gffvJvPAE7O0uy4jLyyu+Fi9dptdi1zDGsOps/Q+WURH9jWPGmQpj8=
2816
matrix:
29-
# When CORE_BRANCH env variable is set, it will fetch, build, and test using that branch of @uirouter/core
3017
- CORE_BRANCH=
3118
- CORE_BRANCH=master
19+
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core DOWNSTREAM_PKGS=sample-app-angularjs
3220
- DOWNSTREAM_PKGS=sample-app-angularjs
33-
- DOWNSTREAM_PKGS=sample-app-angularjs CORE_BRANCH=master
34-
35-
sudo: false
21+
- DOWNSTREAM_PKGS=typescript2.2,typescript2.3,typescript2.4,typescript2.5,typescript2.6
3622

3723
matrix:
3824
fast_finish: true
@@ -43,3 +29,12 @@ matrix:
4329
notifications:
4430
slack:
4531
secure: LqlW9u5Lyh7eHffLqfrIEyIdpqJmPg29NQHqjM6ij2BUFOs9se+NgpRagfICukCEMimOdzEiIE6S4DXNhCcy6hoA24cpswb84vHRuZ4pFz8USq13rX72AgygR1tPKB9sbXLp+XIjRaLPO5z8asECCr7jxSCpMvHRylPAGL4DduI=
32+
33+
sudo: false
34+
35+
cache:
36+
yarn: true
37+
directories:
38+
- .downstream_cache
39+
- node_modules
40+
- ui-router-core

downstream_projects.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2-
"sample-app-angularjs": "https://github.com/ui-router/sample-app-angularjs.git"
2+
"sample-app-angularjs": "https://github.com/ui-router/sample-app-angularjs.git",
3+
"typescript2.2": "./test/typescript2.2",
4+
"typescript2.3": "./test/typescript2.3",
5+
"typescript2.4": "./test/typescript2.4",
6+
"typescript2.5": "./test/typescript2.5",
7+
"typescript2.6": "./test/typescript2.6"
38
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@
8383
"@types/angular-mocks": "1.5.11",
8484
"@types/jasmine": "2.8.3",
8585
"@types/jquery": "^3.2.17",
86-
"@uirouter/publish-scripts": "2.2.2",
86+
"@uirouter/publish-scripts": "2.2.4",
8787
"conventional-changelog": "1.1.7",
8888
"conventional-changelog-cli": "1.3.5",
8989
"dts-downlevel": "^0.3.0",
9090
"fork-ts-checker-webpack-plugin": "^0.2.8",
9191
"jasmine-core": "2.8.0",
9292
"karma": "2.0.0",
9393
"karma-chrome-launcher": "2.2.0",
94-
"karma-jasmine": "^1.0.2",
94+
"karma-jasmine": "1.1.1",
9595
"karma-phantomjs-launcher": "^1.0.2",
9696
"karma-sourcemap-loader": "^0.3.7",
9797
"karma-webpack": "2.0.9",

test/typescript2.2/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

test/typescript2.2/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { UIRouter } from '@uirouter/angularjs';
2+
console.log(UIRouter);

test/typescript2.2/package.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "@uirouter/angularjs-test-typescript2.2",
3+
"version": "1.0.0",
4+
"description": "Test against Typescript 2.2",
5+
"scripts": {
6+
"test": "tsc"
7+
},
8+
"author": "",
9+
"license": "MIT",
10+
"dependencies": {
11+
"@types/angular": "1.5.14",
12+
"@types/jquery": "2",
13+
"@uirouter/angularjs": "latest",
14+
"typescript": "2.2"
15+
},
16+
"devDependencies": {}
17+
}

test/typescript2.2/tsconfig.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"module": "commonjs",
5+
"lib": [ "es6", "dom" ],
6+
"noImplicitAny": true,
7+
"noEmit": true,
8+
"target": "es5",
9+
"typeRoots": ["node_modules/@types"]
10+
},
11+
"files": [ "index.ts" ]
12+
}

test/typescript2.3/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

0 commit comments

Comments
 (0)