before_script:
  - apt-get -q -y update
  - apt-get -q -y install wget tar openjdk-7-jdk lib32stdc++6 lib32z1
  - wget -q http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
  - tar xvzf android-sdk_r24.4.1-linux.tgz
  - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.2,android-23,extra-android-m2repository
  - export ANDROID_HOME=$PWD/android-sdk-linux
  - chmod +x prepare-build.sh
  - ./prepare-build.sh

script:
  - ./gradlew build -x fabricGenerateResourcesRelease

before_script:
  - sudo apt-get -q -y update
  - sudo apt-get -q -y install wget tar openjdk-7-jdk lib32stdc++6 lib32z1
  - wget -q http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
  - tar xvzf android-sdk_r24.4.1-linux.tgz
  - echo y | android-sdk-linux/tools/android --silent update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.2,android-23,extra-android-m2repository
  - export ANDROID_HOME=$PWD/android-sdk-linux
  - chmod +x prepare-build.sh
  - ./prepare-build.sh

script:
  - ./gradlew build -x fabricGenerateResourcesRelease

Update Magnum CI script since it requires sudo
Update Magnum CI script since it requires sudo
