-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
36 lines (29 loc) · 834 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
34
35
36
language: ruby
env:
global:
- BACKUP_INTERVAL=2m
- AWS_ACCESS_KEY_ID=Change
- AWS_SECRET_ACCESS_KEY=Change
- REGION=Change
- BUCKET=Change
- CDN_BUCKET=Change
- AWS_CLOUDFRONT_DOMAIN=Change
services:
- docker
before_install:
- docker -v
- docker-compose -v
- docker-compose config
install:
- docker-compose build
before_script:
- docker-compose run --rm --no-deps web echo 'Gems now pre-installed.'
- docker-compose up -d
- docker ps
- docker-compose run --no-deps web bundle exec rake db:migrate
- docker-compose run --no-deps web bundle exec rake db:create RAILS_ENV=test
- docker-compose run --no-deps web bundle exec rake db:migrate RAILS_ENV=test
script:
- docker-compose run --no-deps web bundle exec rspec --format documentation
after_script:
- docker-compose down