Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Commit b0ae554

Browse files
committed
Merge pull request #641 from YaleSTC/235_travis_ci
Merge #235 - Travis CI implementation
2 parents cbdc7ce + e5274ae commit b0ae554

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.travis.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: ruby
2+
rvm:
3+
- 2.1.1
4+
- 1.9.3
5+
before_script:
6+
- cp config/database.travis.yml config/database.yml
7+
- CODECLIMATE_REPO_TOKEN=075afb721fe089e1b77ab194fcff1ac132765bbfd3f3777db52f7abaf9bf800d
8+
- bundle exec rake db:create
9+
- bundle exec rake db:migrate
10+
- bundle exec rake db:test:prepare

config/database.travis.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This database.yml is for use by Travis CI. All this information must be
2+
# provided so Travis CI can actually build and test our app. It cannot
3+
# be removed and replaced by a database.yml.example file, because this is
4+
# configuration information necessary for Travis CI to build the app. For more
5+
# information, see http://docs.travis-ci.com/user/database-setup/#MySQL
6+
#
7+
# It is possible that with any further changes in the future we'll need to
8+
# update this configuration for Travis CI to build. Always check the Travis CI
9+
# build status for the latest information.
10+
# ==============================================================================
11+
12+
development:
13+
adapter: mysql2
14+
encoding: utf8
15+
reconnect: false
16+
database: reservations_development
17+
pool: 5
18+
username: root
19+
password:
20+
host: localhost
21+
22+
# Warning: The database defined as "test" will be erased and
23+
# re-generated from your development database when you run "rake".
24+
# Do not set this db to the same as development or production.
25+
test:
26+
adapter: mysql2
27+
encoding: utf8
28+
reconnect: false
29+
database: reservations_test
30+
pool: 5
31+
username: root
32+
password:
33+
34+
production:
35+
adapter: mysql2
36+
encoding: utf8
37+
reconnect: false
38+
database: reservations_production
39+
pool: 5
40+
username: root
41+
password:

0 commit comments

Comments
 (0)