This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/.travis.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2014-02-10 05:33:57 +00:00
language: php
# list the versions of PHP you want to test against
2014-02-10 05:33:57 +00:00
php:
# using major version aliases
- 5.3
# optionally specify a list of environments, for example to test different RDBMS
env:
- DB=mysql
# - DB=pgsql
before_install:
2014-02-18 03:45:03 +00:00
- pwd
- sudo pwd
- sudo apt-get update > /dev/null
install:
2014-02-18 03:45:03 +00:00
- pwd
- sudo pwd
- sudo chmod u+x test/setup_test_env.sh
- sudo ./test/setup_test_env.sh $TRAVIS_BUILD_DIR
2014-02-10 05:33:57 +00:00
# execute any number of scripts before the test run, custom env's are available as variables
before_script:
- if [[ "$DB" == "pgsql" ]]; then psql -c "DROP DATABASE IF EXISTS shimmie;" -U postgres; fi
- if [[ "$DB" == "pgsql" ]]; then psql -c "create database shimmie;" -U postgres; fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database shimmie;" -uroot; fi
# shimmie needs to be able to create directories for images, etc.
# (permissions of 777 are bad, but it definitely works)
2014-02-10 05:33:57 +00:00
- chmod -R 777 .
script: php tests/test_install.php -d $DB
2014-02-10 05:33:57 +00:00
# configure notifications (email, IRC, campfire etc)
#notifications:
# irc: "irc.freenode.org#travis"
#