-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (52 loc) · 1.5 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
language: php
php:
- 5.6
- 7.0
- hhvm
env:
global:
- APPDIR=project/app/
- NODE_VERSION=5.11
- setup=basic
matrix:
include:
- php: 5.6
env: setup=lowest
- php: 5.6
env: setup=stable
services:
- mysql
sudo: required
before_install:
# Apache install
- sudo apt-get update
- sudo apt-get install apache2
# configure apache virtual hosts and mods
- sudo cp -f travis/travis-ci-apache /etc/apache2/sites-available/default
- sudo sed -e "s?%TRAVIS_BUILD_DIR%?$(pwd)?g" --in-place /etc/apache2/sites-available/default
- sudo a2enmod rewrite
- sudo service apache2 restart
# install npm, composer, gulp, and bower
- travis_retry nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- node -v
- npm -v
- travis_retry composer self-update
- travis_retry npm install -g bower
- travis_retry npm install -g gulp
install:
# install app dependencies
- cd $APPDIR
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-dist; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable; fi
- travis_retry npm install
- travis_retry bower install
- travis_retry gulp build
- gulp buildVersion
before_script:
- cp .env.travis .env
- mysql -e 'create database homestead_test;'
- php artisan migrate
script:
- vendor/bin/phpunit