Skip to content

Commit 4ce7b3c

Browse files
committed
Add missing test scripts
1 parent 16ed281 commit 4ce7b3c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ matrix:
5050
- android-wait-for-emulator
5151
before_install:
5252
- nvm install 10
53-
script: cd src && npm run demo.android
53+
script: travis_wait travis_retry cd src && npm run test.android
5454
- os: osx
5555
language: node_js
5656
node_js: "10"
5757
jdk: oraclejdk8
5858
osx_image: xcode11.2
59-
script: cd src && npm run demo.ios
59+
script: travis_wait travis_retry cd src && npm run test.ios
6060

6161
android:
6262
components:

src/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"tsc": "npm i && tsc",
1919
"build": "npm run tsc && npm run build.native",
2020
"build.native": "node scripts/build-native.js",
21+
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
22+
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
2123
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
2224
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**' --exclude '**/platforms/**'",
2325
"prepack": "npm run build.native",

0 commit comments

Comments
 (0)