diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2016-01-03 23:30:31 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2016-01-04 00:02:29 +0100 |
commit | ec9db1588a5f69978f503a21959b5bc1255ff05e (patch) | |
tree | 4008a00cbe99b3f204e4b8b22437aeb7a81321dd | |
parent | b33d3f1b6c12af4c6301f969a8c821917842fc2f (diff) | |
download | open-keychain-ec9db1588a5f69978f503a21959b5bc1255ff05e.tar.gz open-keychain-ec9db1588a5f69978f503a21959b5bc1255ff05e.tar.bz2 open-keychain-ec9db1588a5f69978f503a21959b5bc1255ff05e.zip |
Run travis on non-container for https://github.com/travis-ci/travis-ci/issues/3695, including workaround for https://github.com/travis-ci/travis-ci/issues/5227
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index 54bdfb6c7..abbd6749e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,20 @@ 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 |