diff --git a/.travis.yml b/.travis.yml index 59970df..6531698 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,29 +1,24 @@ branches: only: - - master + - next env: global: - - ANDROID_PACKAGE_JS='facebook-debug-js.apk' - - ANDROID_PACKAGE_VUE='facebook-debug-vue.apk' - - ANDROID_PACKAGE_NG='facebook-debug-ng.apk' + - ANDROID_PACKAGE_JS='facebook-debug-js-next.apk' + - ANDROID_PACKAGE_VUE='facebook-debug-vue-next.apk' + - ANDROID_PACKAGE_NG='facebook-debug-ng-next.apk' - ANDROID_PACKAGE_FOLDER_JS=$TRAVIS_BUILD_DIR/demo/outputs - ANDROID_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/demo-vue/outputs - ANDROID_PACKAGE_FOLDER_NG=$TRAVIS_BUILD_DIR/demo-angular/outputs - SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER" - - IOS_PACKAGE_JS='facebook-demo-js.zip' - - IOS_PACKAGE_VUE='facebook-demo-vue.zip' - - IOS_PACKAGE_NG='facebook-demo-ng.zip' + - IOS_PACKAGE_JS='facebook-demo-js-next.zip' + - IOS_PACKAGE_VUE='facebook-demo-vue-next.zip' + - IOS_PACKAGE_NG='facebook-demo-ng-next.zip' - IOS_PACKAGE_FOLDER_JS=$TRAVIS_BUILD_DIR/demo/outputs - IOS_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/demo-vue/outputs - IOS_PACKAGE_FOLDER_NG=$TRAVIS_BUILD_DIR/demo-angular/outputs 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" os: osx env: @@ -33,9 +28,11 @@ 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 src && npm run build.iosOnly + - cd ../src && npm run build.iosOnly - cd ../demo && npm i && tns build ios --bundle --env.uglify --copy-to "./outputs/demo.app" - cd $IOS_PACKAGE_FOLDER_JS && zip -r $IOS_PACKAGE_JS demo.app - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $SAUCE_STORAGE/$IOS_PACKAGE_JS?overwrite=true --data-binary @$IOS_PACKAGE_FOLDER_JS/$IOS_PACKAGE_JS" @@ -47,9 +44,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.iosOnly + - cd ../src && npm run build.iosOnly - cd ../demo-vue && npm i && tns build ios --bundle --env.uglify --copy-to "./outputs/demovue.app" - cd $IOS_PACKAGE_FOLDER_VUE && zip -r $IOS_PACKAGE_VUE demovue.app - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $SAUCE_STORAGE/$IOS_PACKAGE_VUE?overwrite=true --data-binary @$IOS_PACKAGE_FOLDER_VUE/$IOS_PACKAGE_VUE" @@ -61,9 +60,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.iosOnly && npm pack + - cd ../src && npm run build.iosOnly && npm pack - cd ../demo-angular && tns plugin add ../src/*.tgz - npm i && tns build ios --bundle --env.uglify --env.aot --copy-to "./outputs/demoangular.app" - cd $IOS_PACKAGE_FOLDER_NG && zip -r $IOS_PACKAGE_NG demoangular.app @@ -76,8 +77,10 @@ matrix: - Type="VanillaJS" jdk: oraclejdk8 before_install: nvm install 10 + before_script: + - cd ../demo && tns platform add android@next script: - - cd src && npm run build + - cd ../src && npm run build - cd ../demo && npm i && tns build android --bundle --env.uglify --env.snapshot --copy-to "./outputs/app-debug.apk" - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $SAUCE_STORAGE/$ANDROID_PACKAGE_JS?overwrite=true --data-binary @$ANDROID_PACKAGE_FOLDER_JS/app-debug.apk" - language: android @@ -88,8 +91,10 @@ matrix: - Type="VueJS" 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 ../demo-vue && npm i && tns build android --bundle --env.uglify --copy-to "./outputs/app-debug.apk" - "curl -u $SAUCE_USER:$SAUCE_KEY -X POST -H 'Content-Type: application/octet-stream' $SAUCE_STORAGE/$ANDROID_PACKAGE_VUE?overwrite=true --data-binary @$ANDROID_PACKAGE_FOLDER_VUE/app-debug.apk" - language: android @@ -100,8 +105,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 - npm i && tns build android --bundle --env.uglify --env.snapshot --env.aot --copy-to "./outputs/app-debug.apk" @@ -115,7 +122,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType android28 --sauceLab --appPath $ANDROID_PACKAGE_JS - os: linux env: @@ -126,7 +133,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType android28 --sauceLab --appPath $ANDROID_PACKAGE_VUE - os: linux env: @@ -136,7 +143,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType sim12iPhoneX --sauceLab --appPath $IOS_PACKAGE_JS - os: linux env: @@ -146,7 +153,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType sim12iPhoneX --sauceLab --appPath $IOS_PACKAGE_VUE - os: linux env: @@ -157,7 +164,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType android28 --sauceLab --appPath $ANDROID_PACKAGE_NG - os: linux env: @@ -167,7 +174,7 @@ matrix: node_js: "10" script: - npm i -g appium - - cd tests && npm i + - cd ../tests && npm i - travis_wait travis_retry npm run e2e -- --runType sim12iPhoneX --sauceLab --appPath $IOS_PACKAGE_NG android: @@ -183,6 +190,30 @@ before_install: - sudo pip install six install: - - echo no | npm install -g nativescript - - tns usage-reporting disable - - tns error-reporting disable + - 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 + - npm install -D wd@latest + - 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 + - npm install -D wd@latest + - 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