-
Notifications
You must be signed in to change notification settings - Fork 51
/
.travis.yml
42 lines (42 loc) · 1.14 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
30
31
32
33
34
35
36
37
38
39
40
41
42
---
git:
submodules: false
bundler_args: --with postgres aws --without development debug
addons:
chrome: stable
services:
- mysql2
- redis-server
before_install:
- sudo rm -vf /etc/apt/sources.list.d/*riak*
- sudo rm -vf /etc/apt/sources.list.d/*hhvm*
- sudo apt-get update
- sudo apt-get install mediainfo
- sudo ln -s /usr/bin/lsof /usr/sbin/lsof
- cp config/controlled_vocabulary.yml.example config/controlled_vocabulary.yml
- gem install bundler -v $BUNDLER_VERSION
- bundle config without development:production
before_script:
- rm config/database.yml
- cp config/database.travis.yml config/database.yml
- psql -c 'create database travis_ci_test;' -U postgres
- bundle exec rake db:migrate
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- yarn install
script:
- bundle exec rake
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
language: ruby
jdk:
- oraclejdk8
global_env:
- BUNDLER_VERSION=1.17.3
rvm:
- 2.4
- 2.5
- 2.6
dist: trusty
sudo: required