forked from archivesspace/archivesspace
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
65 lines (65 loc) · 1.99 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
61
62
63
64
65
language: java
jdk:
- openjdk8
- oraclejdk8
matrix:
fast_finish: true
env:
global:
- INTEGRATION_LOGFILE=/var/tmp/aspace-integration.log
- SCREENSHOT_ON_ERROR=1
- SELENIUM_CHROME=true
matrix:
- DB=mysql TASK=travis:other:test
- DB=mysql TASK=travis:rails:test
- TASK=dist
before_install:
- cat /etc/hosts # Fix buffer overflow in getLocalHostName of OpenJDK 6/7 by shortening the host name
- sudo hostname "$(hostname | cut -c1-63)"
- sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts > /tmp/hosts
- sudo mv /tmp/hosts /etc/hosts
- cat /etc/hosts
install:
- wget -N http://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip -P ~/
- unzip ~/chromedriver_linux64.zip -d ~/
- rm ~/chromedriver_linux64.zip
- sudo mv -f ~/chromedriver /usr/local/share/
- sudo chmod +x /usr/local/share/chromedriver
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
- chromedriver -v
before_script:
- free -m
- sleep 3
- if [[ "$DB" == "mysql" ]]; then (mkdir lib; cd lib; curl -Oq http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.39/mysql-connector-java-5.1.39.jar );
fi
- if [[ "$DB" == "mysql" ]]; then export JAVA_OPTS="-Daspace.config.db_url=jdbc:mysql://localhost:3306/archivesspace?useUnicode=true&characterEncoding=UTF-8&user=root";
fi
- if [[ "$DB" == "mysql" ]]; then mysql -e "create database archivesspace default
character set utf8;"; fi
- 'export JAVA_OPTS="-Xmx1024m -verbose:gc $JAVA_OPTS"'
branches:
except:
- gh-pages
script:
- build/run $TASK $TASK_OPTS
notifications:
email: false
bundler_args: --retry 5
dist: trusty
addons:
apt:
packages:
- libgconf-2-4
chrome: stable
artifacts:
debug: true
bucket: aspacetravisartifacts
paths:
- $( ls /var/tmp/*.png | tr "\n" ":" )
- $( ls /tmp/*.png | tr "\n" ":" )
- $( ls /var/tmp/*.html | tr "\n" ":" )
- $( ls /var/log/mysql/* | tr "\n" ":" )
- $( ls /var/tmp/aspace-integration.log | tr "\n" ":" )
sudo: true
after_failure:
- dmesg | tail -500