Skip to content

Commit 575e751

Browse files
author
Zdravko
authored
Merge pull request #123 from NativeScript/zbranzov/test-emu
fix: emulator start
2 parents 878d079 + 72aaf2a commit 575e751

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ matrix:
3838
- nvm install 8
3939
before_script:
4040
- cd seed-tests && npm i
41+
- android list targets
4142
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
4243
- emulator -avd test -no-audio -no-window &
4344
- android-wait-for-emulator
44-
script: travis_wait travis_retry npm run test.android
45-
dist: precise
45+
script:
46+
- travis_wait travis_retry npm run test.android
4647
- os: osx
4748
env:
4849
- TestVersion="latest"
@@ -59,6 +60,7 @@ android:
5960
- tools
6061
- platform-tools
6162
- build-tools-28.0.3
63+
- android-21
6264
- android-28
6365
- extra-android-m2repository
6466
- sys-img-armeabi-v7a-android-21

seed-tests/postclone.tests.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,9 @@ describe('postclone', function () {
141141
});
142142
});
143143

144-
// Xcode 8.3 is not supported by ios runtimes but using Xcode >=9.0 in travis fails to setup a simulator
145-
// Therefore, we stop running unit tests (which are unprofitable) until solution is found on iOS
146-
it('should prepare a working demo and run test if Android', function (done) {
144+
it('should prepare a working demo and run test', function (done) {
147145
var testsCommand = "cd " + constants.SEED_COPY_LOCATION + "/src && ";
148-
testsCommand += testUtils.isAndroid() ? "npm run test.android" : "npm run tsc && cd ../demo && tns build ios";
146+
testsCommand += testUtils.isAndroid() ? "npm run test.android" : "npm run test.ios";
149147
exec(testsCommand, function (error, stdout, stderr) {
150148
expect(error).toBeNull();
151149
done();

src/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"ios": "5.2.0"
1111
}
1212
},
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/YourName/nativescript-yourplugin.git"
16+
},
1317
"scripts": {
1418
"tsc": "tsc",
1519
"build": "npm run tsc && npm run build.native",

0 commit comments

Comments
 (0)