forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.01 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
sudo: false
dist: xenial
language: php
services:
- mysql
- postgresql
- memcached
- redis-server
php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
matrix:
- DB=mysql
- DB=sqlite
- DB=pgsql
- DB=memory
matrix:
fast_finish: true
cache:
directories:
- $HOME/.composer/cache
before_install:
# copy sprinkles.json
- cp app/sprinkles.example.json app/sprinkles.json
# set up db
- bash build/before_install.sh $DB
# update node
- nvm install 10.12.0
# Install Redis and Memcached
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- printf "\n" | pecl install -f redis
before_script:
# install deps and UF
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer install --no-interaction
- php bakery debug
- php bakery build-assets
- php bakery migrate
script:
# run unit tests
- app/vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
after_failure:
- cat app/log/userfrosting.log