forked from ergonode/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (31 loc) · 1.08 KB
/
.travis.yml
File metadata and controls
33 lines (31 loc) · 1.08 KB
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
language: php
php:
- 7.4
install:
- composer install
services:
- postgresql
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_script:
- psql -c "CREATE ROLE ergonode LOGIN PASSWORD '123' CREATEDB" -U postgres
- psql -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";' -U postgres --dbname template1
- psql -c 'CREATE EXTENSION IF NOT EXISTS "ltree";' -U postgres --dbname template1
- psql -c 'CREATE DATABASE ergonode_test OWNER ergonode' -U postgres
- openssl genrsa -aes256 -passout pass:1234 -out "config/jwt/private.pem" 4096
- openssl rsa -pubout -in "config/jwt/private.pem" -passin pass:1234 -out "config/jwt/public.pem"
- pecl channel-update pecl.php.net
- yes | pecl install imagick
env:
global:
- APP_ENV=test
- DATABASE_URL="pgsql://ergonode:123@localhost:5432/ergonode_test?serverVersion=10&charset=utf8"
script:
- php bin/phing check:style
- php bin/phing test:unit
- export DATABASE_URL="pgsql://ergonode:123@localhost:5432/ergonode_test?serverVersion=10&charset=utf8"
- php bin/phing test:behat