-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (30 loc) · 937 Bytes
/
.travis.yml
File metadata and controls
37 lines (30 loc) · 937 Bytes
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
language: php
php:
- "5.5"
env:
- DB=mysql
services: mysql
mysql:
adapter: mysql2
database: claroline_test_travis
username: travis
encoding: utf8
before_script:
- cd ../..
- ROOT_DIR=`pwd`
- curl -O https://raw.githubusercontent.com/claroline/DevBundle/master/Resources/travis/pre-composer.php
- phpenv config-rm xdebug.ini
- php pre-composer.php
- BUNDLE_DIR=`cat bundle_dir.txt`
- cd $BUNDLE_DIR
- echo "memory_limit=3072M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer self-update
- COMPOSER=composer_travis.json composer update --prefer-source
- cd $ROOT_DIR
- cp -R vendor/claroline/dev-bundle/Resources/travis/app/* app
- php app/register-bundle.php `cat package_dir.txt`
- rm -rf app/cache/*
- mysql -e 'create database claroline_test_travis;'
- php app/init-schema.php
script: vendor/bin/phpunit -c "${BUNDLE_DIR}/phpunit_travis.xml"
sudo: false