forked from drupal-modules/ads_animals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (44 loc) · 1.92 KB
/
.travis.yml
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
41
42
43
44
language: php
php:
- 5.3
before_script:
- sudo git clone https://github.com/mycognitive/ads ads
- cd ads
- sudo cp travis/travis.known_hosts ~/.ssh/known_hosts
- sudo cat /etc/ssh/ssh_config
- sudo echo -e "Host github.com\n User git\n StrictHostKeyChecking no\n PasswordAuthentication no\n CheckHostIP no\n BatchMode yes\n" >> ~/.ssh/config
- sudo cat ~/.ssh/config
- sudo cat ~/.ssh/known_hosts
- echo "USE mysql;\nUPDATE user SET password=PASSWORD('root') WHERE user='root';\nFLUSH PRIVILEGES;\n" | mysql -u root
- echo "CREATE DATABASE travis_ads_test DEFAULT CHARACTER SET utf8" | mysql -uroot -proot
- sudo cp ../.travis/travis.build.properties build.properties
- phpenv config-add php.ini
- sudo apt-get update -qq
- sudo apt-get install -qq php5-gd
- sudo apt-get install -qq php5-mysql
- sudo apt-get install -qq php-pear
- sudo apt-get install python-software-properties
- sudo apt-get install -y -qq postfix
- sudo service postfix stop
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
- echo -e '#!/usr/bin/env bash\nexit 0' | sudo tee /usr/sbin/sendmail
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -i | grep "PHP Version" | head -n 1 | grep -o -P '\d+\.\d+\.\d+.*'`/etc/conf.d/sendmail.ini"
- sudo pear upgrade pear
- sudo pear channel-discover pear.phing.info
- sudo pear config-set preferred_state alpha
- sudo chmod -R 777 "/tmp/pear"
- sudo pear config-set cache_dir "/tmp/pear/temp"
- sudo pear install --onlyreqdeps phing/phing
- sudo pear channel-discover pear.drush.org
- sudo pear install drush/drush-6.0.0
- sudo chmod -R 777 /usr/share/php/drush/lib
- sudo drush --version
- sudo apt-get install -y -qq postfix
env:
- GIT_TRACE=1 GIT_SSH="/usr/bin/ssh -oStrictHostKeyChecking=no "
script:
- sudo cp ../.travis/dist/*.make ./
- sudo phing -debug
- sudo phing -debug ads-install
notifications:
email: false