Skip to content

Commit

Permalink
docs: do ci on docs (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattklein123 authored Aug 22, 2016
1 parent 4f109a3 commit ef39cfc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ env:
- TEST_TYPE=normal
- TEST_TYPE=coverage
- TEST_TYPE=asan
- TEST_TYPE=docs

script: docker run -t -i -v $TRAVIS_BUILD_DIR:/source lyft/envoy-build:latest /bin/bash -c "cd /source && ci/do_ci.sh $TEST_TYPE"
5 changes: 4 additions & 1 deletion ci/build_container/build_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ set -e

# Setup basic requirements and install them.
apt-get update
apt-get install -y wget software-properties-common make cmake git python clang-format-3.6 bc
apt-get install -y wget software-properties-common make cmake git python python-pip clang-format-3.6 bc
add-apt-repository -y ppa:ubuntu-toolchain-r/test
apt-get update
apt-get install -y g++-4.9
rm -rf /var/lib/apt/lists/*

# virtualenv
pip install virtualenv

# Build artifacts
THIRDPARTY_BUILD=/thirdparty_build
mkdir $THIRDPARTY_BUILD
Expand Down
6 changes: 5 additions & 1 deletion ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ NUM_CPUS=`grep -c ^processor /proc/cpuinfo`

echo "building using $NUM_CPUS CPUs"

if [[ "$1" == "coverage" ]]; then
if [[ "$1" == "docs" ]]; then
echo "docs build..."
make docs
exit 0
elif [[ "$1" == "coverage" ]]; then
echo "coverage build..."
EXTRA_CMAKE_FLAGS="-DENVOY_CODE_COVERAGE:BOOL=ON"
TEST_TARGET="envoy.check-coverage"
Expand Down

0 comments on commit ef39cfc

Please sign in to comment.