forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.36 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
language: ruby
rvm:
- 2.3.1
before_install:
- sudo apt-get update
- sudo apt-get install -y cmake libssh2-1-dev ghostscript
- sudo apt-get install imagemagick libmagickwand-dev
install:
- travis_wait bundle install --path=~/.bundle --jobs=3 --retry=3 --without development production console
- yarn install
- sudo apt-get install -y libaprutil1-dev swig
- wget http://apache.parentingamerica.com/subversion/subversion-1.9.7.tar.gz
- tar xzf subversion-1.9.7.tar.gz
- wget https://www.sqlite.org/sqlite-amalgamation-3071501.zip
- unzip sqlite-amalgamation-3071501.zip
- mv sqlite-amalgamation-3071501 subversion-1.9.7/sqlite-amalgamation
- cd subversion-1.9.7
- LDFLAGS="-L/home/travis/.rvm/rubies/ruby-2.3.1/lib/" ./configure --prefix=/home/travis/.rvm/rubies/ruby-2.3.1/
- make
- make swig-rb
- make install
- make install-swig-rb
- cd ..
- cp config/database.yml.ci config/database.yml
before_script:
- sudo rm -f /etc/localtime
- sudo ln -s /usr/share/zoneinfo/US/Eastern /etc/localtime
- chmod u+x bin/webpack
- bin/webpack
- psql -c 'create database markus_test;' -U postgres
- bundle exec rake db:migrate RAILS_ENV=test
script:
- bundle exec rake test
- bundle exec rspec
services:
- redis-server
notifications:
email: false
bundler_args: --retry 10
cache:
yarn: true
directories:
- ~/.bundle
- node_modules