-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
29 lines (22 loc) · 1.02 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
language: ruby
sudo: false
# https://docs.travis-ci.com/user/database-setup/
services:
- postgresql
before_script:
- cp config/database.yml.travis config/database.yml
before_install:
- sudo apt-get install -y imagemagick libmagickwand-dev libmagic-dev ruby-dev gcc build-essential g++ libssl-dev libpcre3-dev libpcre++-dev libpq-dev libcurl4-openssl-dev libxml2-dev
addons:
apt:
update: true
# "If before_install, install or before_script returns a non-zero exit code, the build is errored and stops immediately."
# This means failure during install won't allow us to do post-mortem;
# instead, we perform the install manually in the script and use
# after_failure if needed.
install: true
script:
- bundle install --deployment
- RAILS_ENV=test SKIP_LARGE_UNNEEDED_IMPORTS=true SKIP_ZIP_CODE_IMPORTS=true travis_wait 60 bundle exec rake db:test:prepare test
#after_failure:
# - cat /home/travis/build/myplaceonline/myplaceonline_rails/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0/ruby-filemagic-0.7.2/mkmf.log