Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit b5379cd

Browse files
authored
Merge pull request #2 from diffblue/feature/diffblue-builder
Feature/diffblue builder
2 parents 66531fb + a4d4413 commit b5379cd

File tree

6 files changed

+65
-3
lines changed

6 files changed

+65
-3
lines changed

.travis.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ before_install:
2828
# Build cbmc-builder and try to build & test cbmc in it. Run in parallel for
2929
# each distro.
3030
env:
31-
- DISTRO="alpine"
32-
- DISTRO="ubuntu"
31+
- IMAGE="alpine"
32+
- IMAGE="ubuntu"
33+
- IMAGE="alpine-diffblue-builder"
3334

3435
script:
35-
- BUILDER_TAG=$(git describe) ./dobi ${DISTRO}-test
36+
- BUILDER_TAG=$(git describe) ./dobi ${IMAGE}-test

alpine/Dockerfile.diffblue-builder

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM diffblue/cbmc-builder:alpine-0.0.1
2+
3+
LABEL maintainer="DiffBlue Ltd."
4+
5+
RUN apk add --no-cache openjdk8 jq maven apache-ant
6+
7+
ENV PATH="$PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin" \
8+
JAVA_HOME="/usr/lib/jvm/java-1.8-openjdk"

dobi.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ mount=source:
1414
bind: ./cbmc/
1515
path: /src/cbmc/
1616

17+
mount=test-java:
18+
bind: ./test/java/
19+
path: /test-java/
20+
1721
## Alpine Mounts
1822

1923
mount=alpine-tmp:
@@ -57,6 +61,13 @@ image=alpine-distro:
5761
- 'alpine'
5862
- 'alpine-{env.BUILDER_TAG}'
5963

64+
image=alpine-diffblue-builder:
65+
image: diffblue/diffblue-builder
66+
dockerfile: alpine/Dockerfile.diffblue-builder
67+
tags:
68+
- 'alpine'
69+
- 'alpine-{env.BUILDER_TAG}'
70+
6071
## Ubuntu Images
6172

6273
image=ubuntu-builder:
@@ -128,6 +139,12 @@ job=alpine-clean:
128139
command: "bash -c \"rm -rf /tmp/projects/* && rm -rf /dist/*\""
129140
description: "Delete temporary files and binaries"
130141

142+
job=alpine-diffblue-builder-test:
143+
use: alpine-diffblue-builder
144+
mounts: [test-java]
145+
command: "bash -c \"cd /test-java && mvn compile && ant compile\""
146+
description: "Test basic funcionality"
147+
131148
## Ubuntu Jobs
132149

133150
job=ubuntu-copy-src:

test/java/build.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<project name="Regression test" default="dist" basedir=".">
2+
<description>
3+
Simple build file
4+
</description>
5+
<!-- set global properties for this build -->
6+
<property name="src" location="src"/>
7+
<property name="build" location="build"/>
8+
9+
<target name="init">
10+
<mkdir dir="${build}"/>
11+
</target>
12+
13+
<target name="compile" depends="init"
14+
description="compile the source">
15+
<javac srcdir="${src}" destdir="${build}"/>
16+
</target>
17+
</project>

test/java/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.diffblue.regression</groupId>
7+
<artifactId>diffblue-regression-test</artifactId>
8+
<version>1</version>
9+
<packaging>jar</packaging>
10+
11+
<name>Diffblue Regression Test</name>
12+
13+
</project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.diffblue.regression;
2+
3+
public class My {
4+
public My(int i) {
5+
}
6+
}

0 commit comments

Comments
 (0)