forked from OFFLINE-GmbH/oc-mall-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (39 loc) · 1.06 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
language: php
services:
- mysql
php:
- 7.1
- 7.2
- nightly
matrix:
allow_failures:
- php: nightly
sudo: false
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS october;'
install:
- composer self-update
- travis_retry composer install --no-interaction --prefer-source
before_script:
- git clone https://github.com/octobercms/october.git
- mkdir -p ./october/plugins/offline/mall
- cd october
- composer self-update
- travis_retry composer install --no-interaction --prefer-source
- php artisan october:env
- php artisan key:generate
- echo "DB_HOST=127.0.0.1" > .env
- echo "DB_DATABASE=october" >> .env
- echo "DB_USERNAME=root" >> .env
- echo "DB_PASSWORD=" >> .env
- php artisan october:up -v
- php artisan plugin:install RainLab.Translate
- php artisan plugin:install RainLab.User
- php artisan plugin:install RainLab.Location
- cd ..
- mv !(october) october/plugins/offline/mall
- cd october
- php artisan october:up -v
- cd plugins/offline/mall
- composer install
script: ../../../vendor/bin/phpunit