Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Switch to Docker for testing #16

Merged
merged 12 commits into from
Feb 17, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM chef/chefdk
WORKDIR /src
27 changes: 0 additions & 27 deletions Gemfile

This file was deleted.

314 changes: 0 additions & 314 deletions Gemfile.lock

This file was deleted.

21 changes: 17 additions & 4 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
- sudo pip install
- sudo pip install docker-compose
services:
- docker

dependencies:
override:
- docker info
- docker-compose build

database:
override:
- echo "No database necessary."

test:
override:
- bundle exec berks install
- bundle exec rubocop
- bundle exec foodcritic .
- bundle exec rspec
- docker-compose run berks
- docker-compose run foodcritic
- docker-compose run rubocop
- docker-compose run rspec
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
app:
build: .
volumes:
- $PWD:/src
berks:
build: .
command: berks
volumes:
- $PWD:/src
foodcritic:
build: .
command: foodcritic -f any .
volumes:
- $PWD:/src
rspec:
build: .
command: rspec
volumes:
- $PWD:/src
rubocop:
build: .
command: rubocop
volumes:
- $PWD:/src
Loading