Skip to content

Commit 8ba17ef

Browse files
committed
Merge pull request #4151 from matthew-brett/fix-travis-file
BUG: fix bad edits to travis.yml file
2 parents 4615720 + 596960f commit 8ba17ef

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.travis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ script:
5454
- python -c "from matplotlib import font_manager"
5555
- |
5656
if [[ $BUILD_DOCS == false ]]; then
57-
export MPL_REPO_DIR=$PWD # pep8-conformance test of the examples
57+
# pep8-conformance test of the examples
5858
mkdir ../tmp_test_dir
5959
cd ../tmp_test_dir
6060
gdb -return-child-result -batch -ex r -ex bt --args python ../matplotlib/tests.py -sv --processes=8 --process-timeout=300 $TEST_ARGS
@@ -70,7 +70,7 @@ after_failure:
7070
|
7171
if [[ $BUILD_DOCS == false && $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
7272
gem install travis-artifacts
73-
cd $MPL_REPO_DIR/../tmp_test_dir
73+
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
7474
tar cjf result_images.tar.bz2 result_images
7575
travis-artifacts upload --path result_images.tar.bz2
7676
echo "The result images will only be uploaded if they are on the matplotlib/matplotlib repo - this is for security reasons to prevent arbitrary PRs echoing security details." else echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
@@ -79,7 +79,7 @@ after_failure:
7979
after_success:
8080
|
8181
if [[ $TRAVIS_PULL_REQUEST == false && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
82-
cd $MPL_REPO_DIR
82+
cd $TRAVIS_BUILD_DIR
8383
echo "Uploading documentation"
8484
openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in .travis/matplotlibDeployKey.enc -out .travis/matplotlibDeployKey -d
8585
eval `ssh-agent -s`
@@ -103,7 +103,7 @@ after_success:
103103
if [[ $TRAVIS_PULL_REQUEST == false ]] && \
104104
[[ $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]] && \
105105
[[ $TRAVIS_BRANCH == 'master' ]]; then
106-
cd $MPL_REPO_DIR
106+
cd $TRAVIS_BUILD_DIR
107107
python .travis/travis_after_all.py
108108
export $(cat .to_export_back)
109109
if [ "$BUILD_LEADER" = "YES" ]; then
@@ -114,5 +114,4 @@ after_success:
114114
echo "Some Failed; no OSX build"
115115
fi
116116
fi
117-
fi
118117
fi

0 commit comments

Comments
 (0)