-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.travis.yml
More file actions
51 lines (43 loc) · 1.18 KB
/
.travis.yml
File metadata and controls
51 lines (43 loc) · 1.18 KB
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
language: ruby
services:
- postgresql
cache:
directories:
- vendor/bundle
rvm: "3.2.2"
env:
- RAILS_ENV=test
- global:
- PATH=/snap/bin:$PATH
before_install:
- 'gem install bundler -v 2.4.17'
before_script:
- cp db/main/structure.sql db/main/structure-original.sql
- cp config/database.yml.travis config/database.yml
before_install:
- gem install bundler:2.3.7
after_success:
- script/upload_structure.rb
jobs:
include:
- stage: "Testing time"
dist: focal
language: ruby
services:
- postgresql
before_install:
- gem update --system
before_script:
- psql --version
- psql -c 'CREATE DATABASE travis_test;'
- curl -fs https://raw.githubusercontent.com/travis-ci/travis-migrations/master/db/main/structure.sql | psql -v ON_ERROR_STOP=1 travis_test
script:
- bundle exec rspec spec
- stage: "Ship to Quay.io"
dist: focal
before_script: echo skip
after_success: echo skip
script: make ship
if: (branch = master and type = push ) OR commit_message =~ /ship:docker/ OR env(SHIP_DOCKER) = true
before_install:
- gem install rubygems-update -v 3.3.27