-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
42 lines (31 loc) · 849 Bytes
/
.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
language: php
sudo: false
php:
- 7.0
- 7.1
addons:
rethinkdb: "2.3"
services:
- mongodb
env:
matrix:
- DRIVER=rethinkdb
- DRIVER=mongodb
cache:
directories:
- /home/travis/build/RoySegall/nuntius-bot/vendor
before_script:
- echo $DRIVER
- bash set_mongodb.sh
# Installing composer
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install --dev
# Set up stuff for the webhooks tests.
- nohup php -S localhost:8888 > /dev/null 2>&1 &
- export NUNTIUS_BASE_URL=http://localhost:8888
script:
- bash set_travis_driver.sh $DRIVER
- cp settings/credentials.local.travis.yml settings/credentials.local.yml
- cp settings/hooks.local.travis.yml settings/hooks.local.yml
- php console.php nuntius:install
- vendor/phpunit/phpunit/phpunit --bootstrap vendor/autoload.php tests/