-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.travis.yml
34 lines (34 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
sudo: false
dist: precise
language: ruby
cache: bundler
rvm:
- 1.9.3
services:
- redis-server
addons:
apt:
packages:
- libgeoip-dev
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- gem update --system 1.8.25
- gem --version
- gem install bundler -v 1.17.3
before_script:
- bundle exec rake --trace db:test:load
- export PREV_BUNDLE_GEMFILE=$BUNDLE_GEMFILE
- export BUNDLE_GEMFILE=''
- git clone --depth=100 --quiet git://github.com/allourideas/pairwise-api.git
- cd ./pairwise-api
- bundle install --local --binstubs
- ./bin/rake db:create
- ./bin/rake db:schema:load
- ./bin/rake util:useradd[[email protected],wheatthins]
- ./bin/rake util:useradd[[email protected],saltines]
- bundle exec ./script/server -p 4000 -d
- cd ../
- export BUNDLE_GEMFILE=$PREV_BUNDLE_GEMFILE
script: bundle exec rake test:functionals && bundle exec rake test:units && bundle exec spec spec/integration spec/controllers/questions_controller_spec.rb && RAILS_ENV='cucumber' bundle exec cucumber --no-profile -f progress --require features --require lib features/[afiruvw]*
bundler_args: --local