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
This commit is contained in:
12
.travis.yml
12
.travis.yml
@@ -1,12 +1,20 @@
|
|||||||
language: android
|
language: android
|
||||||
jdk: openjdk7
|
jdk: openjdk7
|
||||||
# container based build, we don't need root anyways
|
|
||||||
sudo: false
|
|
||||||
# env:
|
# env:
|
||||||
# global:
|
# global:
|
||||||
# - ANDROID_API_LEVEL=21
|
# - ANDROID_API_LEVEL=21
|
||||||
# - ANDROID_ABI=armeabi-v7a
|
# - ANDROID_ABI=armeabi-v7a
|
||||||
# - ADB_INSTALL_TIMEOUT=8 # minutes (2 minutes by default)
|
# - 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:
|
android:
|
||||||
components:
|
components:
|
||||||
- build-tools-23.0.1
|
- build-tools-23.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user