Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Circle 2.0. #1031

Merged
merged 1 commit into from
Nov 24, 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
48 changes: 48 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
version: 2
jobs:
build:
working_directory: ~/administrate
docker:
- image: circleci/ruby:2.4.1-node-browsers
environment:
PGHOST: localhost
PGUSER: administrate
RAILS_ENV: test
- image: postgres:9.5-alpine
environment:
POSTGRES_USER: administrate
POSTGRES_DB: administrate-prototype_test
POSTGRES_PASSWORD: ""
steps:
- checkout

# Restore Cached Dependencies
- type: cache-restore
name: Restore bundle cache
key: administrate-{{ checksum "Gemfile.lock" }}

# Bundle install dependencies
- run: bundle install --path vendor/bundle

# Install Appraisal gemfiles
- run: bundle exec appraisal install

# Cache Dependencies
- type: cache-save
name: Store bundle cache
key: administrate-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

# Wait for DB
- run: dockerize -wait tcp://localhost:5432 -timeout 1m

# Setup the environment
- run: cp .sample.env .env

# Setup the database
- run: bundle exec rake db:setup

# Run the tests
- run: bundle exec rake
- run: bundle exec appraisal rake
13 changes: 0 additions & 13 deletions circle.yml

This file was deleted.