Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding some testing #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./archivesspace

53 changes: 53 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
language: java
jdk:
- openjdk7
- oraclejdk7
- oraclejdk8
env:
global:
- INTEGRATION_LOGFILE=/var/tmp/aspace-integration.log
- DISPLAY=:99.0
- SCREENSHOT_ON_ERROR=1
matrix:
- DB=mysql TASK=travis:test
- DB=derby TASK=travis:test
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=1"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=1"
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=2"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=2"
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=3"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=3"
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=4"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=4"
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=5"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=5"
- DB=mysql TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=6"
- DB=derby TASK=travis:selenium:staff TASK_OPTS="-Dcores=6 -Dgroups=6"
- DB=mysql TASK=travis:plugin:selenium
- DB=derby TASK=travis:plugin:selenium
- DB=mysql TASK=travis:plugin:test
- DB=derby TASK=travis:plugin:test
- TASK=dist
before_install:
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile
--background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 2560x1700x24
- export DISPLAY=:99.0
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 v1.4.2 https://github.com/archivesspace/archivesspace.git
- ln -s $PWD archivesspace/plugins
- echo "AppConfig[:plugins] << 'instance_joiner' " > archivesspace/common/config/config.rb
- cp build.xml archivesspace/build
branches:
except:
- gh-pages
script:
- archivesspace/build/run $TASK $TASK_OPTS
sudo: false
9 changes: 9 additions & 0 deletions backend/spec/instance_joiner_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
require 'spec_helper'

describe 'instance joiner' do

it "can run the test" do
false.should be_true
end

end
Loading