Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test asset compilation on travis #748

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ jobs:
script: bundle exec rubocop
- name: "Docker Builds"
script: docker build -t mapknitter .
# Configure this option after full yarn setup
# - name: "Asset Precompilation"
# env:
# - RAILS_ENV=production
# script: bundle exec rake assets:precompile
- name: "Asset Precompilation"
env:
- RAILS_ENV=production
script: bundle exec rake assets:precompile

branches:
only:
Expand Down
21 changes: 12 additions & 9 deletions config/database.yml.cloud9.example
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
default: &default
encoding: utf8
adapter: mysql2
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

development:
<<: *default
username: root
password:
database: mapknitter
username:
password:
database: mapknitter_dev

production:
<<: *default
adapter: mysql2
encoding: utf8
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db
username: mapknitter
password: mapknitter
username: root
password:
database: mapknitter

test:
<<: *default
username: root
password:
database: mapknittertest
username:
password:
database: mapknitter_test
22 changes: 14 additions & 8 deletions config/database.yml.example
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
default: &default
encoding: utf8
adapter: mysql2
host: 127.0.0.1
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>

development:
<<: *default
username:
password:
database: mapknitter-dev
username:
password:
database: mapknitter_dev

production:
<<: *default
username: mapknitter
password: mapknitter
adapter: mysql2
encoding: utf8
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
host: db
username: root
password:
database: mapknitter

test:
<<: *default
username: root
database: mapknitter-test
username:
password:
database: mapknitter_test