-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
57 lines (46 loc) · 2.18 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Setting up Travis CI:
# 1. Go to https://travis-ci.org
# 2. Click the Sign Up/Sign in with GitHub button and give Travis CI permission
# to access your GitHub repositories.
# 3. Create a file like this one you're reading at `your-rails-app/.travis.yml`:
language: ruby
rvm:
- 2.2.2
# Add more Ruby versions to list if supported,
# Travis supports these versions: http://rubies.travis-ci.org/
env:
secure: "SBvuWquXGmS9VOD6rfJ0FdLpvFPPO5F5vxOTmc7IGmXzGSaBwgdeLRrst7fb4xe6/xhu1aZnfDPDJwHSWQq30n8YYftdB93LWhspE0wxDsdyhsP6kI6qVRiNEISH8aaD7RH/dlRptaZwN/ZvP/Pb578wzIovdJM9y9Su5R0MOcw="
# addons:
# firefox: "38.0.5" # Set Firefox Version if needed.
# If needed, use xvfb to setup fake monitor display so Firefox GUI can be used by specs:
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-GUI-(e.g.-a-Web-browser)
# before_install:
# - "export DISPLAY=:99.0"
# - "sh -e /etc/init.d/xvfb start"
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libxml2-dev nodejs optipng jpegoptim redis-server
services:
- postgresql
- redis-server
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- cp config/database.yml.travis config/database.yml
- cp config/config.yml.travis config/config.yml
# 4. OPTIONAL Only customize the `script` option if needed.
# The `script` option is an optional list of the main build task(s). `rake` is
# the default script option for Travis and most Rails projects will want this
# when starting out as this usually runs `rake test`.
script:
- bin/rake db:migrate RAILS_ENV=test
- bin/rake spec
# 5. OPTIONAL Add a Build Status Badge to your README, follow instructions here:
# http://docs.travis-ci.com/user/status-images/
# Suggested docs
# --------------
# Getting Started: http://docs.travis-ci.com/user/getting-started/
# Ruby & Travis CI docs: http://docs.travis-ci.com/user/languages/ruby/
# Supported Ruby Versions: http://rubies.travis-ci.org/
# Custom build task: http://docs.travis-ci.com/user/customizing-the-build/
# GUI, Browsers, xvfb: http://docs.travis-ci.com/user/gui-and-headless-browsers/
# Build Status Badge for README: http://docs.travis-ci.com/user/status-images/