-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
executable file
·29 lines (29 loc) · 1.25 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright© 2017 Merck Sharp & Dohme Corp. a subsidiary of Merck & Co., Inc., Kenilworth, NJ, USA. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
before_install:
- "echo '--colour' > ~/.rspec"
- "echo 'gem: --no-document' > ~/.gemrc"
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
before_script:
- cp config/database.yml.travis config/database.yml
- cp .env.example .env.test
- psql -c 'create database "sampleDatabase_test";' -U postgres
- cp .env.example .env.test
- bundle exec rake db:test:prepare
script:
- bundle exec rake && bundle exec rake features
cache:
- bundler
language:
- ruby
notifications:
email:
- false
rvm:
- 2.2.0
addons:
postgresql: "9.3"
code_climate:
repo_token: add token
services:
- elasticsearch