From f928886ba70b92110f42ddb79b005a8beff9397a Mon Sep 17 00:00:00 2001 From: Dimitar Todorov Date: Mon, 24 Jun 2019 16:10:18 +0300 Subject: [PATCH 1/3] Add ng and vue demo builds --- .travis.yml | 114 ++++++++++++++++++++++++++++++---------------------- 1 file changed, 65 insertions(+), 49 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9f30abe..8d2a616 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,81 +7,97 @@ matrix: language: node_js os: linux node_js: "10" - script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint - - stage: "Build webpack and Test" + script: + - cd src && npm run ci.tslint + - cd ../demo && npm run ci.tslint + - cd ../demo-angular && npm run ci.tslint + - stage: "WebPack" os: osx env: - - Webpack="iOS" + - WebPack="iOS" + - Type="TypeScript" osx_image: xcode10.2 language: node_js node_js: "10" jdk: oraclejdk8 - before_script: pod repo update - script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify - - os: linux - language: android - dist: trusty + script: + - cd demo && npm run build.plugin && npm i + - tns build ios --bundle --env.uglify + - os: osx env: - - Webpack="Android" - jdk: oraclejdk8 - before_install: nvm install 10 - script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot - - os: linux - env: - - BuildAndroid="28" - language: android - dist: trusty + - WebPack="iOS" + - Type="Angular" + osx_image: xcode10.2 + language: node_js + node_js: "10" jdk: oraclejdk8 - before_install: nvm install 10 script: - - cd src && npm i && npm run tsc && cd ../demo && tns build android + - cd src && npm run build + - cd ../publish && sh pack.sh + - cd ../demo-angular + - tns plugin add ../publish/package/*.tgz + - tns build ios --bundle --env.uglify --env.aot - os: osx - env: - - BuildiOS="12.0" - - Xcode="10.0" + env: + - WebPack="iOS" + - Type="Vue" osx_image: xcode10.2 language: node_js node_js: "10" jdk: oraclejdk8 - before_script: pod repo update - script: - - cd src && npm i && npm run tsc && cd ../demo && tns build ios - - os: linux - language: android + script: + - cd src && npm run build + - cd ../publish && sh pack.sh + - cd ../demo-vue + - tns plugin add ../publish/package/*.tgz + - tns build ios --bundle --env.uglify + - language: android + os: linux dist: trusty + env: + - WebPack="Android" + - Type="TypeScript" 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 + 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" + - cd demo && npm run build.plugin + - tns build android --bundle --env.uglify --env.snapshot + - language: android + os: linux + dist: trusty + env: + - WebPack="Android" + - Type="Angular" 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 + before_install: nvm install 10 + script: + - cd src && npm run build + - cd ../publish && sh pack.sh + - cd ../demo-angular + - tns plugin add ../publish/package/*.tgz + - tns build android --bundle --env.uglify --env.aot + - language: android + os: linux + dist: trusty + env: + - WebPack="Android" + - Type="Vue" + jdk: oraclejdk8 + before_install: nvm install 10 + script: + - cd src && npm run build + - cd ../publish && sh pack.sh + - cd ../demo-vue + - tns plugin add ../publish/package/*.tgz + - tns build android --bundle --env.uglify --env.aot 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 From 3925e72305b528ff527a02df19712eff9ca1cc4d Mon Sep 17 00:00:00 2001 From: Dimitar Todorov Date: Mon, 24 Jun 2019 16:31:12 +0300 Subject: [PATCH 2/3] Add missing script ci.tslint in ng demo --- demo-angular/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/demo-angular/package.json b/demo-angular/package.json index 6dcbd1c..9c62d2c 100644 --- a/demo-angular/package.json +++ b/demo-angular/package.json @@ -35,6 +35,7 @@ "@ngtools/webpack": "~7.1.0" }, "scripts": { + "ci.tslint": "npm i && tslint --config '../tslint.json' 'app/**/*.ts' --exclude '**/node_modules/**'", "build.plugin": "cd ../src && npm run build" } } From 69de5dbde472fd39056387e18aa7806e4773b520 Mon Sep 17 00:00:00 2001 From: Dimitar Todorov Date: Mon, 24 Jun 2019 16:52:39 +0300 Subject: [PATCH 3/3] Add tslint as dev-dep on demo-angular --- demo-angular/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo-angular/package.json b/demo-angular/package.json index 9c62d2c..b038d6d 100644 --- a/demo-angular/package.json +++ b/demo-angular/package.json @@ -25,7 +25,8 @@ "tns-core-modules": "^5.0.0", "reflect-metadata": "~0.1.10", "rxjs": "~6.3.0", - "zone.js": "~0.8.18" + "zone.js": "~0.8.18", + "tslint": "~5.11.0" }, "devDependencies": { "@nativescript/schematics": "~0.5.0",