Skip to content

Commit 0ee8a6b

Browse files
committed
Run specs on CI
[refs #7490219928e1]
1 parent 783ef58 commit 0ee8a6b

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.circleci/config.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ jobs:
44
docker:
55
- image: docker:17.12.0-ce-git
66
working_directory: /app
7+
environment:
8+
- COMPOSE_FILE: docker-compose.yml:docker-compose.ci.yml
79
steps:
810
- checkout
911
- setup_remote_docker
@@ -14,12 +16,8 @@ jobs:
1416
apk add --no-cache --no-progress bash py-pip
1517
pip install --quiet docker-compose
1618
- run:
17-
name: Logging Docker and Application information
18-
command: |
19-
set -x
20-
docker -v
21-
docker-compose -v
22-
ls -l
19+
name: Preparing the environment
20+
command: ./scripts/setup-env.sh
2321
- run:
24-
name: Testing the Docker installation
25-
command: docker container run hello-world
22+
name: Running the test suite
23+
command: ./scripts/run-specs.sh

docker-compose.ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: '3.3'
2+
3+
services:
4+
app:
5+
build:
6+
context: .

scripts/run-specs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
docker-compose run app bundle exec rspec

0 commit comments

Comments
 (0)