-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
33 lines (27 loc) · 925 Bytes
/
.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
sudo: required
services:
- docker
language: ruby
env:
- DOCKER_COMPOSE_VERSION: 1.8.1
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
install:
- cp .env.docker .env
- cp docker-compose.sample.yml docker-compose.yml
- docker-compose stop
- docker-compose rm -f
- docker-compose build
script:
- docker-compose run --rm composer install
- docker-compose run --rm npm -q install
- docker-compose run --rm gulp --production
- docker-compose run --rm artisan key:generate
- docker-compose run --rm phpunit
- docker-compose up -d
- sleep 10s
- docker-compose run --rm artisan migrate:refresh --seed
- docker-compose run --rm artisan db:seed --class=DummyBookmarksSeeder