-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
changes in travis's build environment #8239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
97a64d5
DOC changes in travis's build environment
NelleV ba0bd47
DOC removed duplicate appveyor py3.5 environment
NelleV ec86c01
CI: travis runs documentation build and mac osx only on merge with ma…
NelleV ea46243
MAINT remove py.test from our travis build
NelleV 43c081d
FIX appveyor doesn't need option USE_PYTEST anymore
NelleV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
DOC changes in travis's build environment
- Loading branch information
commit 97a64d5a92cde6a3aaf880762a47eb11ee1d26d0
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#! /bin/bash | ||
|
||
# This script is meant to be called by the "script" step defined in | ||
# .travis.yml. See http://docs.travis-ci.com/ for more details. | ||
# The behavior of the script is controlled by environment variabled defined | ||
# in the .travis.yml in the top level folder of the project. | ||
|
||
# The number of processes is hardcoded, because using too many causes the | ||
# Travis VM to run out of memory (since so many copies of inkscape and | ||
# ghostscript are running at the same time). | ||
|
||
echo Testing import of tkagg backend | ||
MPLBACKEND="tkagg" python -c 'import matplotlib.pyplot as plt; print(plt.get_backend())' | ||
|
||
if [[ $BUILD_DOCS == false ]]; then | ||
if [[ $DELETE_FONT_CACHE == 1 ]]; then | ||
rm -rf ~/.cache/matplotlib | ||
fi | ||
# Workaround for pytest-xdist flaky collection order | ||
# https://github.com/pytest-dev/pytest/issues/920 | ||
# https://github.com/pytest-dev/pytest/issues/1075 | ||
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))') | ||
echo PYTHONHASHSEED=$PYTHONHASHSEED | ||
|
||
echo The following args are passed to pytest $PYTEST_ARGS $RUN_PEP8 | ||
if [[ $USE_PYTEST == false ]]; then | ||
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then | ||
python tests.py $PYTEST_ARGS $RUN_PEP8 | ||
else | ||
gdb -return-child-result -batch -ex r -ex bt --args python $PYTHON_ARGS tests.py $PYTEST_ARGS $RUN_PEP8 | ||
fi | ||
else | ||
py.test $PYTEST_ARGS $RUN_PEP8 | ||
fi | ||
else | ||
cd doc | ||
python make.py html -n 2 | ||
# We don't build the LaTeX docs here, so linkchecker will complain | ||
touch build/html/Matplotlib.pdf | ||
# Linkchecker only works with python 2.7 for the time being | ||
deactivate | ||
source ~/virtualenv/python2.7/bin/activate | ||
pip install pip --upgrade | ||
# linkchecker is currently broken with requests 2.10.0 so force an earlier version | ||
pip install $PRE requests==2.9.2 linkchecker | ||
linkchecker build/html/index.html | ||
fi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove this outer 'if ..' block and the USE_PYTEST env ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My travis knowledge is very limited and I am not sure to understand what you are suggesting. Can you point me towards more details?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NelleV#3