forked from facebook/buck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1017 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: java
jdk:
- oraclejdk8
# Enable container-based architecture.
sudo: false
addons:
apt:
packages:
# Travis is on 64bit and there will be a cryptic aapt error w/o these libs.
# For native code tests, we need some additional libraries if we are in a 64-bit environment.
- libgd2-xpm
- libc6:i386
- libstdc++6:i386
- zlib1g:i386
- groovy
before_install:
# Limit Ant's and Buck's memory usage to avoid the OOM killer.
- export ANT_OPTS='-Xmx500m'
- export BUCK_EXTRA_JAVA_ARGS='-Xmx500m'
# Set up the Android environment.
- export NDK_HOME=${HOME}/android-ndk-linux
- ./scripts/travisci_install_android_ndk.sh
- export ANDROID_HOME=${HOME}/android-sdk-linux
- ./scripts/travisci_install_android_sdk.sh
# Install go 1.5
- eval "$(gimme 1.5)"
# Set up the Groovy environment
- export GROOVY_HOME=/usr/share/groovy/
cache:
directories:
- $HOME/android-ndk-linux
- $HOME/android-sdk-linux
script:
- ./scripts/travisci_run.sh