forked from MarkUsProject/Markus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (44 loc) · 1.45 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.5.3
dist: bionic
addons:
postgresql: "10"
apt:
packages:
- postgresql-client-10
before_install:
- sudo apt-get update
- sudo apt-add-repository -y ppa:deadsnakes/ppa
- sudo apt-get install -y cmake libssh2-1-dev ghostscript python3.8 python3.8-venv
- sudo apt-get install imagemagick libmagickwand-dev
- nvm install 12
- python3.8 -m venv nbconvertvenv && ./nbconvertvenv/bin/pip install wheel nbconvert
install:
- travis_wait bundle install --path=~/.bundle --jobs=3 --retry=3 --without development production console
- yarn install
# - ./script/install-svn.sh # uncomment this if we want to test interactions with svn in the future
- 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
- sudo sed -ri 's/(rights=")none("\s+pattern="PDF")/\1read\2/' /etc/ImageMagick-6/policy.xml
- bundle exec rake i18n:js:export
- chmod u+x bin/webpack
- NODE_ENV=test RAILS_ENV=test bundle exec rake webpacker:compile
- psql -c 'create database markus_test;' -U postgres
- bundle exec rake db:migrate RAILS_ENV=test
script:
# - bundle exec rake test # shoulda (with rails 5) compatibility issues
- RSPEC_RENDER_VIEWS=true bundle exec rspec
services:
- postgresql
- redis-server
notifications:
email: false
bundler_args: --retry 10
cache:
yarn: true
directories:
- ~/.bundle
- node_modules