Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
3460fccb
Commit
3460fccb
authored
Aug 18, 2016
by
Wenzel Jakob
Committed by
GitHub
Aug 18, 2016
Browse files
Merge pull request #345 from jagerman/travis-ci-dedicated-doc-build
Build docs just once, in a dedicated build
parents
4be2f990
0b952cdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
.travis.yml
.travis.yml
+16
-9
No files found.
.travis.yml
View file @
3460fccb
...
@@ -39,7 +39,7 @@ matrix:
...
@@ -39,7 +39,7 @@ matrix:
install
:
install
:
-
>
-
>
docker exec --tty "$containerid" apt-get -y --no-install-recommends install
docker exec --tty "$containerid" apt-get -y --no-install-recommends install
python2.7-dev python-scipy libeigen3-dev
python-sphinx python-sphinx-rtd-theme
python2.7-dev python-scipy libeigen3-dev
cmake make g++
cmake make g++
-
compiler
:
gcc-6
-
compiler
:
gcc-6
services
:
docker
services
:
docker
...
@@ -48,8 +48,15 @@ matrix:
...
@@ -48,8 +48,15 @@ matrix:
install
:
install
:
-
>
-
>
docker exec --tty "$containerid" apt-get -y --no-install-recommends install
docker exec --tty "$containerid" apt-get -y --no-install-recommends install
python3.5-dev python3-scipy libeigen3-dev
python3-sphinx python3-sphinx-rtd-theme
python3.5-dev python3-scipy libeigen3-dev
cmake make g++
cmake make g++
# Documentation build:
-
os
:
linux
language
:
docs
compiler
:
sphinx
env
:
PYTHON=2.7 DOCS=1
install
:
pip install sphinx sphinx_rtd_theme
script
:
make -C docs html SPHINX_OPTIONS=-W
cache
:
cache
:
directories
:
directories
:
-
$HOME/.cache/pip
-
$HOME/.cache/pip
...
@@ -67,7 +74,6 @@ before_install:
...
@@ -67,7 +74,6 @@ before_install:
docker exec --tty "$containerid" apt-get -y upgrade
docker exec --tty "$containerid" apt-get -y upgrade
export SCRIPT_RUN_PREFIX="docker exec --tty $containerid"
export SCRIPT_RUN_PREFIX="docker exec --tty $containerid"
fi
fi
install
:
-
|
-
|
if [ -z "$NATIVE_DEPS" ]; then
if [ -z "$NATIVE_DEPS" ]; then
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
...
@@ -85,18 +91,19 @@ install:
...
@@ -85,18 +91,19 @@ install:
python$PMAJOR -m virtualenv venv
python$PMAJOR -m virtualenv venv
fi
fi
source venv/bin/activate
source venv/bin/activate
pip install numpy scipy sphinx sphinx_rtd_theme
fi
install
:
-
|
pip install numpy scipy
wget -q -O eigen.tar.gz https://bitbucket.org/eigen/eigen/get/3.2.9.tar.gz
wget -q -O eigen.tar.gz https://bitbucket.org/eigen/eigen/get/3.2.9.tar.gz
tar xzf eigen.tar.gz
tar xzf eigen.tar.gz
export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DCMAKE_INCLUDE_PATH=eigen-eigen-dc6cfdf9bcec"
export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DCMAKE_INCLUDE_PATH=eigen-eigen-dc6cfdf9bcec"
fi
script
:
script
:
-
$SCRIPT_RUN_PREFIX cmake ${CMAKE_EXTRA_ARGS}
-
$SCRIPT_RUN_PREFIX cmake ${CMAKE_EXTRA_ARGS}
-DPYBIND11_PYTHON_VERSION=$PYTHON
-DPYBIND11_PYTHON_VERSION=$PYTHON
-DPYBIND11_CPP_STANDARD=-std=c++$CPP
-DPYBIND11_CPP_STANDARD=-std=c++$CPP
-DPYBIND11_WERROR=ON
-DPYBIND11_WERROR=ON
-
$SCRIPT_RUN_PREFIX make CTEST_OUTPUT_ON_FAILURE=TRUE check -j
2
-
$SCRIPT_RUN_PREFIX make CTEST_OUTPUT_ON_FAILURE=TRUE check -j
2
-
$SCRIPT_RUN_PREFIX make -C docs html SPHINX_OPTIONS=-W
after_script
:
after_script
:
-
if [ -n "$DOCKER" ]; then docker stop "$containerid"; docker rm "$containerid"; fi
-
if [ -n "$DOCKER" ]; then docker stop "$containerid"; docker rm "$containerid"; fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment