This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
53 lines (47 loc) · 1.47 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
dist: xenial
language: php
matrix:
include:
- php: 5.6
addons:
postgresql: 9.4
apt:
sources:
- sourceline: 'ppa:ondrej/php'
packages:
- php5.6-cli
- php5.6-bcmath
- php5.6-intl
- php5.6-pgsql
- php5.6-xml
- php-xdebug
- php: 7.0
addons:
postgresql: 9.4
apt:
sources:
- sourceline: 'ppa:ondrej/php'
packages:
- php7.0-cli
- php7.0-bcmath
- php7.0-intl
- php7.0-pgsql
- php7.0-xml
- php-xdebug
before_install:
- export PATH=$(echo $PATH | tr ":" "\n" | grep -v phpenv | tr "\n" ":")
- sudo update-alternatives --set php /usr/bin/php$TRAVIS_PHP_VERSION
- sudo ln -s /home/travis/.phpenv/shims/composer /usr/bin/composer
- psql -c "CREATE ROLE balance LOGIN PASSWORD 'balance'" -U postgres
- psql -c "CREATE DATABASE balance WITH OwNER balance ENCODING = 'UTF8' TEMPLATE = template0" -U postgres
- npm install -g bower
install:
- make install
script:
- make tests
after_success:
- make reports
- bash <(curl -s https://codecov.io/bash)
after_script:
- make uninstall
- make clean