-
Notifications
You must be signed in to change notification settings - Fork 114
/
.travis.yml
69 lines (68 loc) · 1.97 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
matrix:
allow_failures:
- php: nightly
include:
- language: php
services:
- mysql
php:
- 7.4
- 8.0
sudo: false
before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS october;'
install:
- composer self-update
- git clone https://github.com/octobercms/october.git
- mkdir -p ./october/plugins/offline/mall
- cd october
- git checkout 1.0
- 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 ..
before_script:
- mv !(october) october/plugins/offline/mall
- cd october
- php artisan october:up -v
- cd plugins/offline/mall
- travis_retry composer require illuminate/support ^5.5 # force Laravel 5.5 dependencies
- travis_retry composer install --no-interaction --prefer-source
script: ../../../vendor/bin/phpunit
- language: node_js
node_js:
- "10"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
script:
- npm i
- npm run docs:build
cache:
directories:
- "node_modules"
notifications:
email: false
deploy:
provider: pages
skip-cleanup: true
local_dir: src/docs/.vitepress/dist
github-token: $GITHUB_TOKEN
repo: OFFLINE-GmbH/oc-mall-plugin
keep-history: false
target-branch: gh-pages
on:
branch: develop