Try to compile mockdriver on travis ci.

master
baztian 2015-04-01 19:47:19 +02:00
parent 01b1eea67d
commit ae4f418e85
3 changed files with 19 additions and 4 deletions

View File

@ -7,6 +7,11 @@ python:
- '2.6' - '2.6'
- '2.7' - '2.7'
addons:
apt:
packages:
- maven
env: env:
matrix: matrix:
- BACKEND=hsqldb TESTNAME=test_integration.HsqldbTest - BACKEND=hsqldb TESTNAME=test_integration.HsqldbTest
@ -29,10 +34,13 @@ before_install:
install: install:
- pip install jip==0.7 - pip install jip==0.7
- cp ci/dot_jip $VIRTUAL_ENV/.jip # TODO: Fix jip to search for local maven repo
- pip install -e . - pip install -e .
- pip install -r test-requirements.txt - pip install -r test-requirements.txt
- jip install org.xerial:sqlite-jdbc:3.7.2 - jip install org.xerial:sqlite-jdbc:3.7.2
- jip install org.hsqldb:hsqldb:1.8.0.10 - jip install org.hsqldb:hsqldb:1.8.0.10
- (cd mockdriver && mvn install)
- jip install mockdriver
script: script:
- export CLASSPATH=$VIRTUAL_ENV/javalib/* - export CLASSPATH=$VIRTUAL_ENV/javalib/*

7
ci/dot_jip 100644
View File

@ -0,0 +1,7 @@
[repos:local]
uri=/home/travis/.m2/repository/
type=local
[repos:central]
uri=http://repo1.maven.org/maven2/
type=remote

View File

@ -7,11 +7,9 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>mockdriver</name>
<url>http://maven.apache.org</url>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
@ -34,6 +32,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
@ -53,6 +52,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>