forked from somleng/somleng-scfm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 1.69 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
language: ruby
dist: trusty
sudo: required
services:
- postgresql
- docker
env:
- START_SIMPLECOV=1 RAILS_DB_ADAPTER=sqlite3
- START_SIMPLECOV=1 RAILS_DB_ADAPTER=postgresql
- TRAVIS=1 RAILS_DB_ADAPTER=sqlite3
addons:
postgresql: '9.6'
code_climate:
repo_token:
secure: "PIV3i6vp+43fisDQoODIlWuH/rEDmTzMC4/85XLuCSagqfD34sLj6rNETfPl75dVwvsV/OQRmb5Lvy4ba4xFN0ga2GfWt3Pr3jnVmvnLr/HP80y4Z1X/4HeXRBK9NUUlu43iCXmPyXq+aPyW7TtXBTD0Olxz1ow/vwAlAIsJX3RNE1z8QUqDYdVyI9GRdQ5zLbQNUFvwtXgZCZW1GvJs5dDPJ3dpmAV8igzPW+rvakwQDOg11wS2dkK+4b17ktnfw9n5gviD6A79gveL8aM86a2kgLGaaYp/krvDpcqy2MykwjpgcH0jQtSfUV6VDj88DE0OTzpvJon2dFUnCbuIj8jgGBNxtcfHqgFC7FeO+9ZD2YJ5mEBb+mT1T/uwE9UxLz1JviGJg7iQ4L9HIGyQMzwHCOUBOJhVbBLm3SEyt8RKKUZUThOn8mFQI0cPcZaUeiZCOicdya0RCtQ/T8JlI3wlKXARcO2IBNr+ydvkw3zwkTrs6cP1j8A/OLrWznD160+cvGdghK71JdxTdgV5Tex0eubSmjhfDHs5Monj9mO/BudKxVNIt0Kn+JmAQDLV8XYt0INRcvzU/w7kRj1pzRGX5uvDsRX91B42SFAnMa9Gu61Qkc929Kw+qleN9R6+9kCEFUHtjcS45Wq1tiZst8T4+mm4YTUGEWVZ6TC4uVk="
before_install:
- sudo add-apt-repository ppa:jonathonf/backports -y
- sudo apt-get update -q
- sudo apt-get install sqlite3 -y
- bash -c 'if [[ "${TRAVIS}" == "1" ]]; then sudo docker pull dwilkie/somleng-scfm:spec; fi'
- bash -c 'if [[ "${TRAVIS}" == "1" ]]; then sudo docker ps -a; fi'
- bash -c 'if [[ "${TRAVIS}" == "1" ]]; then sudo docker run --rm dwilkie/somleng-scfm:spec /bin/sh -c "bundle exec rake db:migrate && bundle exec rake db:test:prepare && bundle exec rake"; fi'
before_script:
- psql -c 'create database somleng_scfm_test;' -U postgres
- sqlite3 --version
script:
- bundle exec rake db:migrate
- bundle exec rake db:test:prepare
- bundle exec rake
after_success:
- bundle exec codeclimate-test-reporter