mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-30 07:06:20 +00:00
96d4a3ecf7
Due to historical reasons, the code is in subfolder "1". With SVN removal, we place the code back and remove the annoying "1" folder.
34 lines
919 B
YAML
34 lines
919 B
YAML
language: php
|
|
php:
|
|
- 5.6
|
|
- 5.5
|
|
- 5.4
|
|
- 5.3
|
|
- hhvm
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: hhvm
|
|
|
|
before_install:
|
|
- sudo apt-get update -qq
|
|
- sudo apt-get install -y -qq postfix
|
|
before_script:
|
|
- sudo service postfix stop
|
|
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
|
|
- mkdir -p build/logs
|
|
- cd test
|
|
- cp testbootstrap-dist.php testbootstrap.php
|
|
- chmod +x fakesendmail.sh
|
|
- sudo mkdir -p /var/qmail/bin
|
|
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail
|
|
- sudo cp fakesendmail.sh /usr/sbin/sendmail
|
|
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
|
|
- pwd
|
|
- ls -al
|
|
script:
|
|
- phpunit --configuration ../travis.phpunit.xml.dist
|
|
after_script:
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml
|