Skip to content

Commit f28ab4c

Browse files
committed
chore: add travis
1 parent 5af3667 commit f28ab4c

File tree

4 files changed

+99
-8
lines changed

4 files changed

+99
-8
lines changed

.travis.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
branches:
2+
only:
3+
- master
4+
matrix:
5+
include:
6+
- stage: "lint"
7+
language: node_js
8+
os: linux
9+
node_js: "8"
10+
script:
11+
- cd src && npm run ci.tslint
12+
- cd ../demo && npm run ci.tslint
13+
- cd ../demo-angular && npm run ci.tslint
14+
15+
- stage: "build demos"
16+
os: linux
17+
env:
18+
- BuildAndroid="28"
19+
language: android
20+
jdk: oraclejdk8
21+
before_install: nvm install 8.11.4
22+
script:
23+
- cd src && npm run build
24+
- cd ../demo && tns build android
25+
- cd ../demo-angular && tns build android
26+
27+
- os: osx
28+
env:
29+
- BuildiOS="12.0"
30+
- Xcode="10.0"
31+
osx_image: xcode10.0
32+
language: node_js
33+
node_js: "8"
34+
jdk: oraclejdk8
35+
script:
36+
- cd src && npm run build
37+
- cd ../demo && tns build ios
38+
- cd ../demo-angular && tns build ios
39+
40+
- stage: "build demos with webpack"
41+
os: linux
42+
language: android
43+
env:
44+
- Webpack="Android"
45+
jdk: oraclejdk8
46+
before_install: nvm install 8.11.4
47+
script:
48+
- cd src && npm run build
49+
- cd ../demo && tns build android --bundle --env.uglify --env.snapshot --env.aot
50+
- cd ../demo-angular && tns build android --bundle --env.uglify --env.snapshot --env.aot
51+
- cd ../demo-vue && tns build android --bundle --env.uglify --env.snapshot --env.aot
52+
53+
- os: osx
54+
env:
55+
- Webpack="iOS"
56+
osx_image: xcode10.0
57+
language: node_js
58+
node_js: "8"
59+
jdk: oraclejdk8
60+
script:
61+
- cd src && npm run build
62+
- cd ../demo && tns build ios --bundle --env.uglify --env.aot
63+
- cd ../demo-angular && tns build ios --bundle --env.uglify --env.aot
64+
- cd ../demo-vue && tns build ios --bundle --env.uglify --env.aot
65+
66+
android:
67+
components:
68+
- tools
69+
- platform-tools
70+
- build-tools-28.0.3
71+
- android-28
72+
- extra-android-m2repository
73+
74+
before_install:
75+
- sudo pip install --upgrade pip
76+
- sudo pip install six
77+
78+
install:
79+
- echo no | npm install -g nativescript
80+
- tns usage-reporting disable
81+
- tns error-reporting disable

demo-angular/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
"description": "NativeScript DateTimePicker Demo NG",
1212
"license": "SEE LICENSE IN LICENSE FILE",
1313
"repository": "https://github.com/NativeScript/nativescript-datetimepicker",
14+
"scripts": {
15+
"ci.tslint": "npm i && tslint --config '../tslint.json' 'src/**/*.ts'",
16+
"build.plugin": "cd ../src && npm run build"
17+
},
1418
"dependencies": {
1519
"@angular/animations": "~7.1.0",
1620
"@angular/common": "~7.1.0",
@@ -34,7 +38,8 @@
3438
"nativescript-dev-typescript": "~0.7.0",
3539
"nativescript-dev-webpack": "~0.19.0",
3640
"@angular/compiler-cli": "~7.1.0",
37-
"@ngtools/webpack": "~7.1.0"
41+
"@ngtools/webpack": "~7.1.0",
42+
"tslint": "~5.11.0"
3843
},
3944
"readme": "NativeScript DateTimePicker Demo NG"
4045
}

demo/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,19 @@
1111
"description": "NativeScript DateTimePicker Demo Core",
1212
"license": "SEE LICENSE IN LINCENSE",
1313
"repository": "https://github.com/NativeScript/nativescript-datetimepicker",
14+
"scripts": {
15+
"ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts'",
16+
"build.plugin": "cd ../src && npm run build"
17+
},
1418
"dependencies": {
1519
"nativescript-datetimepicker": "file:../src",
1620
"nativescript-theme-core": "~1.0.4",
1721
"tns-core-modules": "~5.1.0"
1822
},
1923
"devDependencies": {
2024
"nativescript-dev-typescript": "~0.7.0",
21-
"nativescript-dev-webpack": "~0.19.0"
25+
"nativescript-dev-webpack": "~0.19.0",
26+
"tslint": "~5.11.0"
2227
},
2328
"readme": "NativeScript DateTimePicker Demo Core"
2429
}

src/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
"build.native": "node scripts/build-native.js",
1616
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\" --exclude \"**/platforms/**\"",
1717
"plugin.tscwatch": "npm run tsc -- -w",
18-
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles --emulator",
19-
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles --emulator",
18+
"demo.ios": "npm run build && cd ../demo && tns run ios --syncAllFiles --emulator",
19+
"demo.android": "npm run build && cd ../demo && tns run android --syncAllFiles --emulator",
2020
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json",
21-
"demo.ng.ios": "npm i && npm run tsc && cd ../demo-angular && tns run ios --syncAllFiles --emulator",
22-
"demo.ng.android": "npm i && npm run tsc && cd ../demo-angular && tns run android --syncAllFiles --emulator",
21+
"demo.ng.ios": "npm run build && cd ../demo-angular && tns run ios --syncAllFiles --emulator",
22+
"demo.ng.android": "npm run build && cd ../demo-angular && tns run android --syncAllFiles --emulator",
2323
"demo.ng.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json",
24-
"demo.vue.ios": "npm i && npm run tsc && cd ../demo-vue && tns run ios --bundle --syncAllFiles --emulator",
25-
"demo.vue.android": "npm i && npm run tsc && cd ../demo-vue && tns run android --bundle --syncAllFiles --emulator",
24+
"demo.vue.ios": "npm run build && cd ../demo-vue && tns run ios --bundle --syncAllFiles --emulator",
25+
"demo.vue.android": "npm run build && cd ../demo-vue && tns run android --bundle --syncAllFiles --emulator",
2626
"demo.vue.reset": "cd ../demo-vue && npx rimraf -- hooks node_modules platforms package-lock.json",
2727
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-datetimepicker && tns plugin add ../src",
2828
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i",

0 commit comments

Comments
 (0)