-
-
Notifications
You must be signed in to change notification settings - Fork 241
ci(travis): utilize stages and add Android and iOS builds #1176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
deedae9
chore(build): Improved travis build
hypery2k 72fc731
Merge branch 'master' into travis_improvement
hypery2k e16f6e5
Merge branch 'master' into travis_improvement
hypery2k 8da525c
chore(build): Adding missing build entries
hypery2k c8d028c
chore(build): Fix build
hypery2k e938a40
chore(build): Switching command order
hypery2k a90d27f
Merge branch 'master' into travis_improvement
hypery2k 3b2014b
chore(build): Let test project build
hypery2k 4454910
chore(build): Fix Travis build
hypery2k ec0d1e3
chore(package): Use next version of runtimes during tests
hypery2k 0bba03d
chore(build): Adding newer build tools for Android
hypery2k File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,143 @@ | ||
env: | ||
global: | ||
- NODE_VERSION=8.9.0 | ||
- EMULATOR_API_LEVEL=19 | ||
- ANDROID_VERSION=25 | ||
- ANDROID_BUILD_TOOLS_VERSION=25.0.2 | ||
- ANDROID_ABI=armeabi-v7a | ||
- APPIUM_VERSION=1.7.0 | ||
- EMULATOR_NAME=test | ||
language: android | ||
jdk: | ||
- oraclejdk8 | ||
- NODE_VERSION=6 | ||
- NODE_VERSION=8 | ||
- EMULATOR_API_LEVEL=22 | ||
- ANDROID_VERSION=25 | ||
- ANDROID_BUILD_TOOLS_VERSION=26.0.2 | ||
- ANDROID_ABI=armeabi-v7a | ||
- APPIUM_VERSION=1.7.0 | ||
- EMULATOR_NAME=test | ||
- ANDROID_TAG=google_apis | ||
|
||
matrix: | ||
include: | ||
- stage: "Lint" | ||
language: node_js | ||
os: linux | ||
before_install: | ||
- nvm install $NODE_VERSION | ||
script: | ||
- cd nativescript-angular | ||
- npm install | ||
- npm run tslint | ||
- stage: "Build" | ||
os: osx | ||
env: | ||
- Build="iOS" | ||
osx_image: xcode8.3 | ||
language: node_js | ||
node_js: "6" | ||
jdk: oraclejdk8 | ||
before_install: | ||
- cd nativescript-angular | ||
- npm install | ||
- cd ../tests | ||
- npm install | ||
- cd .. | ||
script: | ||
- cd nativescript-angular | ||
- npm run ngc | ||
- cd ../tests | ||
- tns build ios | ||
- os: osx | ||
env: | ||
- Build="iOS" | ||
osx_image: xcode8.3 | ||
language: node_js | ||
node_js: "8" | ||
jdk: oraclejdk8 | ||
before_install: | ||
- cd nativescript-angular | ||
- npm install | ||
- cd ../tests | ||
- npm install | ||
- cd .. | ||
script: | ||
- cd nativescript-angular | ||
- npm run ngc | ||
- cd ../tests | ||
- tns build ios | ||
- language: android | ||
node_js: "6" | ||
os: linux | ||
env: | ||
- Build="Android" | ||
jdk: oraclejdk8 | ||
before_install: | ||
- echo no | android create avd --force -n $EMULATOR_NAME -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG -c 12M | ||
- QEMU_AUDIO_DRV=none emulator -avd $EMULATOR_NAME -no-window & | ||
- nvm install $NODE_VERSION | ||
- cd nativescript-angular | ||
- npm install | ||
- cd ../tests | ||
- npm install | ||
- cd .. | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
script: | ||
- cd nativescript-angular | ||
- npm run ngc | ||
- cd ../tests | ||
- tns build android | ||
- language: android | ||
node_js: "8" | ||
os: linux | ||
env: | ||
- Build="Android" | ||
jdk: oraclejdk8 | ||
before_install: | ||
- echo no | android create avd --force -n $EMULATOR_NAME -t "android-"$EMULATOR_API_LEVEL --abi $ANDROID_ABI --tag $ANDROID_TAG -c 12M | ||
- QEMU_AUDIO_DRV=none emulator -avd $EMULATOR_NAME -no-window & | ||
- nvm install $NODE_VERSION | ||
- cd nativescript-angular | ||
- npm install | ||
- cd ../tests | ||
- npm install | ||
- cd .. | ||
- android-wait-for-emulator | ||
- adb shell input keyevent 82 & | ||
script: | ||
- cd nativescript-angular | ||
- npm run ngc | ||
- cd ../tests | ||
- tns build android | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-$ANDROID_VERSION | ||
- android-$EMULATOR_API_LEVEL | ||
- extra-android-support | ||
- extra-android-m2repository | ||
- sys-img-$ANDROID_ABI-android-$EMULATOR_API_LEVEL | ||
- tools | ||
- platform-tools | ||
- build-tools-25.0.2 | ||
- build-tools-$ANDROID_BUILD_TOOLS_VERSION | ||
- android-25 | ||
- android-$EMULATOR_API_LEVEL | ||
- extra-google-google_play_services | ||
- extra-google-m2repository | ||
- extra-android-m2repository | ||
- addon-google_apis-google-25 | ||
# Specify at least one system image, | ||
# if you need to run emulator(s) during your tests | ||
- sys-img-armeabi-v7a-android-26 | ||
- sys-img-armeabi-v7a-android-25 | ||
- sys-img-armeabi-v7a-android-17 | ||
- sys-img-armeabi-v7a-android-19 | ||
- sys-img-armeabi-v7a-google_apis-$EMULATOR_API_LEVEL | ||
licenses: | ||
- ".+" | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
|
||
cache: | ||
directories: | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
directories: | ||
- .nvm | ||
- $HOME/.gradle/caches/ | ||
- $HOME/.gradle/wrapper/ | ||
|
||
install: | ||
- nvm install $NODE_VERSION | ||
- npm install -g typings | ||
- echo y | $ANDROID_HOME/tools/android update sdk --filter tools --all --no-ui | ||
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" | ||
- npm install -g nativescript.tgz --ignore-scripts | ||
- tns usage-reporting disable | ||
- tns error-reporting disable | ||
- cd nativescript-angular | ||
- npm install | ||
- npm run tslint | ||
- cd ../tests | ||
- npm install | ||
before_script: | ||
- echo no | android create avd --force -n $EMULATOR_NAME -t android-$EMULATOR_API_LEVEL --abi $ANDROID_ABI -c 12M | ||
- emulator -avd $EMULATOR_NAME -no-skin -no-audio -no-window & | ||
- android-wait-for-emulator | ||
script: | ||
- tns build android | ||
- android-wait-for-emulator | ||
- nvm install $NODE_VERSION | ||
- npm install -g typings | ||
- wget -O ./nativescript.tgz "https://s3.amazonaws.com/nativescript-ci/build_result/nativescript.tgz" | ||
- npm install -g nativescript.tgz --ignore-scripts | ||
- 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the platforms here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, because than tns build will fail with
version of undefined
errorsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, change the versions to 'next' then :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done ;)