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

Commit

Permalink
Update circle.yml to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
nisshiee committed Dec 28, 2016
1 parent b8f9902 commit bd18670
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
49 changes: 34 additions & 15 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,34 @@
machine:
timezone:
Asia/Tokyo
ruby:
version: 2.3.3

test:
override:
- ./bin/rubocop
- ./bin/rspec spec --format progress --format RspecJunitFormatter --out tmp/rspec.xml
post:
- cp -r ./tmp/capybara $CIRCLE_TEST_REPORTS/ || true
- mkdir $CIRCLE_TEST_REPORTS/junit/
- cp tmp/rspec.xml $CIRCLE_TEST_REPORTS/junit/
- cp -r coverage $CIRCLE_TEST_REPORTS/coverage || true
version: 2
executorType: docker

containerInfo:
- image: ruby:2.3.3
- image: mysql:5.6
env:
MYSQL_ROOT_PASSWORD: pass

stages:
build:
workDir: /home/ubuntu/nippo
steps:
- type: checkout

- type: shell
name: Install System Dependencies
command: apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs

- type: shell
name: Install Ruby Dependencies
command: bundle install

- type: shell
name: Create DB
command: bundle exec rake db:create db:schema:load --trace

- type: shell
name: Run rubocop
command: bundle exec rubocop

- type: shell
name: Run rspec
command: bundle exec rspec spec --format progress --format RspecJunitFormatter --out tmp/rspec.xml
7 changes: 7 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
db:
name: nippo
host: 127.0.0.1
port: 3306
user: root
pass: pass

auth:
use_whitelist: false

Expand Down

0 comments on commit bd18670

Please sign in to comment.