forked from nanego/redmine_admin_activity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (40 loc) · 1.1 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
sudo: false
language: ruby
rvm:
- 2.6
branches:
only:
- master
env:
global:
- MAGICK_CONFIGURE_PATH=$HOME/.config/ImageMagick
jobs:
- REDMINE_VER=master
- REDMINE_VER=4.1.1
- REDMINE_VER=4.0.7
jobs:
allow_failures:
- env: REDMINE_VER=master
addons:
postgresql: "9.4"
before_install:
# Allow imagemagick to read PDF files
- echo $MAGICK_CONFIGURE_PATH
- mkdir $MAGICK_CONFIGURE_PATH
- echo '<policymap>' > $MAGICK_CONFIGURE_PATH/policy.xml
- echo '<policy domain="coder" rights="read | write" pattern="PDF" />' >> $MAGICK_CONFIGURE_PATH/policy.xml
- echo '</policymap>' >> $MAGICK_CONFIGURE_PATH/policy.xml
- sudo rm /etc/ImageMagick-6/policy.xml
install: "echo skip bundle install"
before_script:
- sudo apt-get update
- sudo apt-get install -y ghostscript
- psql -c 'create database travis_ci_test;' -U postgres
script:
- export TESTSPACE=`pwd`/testspace
- export NAME_OF_PLUGIN=redmine_admin_activity
- export PATH_TO_PLUGIN=`pwd`
- export PATH_TO_REDMINE=$TESTSPACE/redmine
- mkdir $TESTSPACE
- cp spec/support/* $TESTSPACE/
- bash -x ./travis.sh