forked from Codeception/Codeception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (54 loc) · 2.44 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
language: php
php:
- 5.4
- 5.5
- hhvm
matrix:
allow_failures:
- php: hhvm
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 &
- php -S localhost:8010 -t tests/data &
- 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
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
# Yii2
- composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic frameworks-yii-basic
- php codecept build -c frameworks-yii-basic
# Phalcon
- 'git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b 1.2.4'
- '[[ "$TRAVIS_PHP_VERSION" == "hhvm" ]] || (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
# Symfony
- git clone https://github.com/DavertMik/SymfonyCodeceptionApp.git frameworks-symfony
- composer install -d frameworks-symfony --no-dev
- frameworks-symfony/app/console doctrine:database:create
- frameworks-symfony/app/console doctrine:schema:create
- php codecept build -c frameworks-symfony
script:
- php codecept run # self tests
- php codecept run functional -c frameworks-yii-basic # Yii2 tests
- php codecept run functional -c frameworks-laravel # Laravel4 Tests
- '[[ "$TRAVIS_PHP_VERSION" == "hhvm" ]] || php codecept run functional -c frameworks-phalcon'
- php codecept run functional -c frameworks-symfony # Symfony Tests