You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.4 KiB
39 lines
1.4 KiB
language: php |
|
|
|
php: |
|
- 5.3 |
|
- 5.4 |
|
- 5.5 |
|
|
|
env: |
|
- CUBRID_VERSION=9.1.0 |
|
|
|
before_script: |
|
- composer self-update && composer --version |
|
- composer require satooshi/php-coveralls 0.6.* |
|
- mysql -e 'CREATE DATABASE yiitest;'; |
|
- psql -U postgres -c 'CREATE DATABASE yiitest;'; |
|
# |
|
# install CUBRID DBMS https://github.com/CUBRID/node-cubrid/blob/056e734ce36bb3fd25f100c983beb3947e899c1c/.travis.yml |
|
- sudo hostname localhost |
|
# Update OS before installing prerequisites. |
|
- sudo apt-get update |
|
# Install Chef Solo prerequisites. |
|
- sudo apt-get install ruby ruby-dev libopenssl-ruby rdoc ri irb build-essential ssl-cert |
|
# Install Chef Solo. |
|
# Chef Solo 11.4.4 is broken, so install a previous version. |
|
# The bug is planned to be fixed in 11.4.5 which haven't been released yet. |
|
- sudo gem install --version '<11.4.4' chef --no-rdoc --no-ri |
|
# Make sure the target directory for cookbooks exists. |
|
- mkdir -p /tmp/chef-solo |
|
# Prepare a file with runlist for Chef Solo. |
|
- echo '{"cubrid":{"version":"'$CUBRID_VERSION'"},"run_list":["cubrid::demodb"]}' > cubrid_chef.json |
|
# Install CUBRID via Chef Solo. Download all cookbooks from a remote URL. |
|
- sudo chef-solo -c tests/unit/data/cubrid-solo.rb -j cubrid_chef.json -r http://sourceforge.net/projects/cubrid/files/CUBRID-Demo-Virtual-Machines/Vagrant/chef-cookbooks.tar.gz/download |
|
|
|
|
|
script: |
|
- phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml |
|
|
|
after_script: |
|
- php vendor/bin/coveralls |