This repository has been archived by the owner on Apr 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|