-
Notifications
You must be signed in to change notification settings - Fork 8
/
circle.yml
44 lines (44 loc) · 1005 Bytes
/
circle.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
37
38
39
40
41
42
43
44
version: 2
jobs:
ruby-3-0: &test
docker:
- image: tmaier/docker-compose
environment:
COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
steps:
- checkout
- setup_remote_docker
- run:
name: setup
command: |
set -x
docker info
docker volume create project
docker create -v project:/app --name project busybox chown -R 1000:1000 /app
docker cp . project:/app
docker start project
docker-compose build $CIRCLE_JOB
- run: docker-compose run $CIRCLE_JOB bin/ci
ruby-2-7:
<<: *test
ruby-2-6:
<<: *test
ruby-2-5:
<<: *test
test-docker-build:
docker:
- image: docker
steps:
- checkout
- setup_remote_docker:
version: 17.05.0-ce
- run: docker build .
workflows:
version: 2
test:
jobs:
- ruby-3-0
- ruby-2-7
- ruby-2-6
- ruby-2-5
- test-docker-build