diff --git a/.travis.yml b/.travis.yml index 7cf1968..599f67f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,9 @@ branches: only: - - master + - next matrix: include: - - stage: "Lint" - language: node_js - os: linux - node_js: "10" - script: - - cd src && npm run ci.tslint - - cd ../demo && npm run ci.tslint - - cd ../demo-angular && npm run ci.tslint - - stage: "WebPack" + - stage: "WebPack, Build and Test" os: osx env: - WebPack="iOS" @@ -20,10 +12,12 @@ matrix: language: node_js node_js: "10" jdk: oraclejdk8 - before_script: pod repo update + before_script: + - pod repo update + - cd ../demo && tns platform add ios@next script: - - cd demo && npm run build.plugin && npm i - - tns build ios --bundle --env.uglify + - cd ../demo && npm run build.plugin + - tns build ios --bundle --env.uglify - os: osx env: - WebPack="iOS" @@ -32,9 +26,11 @@ matrix: language: node_js node_js: "10" jdk: oraclejdk8 - before_script: pod repo update + before_script: + - pod repo update + - cd ../demo-angular && tns platform add ios@next script: - - cd src && npm run build + - cd ../src && npm run build - cd ../publish && sh pack.sh - cd ../demo-angular - tns plugin add ../publish/package/*.tgz @@ -47,9 +43,11 @@ matrix: language: node_js node_js: "10" jdk: oraclejdk8 - before_script: pod repo update + before_script: + - pod repo update + - cd ../demo-vue && tns platform add ios@next script: - - cd src && npm run build + - cd ../src && npm run build - cd ../publish && sh pack.sh - cd ../demo-vue - tns plugin add ../publish/package/*.tgz @@ -62,8 +60,10 @@ matrix: - Type="TypeScript" jdk: oraclejdk8 before_install: nvm install 10 + before_script: + - cd ../demo && tns platform add android@next script: - - cd demo && npm run build.plugin + - cd ../demo && npm run build.plugin - tns build android --bundle --env.uglify --env.snapshot - language: android os: linux @@ -73,8 +73,10 @@ matrix: - Type="Angular" jdk: oraclejdk8 before_install: nvm install 10 + before_script: + - cd ../demo-angular && tns platform add android@next script: - - cd src && npm run build + - cd ../src && npm run build - cd ../publish && sh pack.sh - cd ../demo-angular - tns plugin add ../publish/package/*.tgz @@ -87,8 +89,10 @@ matrix: - Type="Vue" jdk: oraclejdk8 before_install: nvm install 10 + before_script: + - cd ../demo-vue && tns platform add android@next script: - - cd src && npm run build + - cd ../src && npm run build - cd ../publish && sh pack.sh - cd ../demo-vue - tns plugin add ../publish/package/*.tgz @@ -107,6 +111,29 @@ before_install: - sudo pip install six install: - - echo no | npm install -g nativescript + - echo no | npm install -g nativescript@next - tns usage-reporting disable - tns error-reporting disable + - cd demo + - npm install tns-core-modules@next -P --save-exact + - npm install tns-platform-declarations@next -D --save-exact + - npm install nativescript-dev-webpack@next -D --save-exact + - ./node_modules/.bin/update-ns-webpack --deps --configs + - npx rimraf -- hooks node_modules platforms package-lock.json + - cd ../demo-angular + - npm install tns-core-modules@next -P --save-exact + - npm install tns-platform-declarations@next -D --save-exact + - npm install nativescript-angular@next -P --save-exact + - npm install nativescript-dev-webpack@next -D --save-exact + - ./node_modules/.bin/update-ns-webpack --deps --configs + - ./node_modules/.bin/update-app-ng-deps + - npx rimraf -- hooks node_modules platforms package-lock.json + - cd ../demo-vue + - npm install tns-core-modules@next -P --save-exact + - npm install nativescript-vue@next -P --save-exact + - npm install tns-platform-declarations@next -D --save-exact + - npm install nativescript-dev-webpack@next -D --save-exact + - ./node_modules/.bin/update-ns-webpack --deps --configs + - npx rimraf -- hooks node_modules platforms package-lock.json + - npm install -D wd@latest +