From c93b085ca5b461562549a39c225508ccf53a8123 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 26 Sep 2015 17:41:59 +0100 Subject: [PATCH] update secure --- .travis.yml | 64 +++++++++++++++++++++++------------------------------ 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/.travis.yml b/.travis.yml index 315f3ce9..dd71e4fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,53 +1,45 @@ language: php sudo: false -secure: "Td0VfHgdSGrTR96To/OScKikV/kohRclUj1AFi9m0prdFc0q/xP8jZ1EQ0qVtqwkySa9OXsekOBeiQfoqQm+e+aYH6LdBDchqtqYPzl1VAadTAPtk28M9nazl+n7Qf8ftH11WsXTl4JmbjHiwooWV8cRPUM4pQyLBc64Dg8t3vI=" php: -# Here is where we can list the versions of PHP you want to test against -# using major version aliases - - 5.4 - - 5.5 - - 5.6 - - nightly +- 5.4 +- 5.5 +- 5.6 +- nightly -# optionally specify a list of environments, for example to test different RDBMS env: + matrix: - DB=mysql - DB=pgsql - DB=sqlite + global: + secure: rKSbYXalj/HkcomwfKup9VAAenr3Dx2HQ5Imdn8dA/9CAh403jjAWDQ93Ddzxj7pPpUVnOWGE3mN/tyuUUU7BUOEXtm1xNkuvUPMgMIfsM+OpDnTysKmM6ZFR4KIwrFqv+uipL4sCQVuAbZ6j34LRKpAMwMw0aORj0OL6qrhvfA= install: - # Enable logging of all queries (for debugging) and create the database schema for shimmie. - - mkdir -p data/config - - if [[ "$DB" == "pgsql" ]]; then psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres; fi - - if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi - - if [[ "$DB" == "pgsql" ]]; then echo ' data/config/auto_install.conf.php ; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "SET GLOBAL general_log = 'ON';" -uroot; fi - - if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi - - if [[ "$DB" == "mysql" ]]; then echo ' data/config/auto_install.conf.php ; fi - - if [[ "$DB" == "sqlite" ]]; then echo ' data/config/auto_install.conf.php ; fi - - wget https://scrutinizer-ci.com/ocular.phar +- mkdir -p data/config +- if [[ "$DB" == "pgsql" ]]; then psql -c "SELECT set_config('log_statement', 'all', false);" -U postgres; fi +- if [[ "$DB" == "pgsql" ]]; then psql -c "CREATE DATABASE shimmie;" -U postgres; fi +- if [[ "$DB" == "pgsql" ]]; then echo ' data/config/auto_install.conf.php ; fi +- if [[ "$DB" == "mysql" ]]; then mysql -e "SET GLOBAL general_log = 'ON';" -uroot; fi +- if [[ "$DB" == "mysql" ]]; then mysql -e "CREATE DATABASE shimmie;" -uroot; fi +- if [[ "$DB" == "mysql" ]]; then echo ' data/config/auto_install.conf.php ; fi +- if [[ "$DB" == "sqlite" ]]; then echo ' data/config/auto_install.conf.php ; fi +- wget https://scrutinizer-ci.com/ocular.phar script: - - php install.php - - phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover +- php install.php +- phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover -# If a failure occured then dump out a bunch of logs for debugging purposes. after_failure: - - head -n 100 data/config/* - - ls /var/run/mysql* - - ls /var/log/*mysql* - - cat /var/log/mysql.err - - cat /var/log/mysql.log - - cat /var/log/mysql/error.log - - cat /var/log/mysql/slow.log - - ls /var/log/postgresql - - cat /var/log/postgresql/postgresql* +- head -n 100 data/config/* +- ls /var/run/mysql* +- ls /var/log/*mysql* +- cat /var/log/mysql.err +- cat /var/log/mysql.log +- cat /var/log/mysql/error.log +- cat /var/log/mysql/slow.log +- ls /var/log/postgresql +- cat /var/log/postgresql/postgresql* after_script: - - php ocular.phar code-coverage:upload --access-token=$SCI_TOKEN --format=php-clover --repository=shish/shimmie2 data/coverage.clover - -# configure notifications (email, IRC, campfire etc) -#notifications: -# irc: "irc.freenode.org#shimmie" -# +- php ocular.phar code-coverage:upload --access-token=$SCI_TOKEN --format=php-clover --repository=shish/shimmie2 data/coverage.clover