forked from uspdev/replicado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
25 lines (21 loc) · 826 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
dist: bionic
language: php
php:
- 7.3
services:
- docker
before_install:
- sudo add-apt-repository -y ppa:ondrej/php
- sudo apt-get update
- sudo apt-get install -y php7.3-cli php7.3-xml php7.3-sybase php7.3-gd php7.3-xml php7.3-intl php7.3-mbstring memcached php7.3-memcached freetds-bin
- curl -s https://getcomposer.org/installer | php7.3
- travis_wait 30 docker pull uspdev/asedocker
- docker run --detach --publish 127.0.0.1:5000:5000 --hostname sybase uspdev/asedocker
- sleep 300 # sap ase demora para subir
- tsql -H 127.0.0.1 -p 5000 -U sa -P Sybase123456789 < ./tests/schemas/database.sql
- sleep 60 # sap ase demora para subir
before_script:
- cp .env.example .env
- php7.3 composer.phar install --prefer-source --no-interaction
script:
- php7.3 ./vendor/bin/phpunit --debug -vvv