forked from nette/nette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (25 loc) · 916 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
32
33
language: php
php:
- 5.3.3
- 5.4
- 5.5
matrix:
allow_failures:
- php: 5.5
script: "VERBOSE=true ./tests/run-tests.sh -s tests/"
#services:
# - memcached
before_script:
# Install Memcached server (because the built in one is buggy)
- sudo apt-get -qq install libevent-dev
- wget http://memcached.googlecode.com/files/memcached-1.4.14.tar.gz
- tar xzf memcached-1.4.14.tar.gz
- sh -c "cd memcached-1.4.14 && ./configure && make && ./memcached -d" > /dev/null
# Install Nette Tester
- composer install --no-interaction --dev
# PHP Memcache extension (PECL 5.5 is not ready on travis server)
- if [ "$TRAVIS_PHP_VERSION" != "5.5" ]; then echo n | pecl install memcache > /dev/null; fi
# Create databases.ini
- cp ./tests/Nette/Database/databases.sample.ini ./tests/Nette/Database/databases.ini
# Create Postgre database
- psql -c 'CREATE DATABASE nette_test' -U postgres