├── .gitignore ├── .travis.yml ├── README.md └── install.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kelunik/travis-php/3690c8badd5140175d5e917a0204d28e79065ad6/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: php 2 | sudo: false 3 | 4 | php: 5 | - 7 6 | 7 | env: 8 | - RELEASE=7.0.0alpha1 9 | - RELEASE=7.0.0alpha2 10 | - RELEASE=7.0.0beta1 11 | - RELEASE=7.0.0beta2 12 | - RELEASE=7.0.0beta3 13 | - RELEASE=master 14 | 15 | before_script: 16 | - git clone https://github.com/kelunik/travis-php && travis-php/install.sh $RELEASE 17 | 18 | script: 19 | - php -v 20 | 21 | notifications: 22 | email: false 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Travis PHP Helper [![Build Status](https://travis-ci.org/kelunik/travis-php.svg?branch=master)](https://travis-ci.org/kelunik/travis-php) 2 | 3 | This little repository helps testing on Travis CI with actual release version rather than nightly builds. 4 | 5 | ## Usage 6 | 7 | You don't need this anymore. Travis supports pre-releases and actual nightly builds now. 8 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | VERSION=(`phpenv version`) 4 | 5 | if [[ ${VERSION[0]} != "7.0.0" && ${VERSION[0]} != "7.0" && ${VERSION[0]} != "7" ]] 6 | then 7 | echo "aborting installation... not running with 7.0.0" 8 | exit 0 9 | fi 10 | 11 | wget http://php.kelunik.com/$1.tar.xz -q -O release.tar.xz 12 | echo "download successful" 13 | 14 | tar -xJf release.tar.xz 15 | echo "unpacking successful" 16 | 17 | rm release.tar.xz 18 | echo "deleted archive" 19 | 20 | mkdir -p $HOME/.phpenv/versions 21 | rm -rf $HOME/.phpenv/versions/$1 22 | mv $1 $HOME/.phpenv/versions/$1 23 | echo "installed version to phpenv directory" 24 | 25 | phpenv rehash 26 | phpenv global $1 27 | --------------------------------------------------------------------------------