ameixa/.gitlab-ci.yml

24 lines
1.2 KiB
YAML
Raw Permalink Normal View History

2016-05-27 10:17:25 +02:00
image: java:openjdk-8-jdk
before_script:
- apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
2016-06-04 19:58:35 +02:00
- wget --quiet --output-document=android-sdk.tgz https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
2016-05-27 10:17:25 +02:00
- tar --extract --gzip --file=android-sdk.tgz
2016-06-04 19:39:33 +02:00
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter android-23
2016-05-27 10:17:25 +02:00
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter platform-tools
2016-06-04 20:09:51 +02:00
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter build-tools-23.0.3
2016-05-27 10:17:25 +02:00
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
# - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services ### disabling gplay services
2016-05-27 10:17:25 +02:00
- echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
- export ANDROID_HOME=$PWD/android-sdk-linux
- chmod u+x ./gradlew
build:
script:
- ./gradlew assemble lint
artifacts:
2016-06-04 19:24:33 +02:00
paths:
- app/build/outputs/
2016-05-27 10:17:25 +02:00
2016-06-04 19:24:33 +02:00
# from http://blog.goddchen.de/2016/04/configuration-for-gitlab-ci-android-projects/