Skip to content

Commit cec09fc

Browse files
committed
Revert ".travis.yml: don't do deploy on pull requests to the prod branch."
This reverts commit dec9662. It turned out that this makes config invalid and build fails with "did not find expected key while parsing a block mapping at line 43 column 5" error.
1 parent 11531c1 commit cec09fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_script:
1212
- if [ "$SPRING_PROFILES_ACTIVE" = 'travis' ]; then
1313
mysql -u travis -e 'CREATE DATABASE mystamps CHARACTER SET utf8;';
1414
mkdir -p /tmp/uploads /tmp/preview;
15-
if [ "$TRAVIS_BRANCH" = 'prod' -a "$TRAVIS_PULL_REQUEST" = 'false' ]; then
15+
if [ "$TRAVIS_BRANCH" = 'prod' ]; then
1616
pip install --user ansible==2.1.1.0;
1717
fi;
1818
npm install -g bootlint;
@@ -41,7 +41,7 @@ deploy:
4141
script: ./src/main/scripts/ci/deploy.sh
4242
on:
4343
branch: prod
44-
condition: "$SPRING_PROFILES_ACTIVE" = 'travis' -a "$TRAVIS_PULL_REQUEST" = 'false'
44+
condition: $SPRING_PROFILES_ACTIVE = 'travis'
4545
skip_cleanup: true
4646

4747
jdk:

0 commit comments

Comments
 (0)