diff --git a/.travis.yml b/.travis.yml index 8d2a616..829eaf0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -90,14 +90,42 @@ matrix: - cd ../demo-vue - tns plugin add ../publish/package/*.tgz - tns build android --bundle --env.uglify --env.aot + - os: linux + language: android + dist: trusty + jdk: oraclejdk8 + env: + - Android="UnitTests" + before_script: + - 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 + before_install: + - nvm install 10 + script: + - cd src && npm i && npm run tsc && npm run tslint && cd ../demo && tns build android + - travis_wait travis_retry tns test android --justlaunch + - os: osx + language: node_js + node_js: "10" + jdk: oraclejdk8 + env: + - iOS="UnitTests" + osx_image: xcode10.2 + before_script: pod repo update + script: + - cd src && npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios + - travis_wait travis_retry tns test ios --justlaunch android: components: - tools - platform-tools - build-tools-28.0.3 + - android-21 - android-28 - extra-android-m2repository + - sys-img-armeabi-v7a-android-21 before_install: - sudo pip install --upgrade pip