Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Set up CircleCI

  • Loading branch information...
brtjkzl committed Feb 2, 2019
1 parent 3034a88 commit d0767927acd3e126812a8cdc3b53e0fd25cec4d0
Showing with 36 additions and 1 deletion.
  1. +35 −0 .circleci/config.yml
  2. +1 −1 Gemfile
@@ -0,0 +1,35 @@
version: 2
jobs:
build:
docker:
- image: circleci/ruby:2.5-node-browsers
environment:
PG_HOST: localhost
PG_USER: db
RAILS_ENV: test
RAILS_MASTER_KEY: c728b7366d6f4a0e1747c679e2039a69
DATABASE_URL: "postgres://db@localhost:5432/games_tracker_test"
- image: circleci/postgres:9.4
environment:
POSTGRES_USER: db
POSTGRES_DB: games_tracker_test

working_directory: ~/repo

steps:
- checkout
- run:
name: Install ruby dependencies
command: bundle install --jobs 4
- run:
name: Install node dependencies
command: yarn install
- run:
name: Set up database
command: yarn setup
- run:
name: Run node linters
command: yarn lint
- run:
name: Run tests
command: yarn test
@@ -1,6 +1,6 @@
source "https://rubygems.org"

ruby "2.5.1"
ruby "~> 2.5.0"

gem "rails", "~> 5.2.0"
gem "pg", ">= 0.18", "< 2.0"

0 comments on commit d076792

Please sign in to comment.
You can’t perform that action at this time.