Skip to content

Commit 4eafdcd

Browse files
committed
Disable 3rd-party extension builds on master
1 parent 9345d40 commit 4eafdcd

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.travis.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -120,18 +120,20 @@ before_script:
120120

121121
script:
122122
- cat $HOME/.php-build/share/php-build/default_configure_options
123-
- |
124-
./bin/compile &&
125-
(yes '' | ./bin/compile-extension-redis) &&
126-
(./bin/compile-extension-mongo;
127-
./bin/compile-extension-mongodb) &&
128-
./bin/compile-extension-amqp &&
129-
./bin/compile-extension-apcu &&
130-
./bin/compile-extension-zmq &&
131-
(./bin/compile-extension-memcache;
132-
./bin/compile-extension-memcached) &&
133-
./bin/compile-extension-ssh2 &&
134-
sed -i '/^extension=/d' $INSTALL_DEST/$VERSION/etc/php.ini
123+
- ./bin/compile
124+
- | # disable 3rd-party extension builds on master
125+
if [[ ! $VERSION =~ ^master$ ]]; then
126+
(yes '' | ./bin/compile-extension-redis) &&
127+
(./bin/compile-extension-mongo;
128+
./bin/compile-extension-mongodb) &&
129+
./bin/compile-extension-amqp &&
130+
./bin/compile-extension-apcu &&
131+
./bin/compile-extension-zmq &&
132+
(./bin/compile-extension-memcache;
133+
./bin/compile-extension-memcached) &&
134+
./bin/compile-extension-ssh2 &&
135+
sed -i '/^extension=/d' $INSTALL_DEST/$VERSION/etc/php.ini
136+
fi
135137
136138
after_success:
137139
- ARTIFACTS_KEY='' ARTIFACTS_SECRET='' ARTIFACTS_BUCKET='' ARTIFACTS_PERMISSIONS='' $INSTALL_DEST/$VERSION/bin/php -i

0 commit comments

Comments
 (0)