Skip to content

Commit

Permalink
testing travis to see if php 7.2 is supported yet
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmunro committed Aug 22, 2018
1 parent 004b444 commit 11211cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ php:
- '5.6'
- '7.0'
- '7.1'
#- nightly
- '7.2'

# run the phpunit tests, then the selenium tests
script: sh .travis/run.sh
Expand Down
10 changes: 5 additions & 5 deletions .travis/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ update_repos() {

# Enable memcached extension
setup_memcached() {
if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then
sudo apt-get install -y php-memcached
fi
echo 'extension=memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
Expand Down Expand Up @@ -48,10 +48,10 @@ selenium_config() {
if [ "$TRAVIS_PHP_VERSION" = "5.4" ] && [ "$DB" = "mysql" ]; then
mv .travis/creds.py-edge creds.py
fi
if [ "$TRAVIS_PHP_VERSION" = "nightly" ] && [ "$DB" = "postgresql" ]; then
if [ "$TRAVIS_PHP_VERSION" = "7.2" ] && [ "$DB" = "postgresql" ]; then
mv .travis/creds.py-safari creds.py
fi
if [ "$TRAVIS_PHP_VERSION" = "nightly" ] && [ "$DB" = "mysql" ]; then
if [ "$TRAVIS_PHP_VERSION" = "7.2" ] && [ "$DB" = "mysql" ]; then
mv .travis/creds.py-chrome creds.py
fi
}
Expand Down Expand Up @@ -89,7 +89,7 @@ install_phpunit() {
if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then
wget https://phar.phpunit.de/phpunit-5.7.phar -O phpunit
fi
if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then
wget https://phar.phpunit.de/phpunit-5.7.phar -O phpunit
fi
chmod +x phpunit
Expand All @@ -114,7 +114,7 @@ install_apache() {
if [ "$TRAVIS_PHP_VERSION" = "7.1" ]; then
sudo cp .travis/www.conf ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/
fi
if [ "$TRAVIS_PHP_VERSION" = "nightly" ]; then
if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then
sudo cp .travis/www.conf ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/
fi

Expand Down

0 comments on commit 11211cb

Please sign in to comment.