forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (32 loc) · 1.07 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
language: ruby
rvm:
- 2.1.2
before_install:
- sudo apt-get update -qq
install:
- travis_wait bundle install --path=~/.bundle --without development production console
- sudo apt-get install -y libaprutil1-dev swig
- wget http://mirror.its.dal.ca/apache/subversion/subversion-1.8.11.tar.gz
- tar xzf subversion-1.8.11.tar.gz
- wget http://www.sqlite.org/sqlite-amalgamation-3071501.zip
- unzip sqlite-amalgamation-3071501.zip
- mv sqlite-amalgamation-3071501 subversion-1.8.11/sqlite-amalgamation
- cd subversion-1.8.11
- LDFLAGS="-L/home/travis/.rvm/rubies/ruby-2.1.2/lib/" ./configure --prefix=/home/travis/.rvm/rubies/ruby-2.1.2/
- make
- make swig-rb
- make install
- make install-swig-rb
- cd ..
before_script:
- sudo rm -f /etc/localtime
- sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
- cp config/database.yml.ci config/database.yml
- psql -c 'create database markus_test;' -U postgres
- bundle exec rake db:test:prepare
script:
- bundle exec rake test
- bundle exec rspec
notifications:
email: false
bundler_args: --retry 10