Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

Commit

Permalink
Set up CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
bartkozal committed Feb 2, 2019
1 parent 3034a88 commit d076792
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .circleci/config.yml
@@ -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
2 changes: 1 addition & 1 deletion Gemfile
@@ -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"
Expand Down

0 comments on commit d076792

Please sign in to comment.