Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PHPC-234: Run test suite automatically on FreeBSD 10.1
- Loading branch information
Showing
4 changed files
with
22 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Update ports | ||
sudo portsnap fetch extract | ||
sudo portsnap fetch extract update | ||
|
||
# Minimum required PHP install + pecl | ||
sudo pkg install pcre php56 php56-openssl php56-json pear autoconf cyrus-sasl | ||
sudo pkg install -y pcre php56 php56-openssl php56-json pear autoconf pkgconf cyrus-sasl | ||
|
||
# We need vim. git requires curl. mongoc requires libtool and automake | ||
sudo pkg install vim git curl libtool automake | ||
sudo pkg install -y vim git curl libtool automake | ||
|
||
# I can't stand emacs | ||
echo 'set -o vi' | sudo tee /etc/profile.d/vishell.sh | ||
echo 'set -o vi' | sudo tee -a /etc/profile | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ls -1 /phongo/mongodb*.tgz | sort -n -r | xargs sudo pecl install -f 2>&1 > /phongo/.build | ||
if test $? -eq 0; then | ||
php -m | grep -q mongodb || echo "extension=mongodb.so" | sudo tee -a /usr/local/etc/php/extensions.ini | ||
pecl run-tests -q -p mongodb 2>&1 > /phongo/.tests | ||
else | ||
tail -n50 /phongo/.build | ||
exit 3 | ||
fi | ||
|
||
|