Skip to content

fix: emulator start #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ matrix:
- nvm install 8
before_script:
- cd seed-tests && npm i
- android list targets
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
script: travis_wait travis_retry npm run test.android
dist: precise
script:
- travis_wait travis_retry npm run test.android
- os: osx
env:
- TestVersion="latest"
Expand All @@ -59,6 +60,7 @@ android:
- tools
- platform-tools
- build-tools-28.0.3
- android-21
- android-28
- extra-android-m2repository
- sys-img-armeabi-v7a-android-21
Expand Down
6 changes: 2 additions & 4 deletions seed-tests/postclone.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ describe('postclone', function () {
});
});

// Xcode 8.3 is not supported by ios runtimes but using Xcode >=9.0 in travis fails to setup a simulator
// Therefore, we stop running unit tests (which are unprofitable) until solution is found on iOS
it('should prepare a working demo and run test if Android', function (done) {
it('should prepare a working demo and run test', function (done) {
var testsCommand = "cd " + constants.SEED_COPY_LOCATION + "/src && ";
testsCommand += testUtils.isAndroid() ? "npm run test.android" : "npm run tsc && cd ../demo && tns build ios";
testsCommand += testUtils.isAndroid() ? "npm run test.android" : "npm run test.ios";
exec(testsCommand, function (error, stdout, stderr) {
expect(error).toBeNull();
done();
Expand Down
4 changes: 4 additions & 0 deletions src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"ios": "5.2.0"
}
},
"repository": {
"type": "git",
"url": "https://github.com/YourName/nativescript-yourplugin.git"
},
"scripts": {
"tsc": "tsc",
"build": "npm run tsc && npm run build.native",
Expand Down