forked from allourideas/allourideas.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 1021 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
# please build
language: ruby
rvm:
- 1.8.7
- 1.9.3
services:
- redis-server
before_install:
- sudo apt-get install -qq libgeoip-dev
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:
- gem update --system 1.8.25
- 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 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