summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 22:55:10 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-15 22:55:10 +0200
commit6e374d8827e181c494a69af1b566189dddbf5759 (patch)
tree461ebabb1896dc3da954b60f9416db85f588cd04 /.travis.yml
parent5652536cc1fb1c2503ce1049687503d80d506c9c (diff)
hopefully working ci tests
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml31
1 files changed, 25 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml
index 7aa3d08e4..c52f5741f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,21 +3,38 @@ php:
- 5.4
- 5.5
+env:
+ - DB=sqlite
+ - DB=postgresql
+ - DB=mysql
+
before_install:
- - sudo add-apt-repository ppa:fkrull/deadsnakes
- sudo add-apt-repository -y ppa:chris-lea/node.js
- sudo apt-get update
- - sudo apt-get -y install nodejs python3.4
+
+install:
+ - sudo apt-get -y install nodejs pyhton3-jinja2 python3-setuptools
+ - sudo easy_install3 pip
- sudo pip3 install ocdev
- sudo npm install -g grunt-cli protractor
- sudo webdriver-manager update
- - wget https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2
- - tar xjf phantomjs-1.9.0-linux-x86_64.tar.bz2
- - sudo ln -s $(pwd)/phantomjs-1.9.0-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
+ - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2
+ - tar xjf phantomjs-1.9.7-linux-x86_64.tar.bz2
+ - sudo ln -s $(pwd)/phantomjs-1.9.7-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
- cd ..
- ocdev setup core
- mv news core/apps/
- - cd ../apps/news
+ - cd core
+
+before_script:
+ - createuser -U travis -s oc_autotest
+ - mysql -e 'create database oc_autotest;'
+ - mysql -u root -e "CREATE USER 'oc_autotest'@'localhost'";
+ - mysql -u root -e "grant all on oc_autotest.* to 'oc_autotest'@'localhost'";
+ - ocdev ci $DB
+ - sudo chown -R www-data:www-data data
+ - sudo chown -R www-data:www-data config
+ - cd apps/news
script:
- phpunit --coverage-clover=coverage.clover tests/unit
@@ -30,3 +47,5 @@ script:
#- sh -e /etc/init.d/xvfb start
#- grunt e2e
+addons:
+ postgresql: "9.3" \ No newline at end of file