-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/travis_ci' into 'master'
Feature/travis ci See merge request !44
- Loading branch information
Showing
5 changed files
with
71 additions
and
16 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
language: ruby | ||
rvm: | ||
- 2.4.1 | ||
services: | ||
- postgres | ||
cache: | ||
bundler: true | ||
directories: | ||
- node_modules | ||
before_install: | ||
- nvm install 8.1.0 | ||
- npm install -g yarn | ||
before_script: | ||
- yarn install | ||
- bundle exec rake db:create | ||
- bundle exec rake db:schema:load | ||
script: | ||
- yarn eslint | ||
- bundle exec scss-lint app/assets/stylesheets/ | ||
- bundle exec rubocop | ||
- bundle exec rspec | ||
|
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
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
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,24 +1,56 @@ | ||
# README | ||
Tamashii Clock-in [](https://travis-ci.org/tamashii-io/tamashii-clockin) | ||
=== | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
## Requirements | ||
|
||
Things you may want to cover: | ||
* Ruby 2.4.0 | ||
* PostgreSQL 9.5+ | ||
* Redis | ||
* Node.js | ||
* Yarn | ||
|
||
* Ruby version | ||
## Usage | ||
|
||
* System dependencies | ||
### Install Dependency | ||
|
||
* Configuration | ||
``` | ||
$ bundle install | ||
``` | ||
|
||
* Database creation | ||
### Prepare Database | ||
|
||
* Database initialization | ||
If you didn't have database. | ||
|
||
* How to run the test suite | ||
``` | ||
$ rake db:create | ||
``` | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
And run migration to create tables. | ||
|
||
* Deployment instructions | ||
``` | ||
$ rake db:migrate | ||
``` | ||
|
||
* ... | ||
### Rails | ||
|
||
Start Rails server | ||
|
||
``` | ||
$ rails s | ||
``` | ||
|
||
### Webpack | ||
|
||
Make sure running `webpack-dev-server` to building javascript. | ||
|
||
Above require `binstub` setup for your system. | ||
|
||
``` | ||
$ webpack-dev-server | ||
``` | ||
|
||
or | ||
|
||
``` | ||
$ ./bin/webpack-dev-server | ||
``` |