forked from opensourcewebsite-org/opensourcewebsite-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (37 loc) · 1.22 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
# https://travis-ci.org/opensourcewebsite-org/opensourcewebsite-org
# https://docs.travis-ci.com
language: php
php:
- 7.4
# faster builds on new travis setup not using sudo
sudo: required
dist: bionic
cache:
directories:
- $HOME/.composer/cache
- $HOME/.composer/vendor
- vendor
services:
- mysql
before_install:
- wget https://repo.mysql.com/mysql-apt-config_0.8.15-1_all.deb
- sudo dpkg -i mysql-apt-config_0.8.15-1_all.deb
- sudo apt-get update -q
- sudo apt-get install -q -y --allow-unauthenticated -o Dpkg::Options::=--force-confnew mysql-server
- sudo systemctl restart mysql
- sudo mysql_upgrade
install:
- cp .env.test.dist .env.test
- cp config/params.dist.php config/params.php
- cp config/web-local.dist.php config/web-local.php
- export PATH="$HOME/.composer/vendor/bin:$PATH"
- travis_retry composer install --prefer-dist --no-interaction
before_script:
- php --version
- php -m
- mysql --version
- mysql -e 'CREATE DATABASE IF NOT EXISTS opensourcewebsite_test CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;'
- ./tests/bin/yii migrate --interactive=0 -c
script:
- ./tests/bin/yii fixture/load '*' --interactive=0
- ./vendor/bin/codecept run -c ./codeception.yml --coverage