Skip to content

Commit 57269c7

Browse files
authored
Merge pull request #170 from ipfs-shipyard/fix/ipfs-v0.5.0
Update to ipfs v0.5.0
2 parents b5f6b90 + e909b6e commit 57269c7

File tree

16 files changed

+126
-74
lines changed

16 files changed

+126
-74
lines changed

.github/workflows/ant.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Java CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v1
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v1
14+
with:
15+
java-version: 11
16+
- name: Install and run ipfs
17+
run: ./install-run-ipfs.sh
18+
- name: Build with Ant
19+
run: ant -noinput -buildfile build.xml dist
20+
- name: Run tests
21+
timeout-minutes: 10
22+
run: ant -noinput -buildfile build.xml test

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

build.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,26 +40,29 @@
4040
<attribute name="Class-Path" value="${manifest_cp}"/>
4141
<attribute name="Implementation-Vendor" value="io.ipfs"/>
4242
<attribute name="Implementation-Title" value="api"/>
43-
<attribute name="Implementation-Version" value="1.2.0"/>
43+
<attribute name="Implementation-Version" value="1.3.0"/>
4444
</manifest>
4545
</jar>
4646
</target>
4747

4848
<target name="test" depends="compile,dist">
49-
<junit printsummary="yes" fork="true" haltonfailure="yes">
49+
<junit printsummary="yes" fork="true">
5050
<jvmarg value="-Xmx1g"/>
5151
<classpath>
52-
<pathelement location="lib/junit-4.11.jar" />
52+
<pathelement location="lib/junit-4.12.jar" />
5353
<pathelement location="lib/hamcrest-core-1.3.jar" />
54-
<pathelement location="lib/multihash.jar" />
55-
<pathelement location="lib/multiaddr.jar" />
5654
<pathelement location="dist/ipfs.jar" />
5755
</classpath>
58-
<test name="io.ipfs.api.APITest" haltonfailure="yes">
56+
<batchtest haltonfailure="yes">
57+
<fileset dir="src/test/java">
58+
</fileset>
5959
<formatter type="plain"/>
6060
<formatter type="xml"/>
61-
</test>
61+
</batchtest>
6262
</junit>
63+
<exec executable="./print_test_errors.sh" failonerror="true">
64+
<arg value="./TEST*"/>
65+
</exec>
6366
</target>
6467

6568
<target name="clean" description="clean up">

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '2'
22
services:
33
ipfs-daemon:
4-
image: 'ipfs/go-ipfs:v0.4.16'
4+
image: 'ipfs/go-ipfs:v0.6.0'
55
ports:
66
- "4001:4001"
77
- "5001:5001"

install-run-ipfs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#! /bin/sh
2+
wget https://dist.ipfs.io/go-ipfs/v0.6.0/go-ipfs_v0.6.0_linux-amd64.tar.gz -O /tmp/go-ipfs_linux-amd64.tar.gz
3+
tar -xvf /tmp/go-ipfs_linux-amd64.tar.gz
4+
export PATH=$PATH:$PWD/go-ipfs/
5+
ipfs init
6+
ipfs daemon --enable-pubsub-experiment --routing=dhtclient &

lib/cid.jar

-68 Bytes
Binary file not shown.

lib/multiaddr.jar

420 Bytes
Binary file not shown.

lib/multibase.jar

18.2 KB
Binary file not shown.

lib/multihash.jar

3.86 KB
Binary file not shown.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.github.ipfs</groupId>
66
<artifactId>java-ipfs-http-client</artifactId>
7-
<version>v1.2.3</version>
7+
<version>v1.3.0</version>
88
<packaging>jar</packaging>
99

1010
<name>java-ipfs-http-client</name>
@@ -34,7 +34,7 @@
3434
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3535
<version.junit>4.12</version.junit>
3636
<version.hamcrest>1.3</version.hamcrest>
37-
<version.multiaddr>v1.3.1</version.multiaddr>
37+
<version.multiaddr>v1.4.1</version.multiaddr>
3838
</properties>
3939

4040
<repositories>

0 commit comments

Comments
 (0)