diff --git a/.travis.yml b/.travis.yml index bcfe8ea..bcdbb6f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" @@ -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 diff --git a/seed-tests/postclone.tests.js b/seed-tests/postclone.tests.js index 3dbd741..c00588a 100644 --- a/seed-tests/postclone.tests.js +++ b/seed-tests/postclone.tests.js @@ -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(); diff --git a/src/package.json b/src/package.json index 8bde28b..7fe5a0c 100644 --- a/src/package.json +++ b/src/package.json @@ -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",