Skip to content

Commit

Permalink
add circleci first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Apr 12, 2018
1 parent caf4417 commit 67f3a98
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

version: 2
jobs:
build:

docker:
# The primary container is an instance of the first list image listed. Your build commands run in this container.
- image: circleci/ruby:2.4.1-node-browsers
environment:
RAILS_ENV: test
PULMAP_DB_HOST: localhost
PULMAP_DB_USERNAME: geoblacklight

working_directory: ~/pulmap
steps:
- checkout

# Only necessary if app uses webpacker or yarn in some other way
- restore_cache:
keys:
- pulmap-{{ checksum "package-lock.json" }}
- pulmap-
- run:
name: NPM Install
command: npm install
# Store yarn / webpacker cache
- save_cache:
key: pulmap-{{ checksum "package-lock.json" }}
paths:
- npm_modules

- persist_to_workspace:
root: '~/pulmap'
paths: '*'

# Download and cache dependencies
- restore_cache:
keys:
- pulmap-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- pulmap-

- run:
name: Install dependencies
command: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs 4 --retry 3

- run: gem update --system

- save_cache:
paths:
- ./vendor/bundle
key: pulmap-{{ checksum "Gemfile.lock" }}

- run: NODE_ENV=test bundle exec rails webpacker:compile

- run:
name: Database setup
command: bundle exec rake db:migrate
# command: bundle exec rake geoblacklight:server
background: true

- run: bundle exec rake ci

0 comments on commit 67f3a98

Please sign in to comment.