-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (27 loc) · 772 Bytes
/
.travis.yml
File metadata and controls
30 lines (27 loc) · 772 Bytes
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
sudo: required
services:
- docker
env:
DOCKER_COMPOSE_VERSION: 1.25.5
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
addons:
postgresql: "10"
apt:
packages:
- postgresql-10
- postgresql-client-10
before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'DROP DATABASE IF EXISTS travis_ci_test;' -U postgres
- psql -c 'CREATE DATABASE travis_ci_test;' -U postgres
dist: xenial
language: ruby
rvm:
- 3.0.1
script:
- bundle exec rails db:setup RAILS_ENV=test
- bundle exec rspec --format doc