.gitlab-ci.yml 1017 Bytes
Newer Older
1
before_script:
Daniel Martí's avatar
Daniel Martí committed
2
  - apt-get -q update -y
3 4
  - echo " == Installing packages required by this CI script"
  - apt-get -q install -y wget tar unzip
Daniel Martí's avatar
Daniel Martí committed
5
  - echo " == Installing OpenJDK 7"
Daniel Martí's avatar
Daniel Martí committed
6
  - apt-get -q install -y openjdk-7-jdk
7 8
  - echo " == Installing packages required by the 32-bit SDK"
  - apt-get -q install -y lib32stdc++6 lib32z1
9
  - echo " == Installing the Android SDK"
Daniel Martí's avatar
Daniel Martí committed
10 11
  - wget -q -O android-sdk.tgz https://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
  - tar -x -z -f android-sdk.tgz
12
  - mv android-sdk-linux android-sdk
Daniel Martí's avatar
Daniel Martí committed
13 14
  - export ANDROID_HOME=$PWD/android-sdk
  - export PATH="$ANDROID_HOME/tools:$PATH"
15
  - echo " == Installing Android SDK components"
16
  - echo y | android -s update sdk --no-ui -a -t platform-tools,tools,build-tools-23.0.0,android-22,extra-android-m2repository
17
  - echo " == Installing Gradle"
Daniel Martí's avatar
Daniel Martí committed
18 19
  - wget -q -O gradle.zip https://services.gradle.org/distributions/gradle-2.4-bin.zip
  - unzip -q gradle.zip
20 21 22 23 24
  - export PATH="$PWD/gradle-2.4/bin:$PATH"

build:
  script:
    - gradle build