-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (35 loc) · 1.34 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
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
env:
global:
- INTEGRATION_LOGFILE=/var/tmp/aspace-integration.log
matrix:
- DB=mysql TASK=travis:backend:test
before_script:
- sleep 3
- if [[ "$DB" == "mysql" ]]; then (mkdir lib; cd lib; curl -Oq http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.34/mysql-connector-java-5.1.34.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="-Xmx1G $JAVA_OPTS"'
- git clone --branch 1.5-rc3-changed-rspec-tests https://github.com/NYULibraries/archivesspace.git
- dir_name=${PWD##*/}
- echo $dir_name
- mkdir -p archivesspace/plugins/$dir_name/backend
- cp -r backend/* archivesspace/plugins/$dir_name/backend
- mkdir -p archivesspace/plugins/$dir_name/frontend
- cp -r frontend/* archivesspace/plugins/$dir_name/frontend
- cp common_sample.yaml common.yaml
- cp Gemfile archivesspace/plugins/$dir_name/
- echo "AppConfig[:plugins] = ['$dir_name']" > archivesspace/common/config/config.rb
- cp build.xml archivesspace/build
notifications:
slack: nyu-dlts:soXKrVQlFYngL6O9HvlcZFz2
script:
- archivesspace/build/run $TASK $TASK_OPTS
sudo: false