forked from owncloud-archive/contacts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (25 loc) · 792 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: php
php:
- 5.3
- 5.4
- 5.5
branches:
except:
- share
env:
- DB=sqlite
- DB=mysql
# - DB=pgsql
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh contacts master $DB
# - sudo add-apt-repository -y ppa:chris-lea/node.js
# - sudo apt-get update
# - sudo apt-get -y install nodejs
# - 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
script:
- sh -c "if [ '$DB' = 'sqlite' ]; then ant test; fi"
- phpunit --configuration tests/phpunit.xml --testsuite unit-tests
#&& make javascript-tests