forked from nanego/redmine_tiny_features
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (49 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
53
54
55
56
57
58
59
60
sudo: required
language: ruby
dist: xenial
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
services:
- xvfb
addons:
postgresql: "9.4"
chrome: stable
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
- gem install chromium
- wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- sudo apt-get install libnss3
- sudo apt-get --only-upgrade install google-chrome-stable
- sudo cp chromedriver /usr/local/bin/.
- sudo chmod +x /usr/local/bin/chromedriver
- export DISPLAY=:99.0
script:
- export TESTSPACE=`pwd`/testspace
- export NAME_OF_PLUGIN=redmine_tiny_features
- export PATH_TO_PLUGIN=`pwd`
- export PATH_TO_REDMINE=$TESTSPACE/redmine
- mkdir $TESTSPACE
- cp spec/support/* $TESTSPACE/
- bash -x ./travis.sh