-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
37 lines (37 loc) · 1.17 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
notifications:
irc:
channels:
- "irc.freenode.net#ushahidi"
language: php
php:
- "5.4"
- "5.5"
services:
- mysql
env:
- KOHANA_ENV=testing
before_install:
- sudo apt-get update
- sudo apt-get install npm
- git submodule update --init --recursive
install:
- npm install -g grunt-cli
- composer install --no-interaction --prefer-source # Have to prefer source or hit github rate limit
- pushd modules/UshahidiUI && npm install && popd
before_script:
- mkdir application/cache application/logs
- chmod 777 application/cache application/logs
- cp application/tests/behat.template application/tests/behat.yml
# db setup
- mysql -e 'create database lamu_test;'
- ./minion --task=migrations:run --up
# 2.x db setup for import test
- mysql -e 'create database zombie2x;'
- curl https://72c9192a7b87de5fc63a-f9fe2e6be12470a7bff22b7693bc7329.ssl.cf1.rackcdn.com/lamu-ci-zombie2x.sql | mysql zombie2x
# webserver setup
- php -S localhost:8000 httpdocs/index.php &
- sleep 3
script:
- ./bin/behat --config application/tests/behat.yml --format progress
- ./bin/phpunit -c application/tests/phpunit.xml
- pushd modules/UshahidiUI && grunt test && popd