-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcircle.yml
More file actions
54 lines (49 loc) · 1.25 KB
/
circle.yml
File metadata and controls
54 lines (49 loc) · 1.25 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
52
53
version: 2.1
orbs:
ruby: circleci/ruby@1.1.0
node: circleci/node@2
jobs:
# build:
# docker:
# - image: cimg/ruby:2.7-node
# steps:
# - checkout
# - ruby/install-deps
# - node/install-packages:
# package-mgr: yarn
# cache-key: "yarn.lock"
test:
parallelism: 1
docker:
- image: cimg/ruby:2.7-node
- image: circleci/postgres:9.6-alpine
environment:
POSTGRES_USER: squint-ruby
POSTGRES_DB: squint_test
POSTGRES_PASSWORD: ""
environment:
BUNDLE_JOBS: "1"
BUNDLE_RETRY: "3"
PGHOST: 127.0.0.1
PGUSER: squint-ruby
PGPASSWORD: ""
RAILS_ENV: test
steps:
- checkout
- ruby/install-deps
- run:
name: Wait for DB
command: dockerize -wait tcp://localhost:5432 -timeout 1m
- run: gem install bundler:2.0.2 && bundle version
- run: bundle install
- run: bundle exec appraisal generate
- run: bundle exec appraisal install
- run:
name: Database setup
command: bundle exec appraisal rails-5-1-6-2 rake --rakefile test/dummy/Rakefile db:setup --trace
- run: bundle exec appraisal rake
workflows:
version: 2
test:
jobs:
- test