Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd08e4c

Browse files
committed
Cleanup Yaml syntax in script section:
1 parent 81f795f commit bd08e4c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.travis.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ script:
104104
# The number of processes is hardcoded, because using too many causes the
105105
# Travis VM to run out of memory (since so many copies of inkscape and
106106
# ghostscript are running at the same time).
107-
- echo Testing using $NPROC processes
108-
- echo The following args are passed to nose $NOSE_ARGS
109107
- |
108+
echo Testing using $NPROC processes
109+
echo The following args are passed to nose $NOSE_ARGS
110110
if [[ $BUILD_DOCS == false ]]; then
111111
export MPL_REPO_DIR=$PWD # needed for pep8-conformance test of the examples
112112
gdb -return-child-result -batch -ex r -ex bt --args python tests.py $NOSE_ARGS $TEST_ARGS
@@ -122,16 +122,16 @@ script:
122122
fi
123123
124124
after_failure:
125-
|
126-
if [[ $BUILD_DOCS == false && $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
127-
gem install travis-artifacts
128-
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
129-
tar cjf result_images.tar.bz2 result_images
130-
travis-artifacts upload --path result_images.tar.bz2
131-
echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
132-
else
133-
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."
134-
fi
125+
- |
126+
if [[ $BUILD_DOCS == false && $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]]; then
127+
gem install travis-artifacts
128+
cd $TRAVIS_BUILD_DIR/../tmp_test_dir
129+
tar cjf result_images.tar.bz2 result_images
130+
travis-artifacts upload --path result_images.tar.bz2
131+
echo https://s3.amazonaws.com/matplotlib-test-results/artifacts/${TRAVIS_BUILD_NUMBER}/${TRAVIS_JOB_NUMBER}/result_images.tar.bz2
132+
else
133+
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."
134+
fi
135135
136136
after_success:
137137
|

0 commit comments

Comments
 (0)