8000 Cleanup Yaml syntax in after section: · matplotlib/matplotlib@1d582bc · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d582bc

Browse files
committed
Cleanup Yaml syntax in after section:
1 parent bd08e4c commit 1d582bc

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

.travis.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -134,33 +134,33 @@ after_failure:
134134
fi
135135
136136
after_success:
137-
|
138-
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
139-
cd $TRAVIS_BUILD_DIR
140-
echo "Uploading documentation"
141-
openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in ci/travis/matplotlibDeployKey.enc -out ci/travis/matplotlibDeployKey -d
142-
eval `ssh-agent -s`
143-
chmod 600 ci/travis/matplotlibDeployKey
144-
ssh-add ci/travis/matplotlibDeployKey
145-
cd ..
146-
git clone git@github.com:matplotlib/devdocs.git
147-
cd devdocs
148-
git checkout --orphan gh-pages
149-
git reset --hard first_commit
150-
cp -R ../matplotlib/doc/build/html/. .
151-
touch .nojekyll
152-
git config --global user.email "MatplotlibTravisBot@nomail"
153-
git config --global user.name "MatplotlibTravisBot"
154-
git config --global push.default simple
155-
git add .
156-
git commit -m "Docs build of $TRAVIS_COMMIT"
157-
git push --set-upstream origin gh-pages --force
158-
else
159-
echo "Will only deploy docs build from matplotlib master branch"
160-
fi
161-
if [[ $TRAVIS_PULL_REQUEST == false ]] && \
162-
[[ $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]] && \
163-
[[ $TRAVIS_BRANCH == 'master' ]]; then
137+
- |
138+
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' && $BUILD_DOCS == true && $TRAVIS_BRANCH == 'master' ]]; then
139+
cd $TRAVIS_BUILD_DIR
140+
echo "Uploading documentation"
141+
openssl aes-256-cbc -K $encrypted_cc802e084cd0_key -iv $encrypted_cc802e084cd0_iv -in ci/travis/matplotlibDeployKey.enc -out ci/travis/matplotlibDeployKey -d
142+
eval `ssh-agent -s`
143+
chmod 600 ci/travis/matplotlibDeployKey
144+
ssh-add ci/travis/matplotlibDeployKey
145+
cd ..
146+
git clone git@github.com:matplotlib/devdocs.git
147+
cd devdocs
148+
git checkout --orphan gh-pages
149+
git reset --hard first_commit
150+
cp -R ../matplotlib/doc/build/html/. .
151+
touch .nojekyll
152+
git config --global user.email "MatplotlibTravisBot@nomail"
153+
git config --global user.name "MatplotlibTravisBot"
154+
git config --global push.default simple
155+
git add .
156+
git commit -m "Docs build of $TRAVIS_COMMIT"
157+
git push --set-upstream origin gh-pages --force
158+
else
159+
echo "Will only deploy docs build from matplotlib master branch"
160+
fi
161+
if [[ $TRAVIS_PULL_REQUEST == false ]] && \
162+
[[ $TRAVIS_REPO_SLUG == 'matplotlib/matplotlib' ]] && \
163+
[[ $TRAVIS_BRANCH == 'master' ]]; then
164164
cd $TRAVIS_BUILD_DIR
165165
python ci/travis/travis_after_all.py
166166
export $(cat .to_export_back)
@@ -172,7 +172,7 @@ after_success:
172172
echo "Some Failed; no OSX build"
173173
fi
174174
fi
175-
fi
176-
if [[ $NOSE_ARGS="--with-coverage" ]]; then
177-
coveralls
178-
fi
175+
fi
176+
if [[ $NOSE_ARGS="--with-coverage" ]]; then
177+
coveralls
178+
fi

0 commit comments

Comments
 (0)
0