forked from phingofficial/phing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.sh
executable file
·40 lines (32 loc) · 1.27 KB
/
.travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#-----------------------------------------------------------
#
# Purpose: Run phing in a travis environment
#
# Target system: travis-ci
#-----------------------------------------------------------
if [[ $TRAVIS_PHP_VERSION != 'hhvm-nightly' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then
echo -e "\nAuto-discover pear channels and upgrade ..."
pear config-set auto_discover 1
pear -qq channel-update pear.php.net
pear -qq channel-discover pear.phing.info
echo "... OK"
fi
echo -e "\nInstalling composer packages ... "
composer selfupdate --quiet
composer install -o --no-progress --prefer-dist
if [[ $TRAVIS_PHP_VERSION != 'hhvm-nightly' && $TRAVIS_PHP_VERSION != 'hhvm' ]]; then
phpenv config-add .travis.php.ini
else
echo "hhvm.libxml.ext_entity_whitelist = file" >> /etc/hhvm/php.ini
phpenv rehash
echo "hhvm.libxml.ext_entity_whitelist = file" >> /etc/hhvm/php.ini
fi
phpenv rehash
echo "=== SETTING GIT IDENTITY ==="
git config --global user.email "[email protected]"
git config --global user.name "Phing Travis Builder"
echo "=== TESTING PHING ==="
cd test
../bin/phing
#------------------------------------------------------- eof