-
-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: livesync and HMR fixes for NativeScript 6.0 (#508)
* fix (ns6): fix samples build and run for NS 6 * pr checks in travis and sauce labs (#481) * fix: loading of css when using webpack bundle * chore: add custom webpack.config in order to use bundle during the build using current nativescript-dev-webpack plugin 0.21 * chore: add travis file to orchestrate the testing flow and tests * fix: ios build in travis * feat (ns6): Use the NS 6.0 version and the webpack only version for nativescript-dev-webpackl for the samples * fix (ns6): Fix livesync issues with nativescript@next and nativescript-dev-webpack@webpack * chore (samples): Add a goBack() method to complete the HMR test * fix: appium local * fix: rename packages * fix: build compiler
- Loading branch information
Showing
25 changed files
with
312 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
env: | ||
global: | ||
- ANDROID_PACKAGE_VUE='nativescript-vue-tests.apk' | ||
- ANDROID_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/samples/outputs | ||
- SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER" | ||
- IOS_PACKAGE_VUE='nativescript-vue-tests.zip' | ||
- IOS_PACKAGE_FOLDER_VUE=$TRAVIS_BUILD_DIR/samples/outputs | ||
|
||
git: | ||
depth: 1 | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
matrix: | ||
include: | ||
- stage: "Unit Tests" | ||
language: node_js | ||
os: linux | ||
node_js: "11" | ||
script: npm ci && npm run test | ||
- stage: "Build app" | ||
os: osx | ||
env: | ||
- WebpackiOS="12.0" | ||
- Type="VueJS" | ||
osx_image: xcode10.0 | ||
language: node_js | ||
node_js: "11" | ||
jdk: oraclejdk8 | ||
script: | ||
- npm ci && npm run dev:core && npm run dev:compiler | ||
- cd samples && npm i && tns build ios --copy-to "./outputs/nativescript-vue-tests.app" | ||
- cd $IOS_PACKAGE_FOLDER_VUE && zip -r $IOS_PACKAGE_VUE nativescript-vue-tests.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" | ||
- language: android | ||
os: linux | ||
env: | ||
- WebpackAndroid="28" | ||
- Type="VueJS" | ||
jdk: oraclejdk8 | ||
before_install: nvm install 11 | ||
script: | ||
- npm ci && npm run dev:core && npm run dev:compiler | ||
- cd samples && npm i && tns build android --copy-to "./outputs/nativescript-vue-tests.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/$ANDROID_PACKAGE_VUE" | ||
- stage: "UI Tests" | ||
env: | ||
- iOS="12.0" | ||
- Type="VueJS" | ||
language: node_js | ||
os: linux | ||
node_js: "11" | ||
script: | ||
- npm i -g appium | ||
- cd samples && npm i | ||
- travis_wait travis_retry npm run e2e -- --runType sim12iPhoneX --sauceLab --appPath $IOS_PACKAGE_VUE | ||
- os: linux | ||
env: | ||
- Android="24" | ||
- Type="VueJS" | ||
language: node_js | ||
node_js: "11" | ||
script: | ||
- npm i -g appium | ||
- cd samples && npm i | ||
- travis_wait travis_retry npm run e2e -- --runType android24.sauce --sauceLab --appPath $ANDROID_PACKAGE_VUE | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-28.0.3 | ||
- android-28 | ||
- android-23 | ||
- extra-android-m2repository | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
|
||
cache: | ||
directories: | ||
- .nvm | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
before_install: | ||
- sudo pip install --upgrade pip | ||
- sudo pip install six | ||
|
||
install: | ||
- echo no | npm install -g nativescript | ||
- tns usage-reporting disable | ||
- tns error-reporting disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
@import '~nativescript-theme-core/css/core.light.css'; | ||
/* Your CSS goes here */ | ||
|
||
.even { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ export default { | |
ComponentWithSlot, | ||
}, | ||
} | ||
</script> | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"main": "modals.js", | ||
"name": "nativescript-template-tutorial", | ||
"main": "app-to-check-v-slot.js", | ||
"name": "nativescript-vue-tests", | ||
"version": "1.0.1" | ||
} | ||
} |
Oops, something went wrong.