diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 145d87862..abbd6749e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,23 @@ language: android jdk: openjdk7 -# container based build, we don't need root anyways -sudo: false # env: # global: # - ANDROID_API_LEVEL=21 # - ANDROID_ABI=armeabi-v7a # - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default) + +# force non-container build +sudo: required +# workaround for https://github.com/travis-ci/travis-ci/issues/5227 +before_install: + - cat /etc/hosts # optionally check the content *before* + - sudo hostname "$(hostname | cut -c1-63)" + - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts + - cat /etc/hosts # optionally check the content *after* + android: components: - build-tools-23.0.1 - - build-tools-22.0.1 - - build-tools-21.1.2 - - build-tools-21.1.1 - - build-tools-19.1.0 - android-23 - android-22 - android-21 |