-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
51 lines (51 loc) · 1.93 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
dist: trusty
language: generic
cache:
directories:
- $HOME/perl5
- $HOME/git
- $HOME/.m2
addons:
apt:
packages:
- libxml2-utils
- xsltproc
before_install:
# Perl dependencies i.e. Catmandu
- curl -L https://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
- eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
- echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
- cpanm Catmandu Catmandu::MARC
# Apache Jena dependency
- wget https://repository.apache.org/content/repositories/releases/org/apache/jena/apache-jena/3.1.1/apache-jena-3.1.1.tar.gz -O /tmp/apache-jena-3.1.1.tar.gz
- tar -xzf /tmp/apache-jena-3.1.1.tar.gz
- export PATH=$PATH:$PWD/apache-jena-3.1.1/bin/
# marc2bibframe2 dependency
- git clone --depth 1 --branch v1.5.0 https://github.com/lcnetdev/marc2bibframe2.git ../marc2bibframe2
# hdt-cpp dependency
# first we need serd...
- mkdir -p $HOME/local
- export PATH=$PATH:$HOME/local/bin
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/lib
- curl -s http://download.drobilla.net/serd-0.28.0.tar.bz2 | tar -xj
- pushd serd-* && ./waf configure --prefix=$HOME/local && ./waf && ./waf install && popd
# ...then actual hdt-cpp
- pushd $HOME/git
- if [ ! -d hdt-cpp ]; then git clone --depth 1 https://github.com/rdfhdt/hdt-cpp.git; fi
- cd hdt-cpp
- git pull
- ./autogen.sh
- PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig ./configure
- make -j2
- ln -s $PWD/libhdt/tools/* $HOME/local/bin
- popd
# hdt-java dependency
- pushd $HOME/git
- if [ ! -d hdt-java ]; then git clone --depth 1 https://github.com/rdfhdt/hdt-java.git; fi
- pushd hdt-java && git pull && mvn install && cd hdt-java-package && mvn assembly:single && popd
- ln -s $PWD/hdt-java/hdt-java-package/target/hdt-java-package-*-distribution/hdt-java-package-* $HOME/local/hdt-java-package
- export PATH=$PATH:$HOME/local/hdt-java-package/bin
- popd
script:
- cd test
- bats .