forked from facebookincubator/katran
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fbshipit-source-id: 20466019bc0949aeda8f4ce83e6c1dfaf7591131
- Loading branch information
bonniexu
committed
Aug 13, 2019
1 parent
7808a14
commit 5bcd054
Showing
3 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
sudo: required | ||
# Facebook projects that use `fbcode_builder` for continuous integration | ||
# share this Travis configuration to run builds via Docker. | ||
|
||
services: | ||
- docker | ||
# Docker disables IPv6 in containers by default. Enable it for unit tests that need [::1]. | ||
before_script: | ||
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; | ||
then | ||
sudo build/fbcode_builder/docker_enable_ipv6.sh; | ||
fi | ||
|
||
before_install: | ||
- docker pull ubuntu:18.04 | ||
env: | ||
global: | ||
- travis_cache_dir=$HOME/travis_ccache | ||
# Travis times out after 50 minutes. Very generously leave 10 minutes | ||
# for setup (e.g. cache download, compression, and upload), so we never | ||
# fail to cache the progress we made. | ||
- docker_build_timeout=40m | ||
|
||
cache: | ||
# Our build caches can be 200-300MB, so increase the timeout to 7 minutes | ||
# to make sure we never fail to cache the progress we made. | ||
timeout: 420 | ||
directories: | ||
- $HOME/travis_ccache # see docker_build_with_ccache.sh | ||
|
||
# Ugh, `services:` must be in the matrix, or we get `docker: command not found` | ||
# https://github.com/travis-ci/travis-ci/issues/5142 | ||
matrix: | ||
include: | ||
- env: ['os_image=ubuntu:18.04', gcc_version=7] | ||
services: [docker] | ||
|
||
addons: | ||
apt: | ||
packages: python2.7 | ||
|
||
script: | ||
- docker run --rm -v $PWD:/katran ubuntu:18.04 /bin/sh -c " | ||
apt-get update && apt-get install -y git sudo wget; | ||
cd /katran && ./build_katran.sh" | ||
# We don't want to write the script inline because of Travis kludginess -- | ||
# it looks like it escapes " and \ in scripts when using `matrix:`. | ||
- ./build/fbcode_builder/travis_docker_build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters