forked from openaustralia/morph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 979 Bytes
/
.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
# Using the trusty beta so we can use mysql 5.6
dist: trusty
sudo: required
language: ruby
rvm:
- 2.3.1
env: SECRET_KEY_BASE=859384 RUN_SLOW_TESTS=true
before_install:
# Workaround for Travis issue from:
# https://github.com/travis-ci/travis-ci/issues/6961#issuecomment-264283390
# Can be removed when Travis is fixed.
- mysql -u root -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('')"
before_script:
# Update docker because we need a more recent version.
# Doing it here because doing it in "addons" below hangs on a prompt for user input
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- cp config/database.travis.yml config/database.yml
- bundle exec rake db:setup
- docker pull openaustralia/buildstep
after_success:
- bundle exec codeclimate-test-reporter
services:
- docker
- redis
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6