Last active
September 20, 2017 00:57
-
-
Save thesabbir/f3e702867653c3eaac57 to your computer and use it in GitHub Desktop.
Cordova CI
This file contains hidden or 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
language: android | |
android: | |
components: | |
- build-tools-22.0.1 # Specify your build tools verison | |
- android-22 # Android Platform Target | |
env: # Envirement Variables | |
global: | |
before_install: | |
# Commands to excecute before install | |
- echo "Before install stage" | |
install: | |
# Specify what and how to install | |
- echo "Install stage" | |
- sudo apt-get install -y python-software-properties | |
- curl --silent --location https://deb.nodesource.com/setup_0.12 | sudo bash - | |
- sudo apt-get install -y nodejs | |
- sudo npm i | |
before_script: | |
# Commands to excecute before running tests | |
- echo "Before script stage" | |
script: | |
# Run tests | |
- echo "Running tests" | |
- npm test | |
- echo "Starting build" | |
- npm run build | |
after_success: | |
# You can do thing after success | |
- echo "Build success" | |
after_failure: | |
# What if your test fails? | |
- echo "After failure stage" | |
after_script: | |
# Do things anyway after script/test pass or not | |
- echo "After script stage" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment