Skip to content

Instantly share code, notes, and snippets.

@megaya

megaya/circle.yml

Created Dec 16, 2017
Embed
What would you like to do?
CircleCiが1.x系のときのDokcerとの連携
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
dependencies:
cache_directories:
- elasticsearch-2.3.4
override:
- docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
- sudo pip install --upgrade docker-compose==1.8.0-rc2
- docker build .
- docker-compose up -d
database:
override:
- docker-compose run web rake db:create RAILS_ENV=test
- docker-compose run web rake db:migrate RAILS_ENV=test
test:
override:
- docker-compose run web rspec
- docker-compose run web rubocop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment