forked from Codeception/Codeception
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (63 loc) · 2.71 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
65
66
67
68
69
70
71
language: php
php:
- 5.4
- 5.5
- 5.6
- hhvm
matrix:
allow_failures:
- php: hhvm
branches:
except:
- gh-pages
services:
- mongodb
- rabbitmq
install:
- wget http://selenium-release.storage.googleapis.com/2.42/selenium-server-standalone-2.42.2.jar
- composer global require "fxp/composer-asset-plugin:1.0.0-beta2"
- composer install
# Queue (Beanstalkd)
- sudo apt-get update -qq
- sudo apt-get install -qq beanstalkd
# Yii2
- composer create-project --stability=dev yiisoft/yii2-app-basic frameworks-yii-basic
- 'git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b 1.2.4'
# Phalcon
- '[[ "$TRAVIS_PHP_VERSION" == "hhvm" ]] || [[ "$TRAVIS_PHP_VERSION" == "5.6" ]] || (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'
# Laravel
- git clone -q https://github.com/Codeception/sample-l4-app.git frameworks-laravel
- composer install -d frameworks-laravel --no-dev
# Symfony
- git clone https://github.com/DavertMik/SymfonyCodeceptionApp.git frameworks-symfony
- composer install -d frameworks-symfony --no-dev
before_script:
- beanstalkd -d -l 127.0.0.1 -p 11300
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- sleep 5
- java -jar selenium-server-standalone-2.42.2.jar -port 4444 &
- "mysql -e 'create database codeception_test;'"
- psql -c 'create database codeception_test;' -U postgres
- php -S localhost:8000 -t tests/data/app &
- php -S localhost:8010 -t tests/data &
- "mysql -e 'CREATE DATABASE forum;'"
- cat frameworks-phalcon/schemas/forum.sql | mysql forum
# Laravel
- "mysql -e 'create database `l4-module`;'"
- php frameworks-laravel/artisan migrate --seed -n
# Symfony
- frameworks-symfony/app/console doctrine:database:create
- frameworks-symfony/app/console doctrine:schema:create
- php codecept build -c frameworks-yii-basic/tests
- php codecept build -c frameworks-phalcon
- php codecept build -c frameworks-laravel
- php codecept build -c frameworks-symfony
script:
- php codecept run # self tests
- php codecept run functional -c frameworks-yii-basic/tests # Yii2 tests
- php codecept run -c frameworks-laravel # Laravel4 Tests
- '[[ "$TRAVIS_PHP_VERSION" == "hhvm" ]] || [[ "$TRAVIS_PHP_VERSION" == "5.6" ]] || php codecept run functional -c frameworks-phalcon'
- php codecept run functional -c frameworks-symfony # Symfony Tests