forked from Codeception/Codeception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.94 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: php
php:
- 5.3
- 5.4
- 5.5
branches:
except:
- gh-pages
services:
- mongodb
- rabbitmq
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar
- java -jar selenium-server-standalone-2.35.0.jar -port 4444 &
- php -S localhost:8000 -t tests/data/app &
- curl -s http://getcomposer.org/installer | php
- composer install -n --prefer-source
- "mysql -e 'create database codeception_test;'"
- psql -c 'create database codeception_test;' -U postgres
# Yii2
- '[[ "$TRAVIS_PHP_VERSION" == "5.3" ]] || composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic frameworks-yii-basic'
- '[[ "$TRAVIS_PHP_VERSION" == "5.3" ]] || php codecept build -c frameworks-yii-basic'
# Phalcon
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b 1.2.4
- cd cphalcon/ext; export CFLAGS="-g3 -O1 -fno-delete-null-pointer-checks -Wall"; phpize &> /dev/null && ./configure --enable-phalcon &> /dev/null && make -j4 && sudo make install && phpenv config-add ../unit-tests/ci/phalcon.ini &> /dev/null && cd ../..;
- git clone -q --depth=1 https://github.com/DavertMik/forum.git frameworks-phalcon
- "mysql -e 'CREATE DATABASE forum;'"
- cat frameworks-phalcon/schemas/forum.sql | mysql forum
- php codecept build -c frameworks-phalcon
# Laravel
- git clone -q https://github.com/Codeception/sample-l4-app.git frameworks-laravel
- "mysql -e 'create database `l4-module`;'"
- composer install -d frameworks-laravel
- php frameworks-laravel/artisan migrate --seed
- php codecept build -c frameworks-laravel
script:
- php codecept run # self tests
- '[[ "$TRAVIS_PHP_VERSION" == "5.3" ]] || php codecept run functional -c frameworks-yii-basic' # Yii2 tests
- php codecept run functional -c frameworks-laravel # Laravel4 Tests
- php codecept run functional -c frameworks-phalcon # Phalcon Tests