This repository was archived by the owner on Apr 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +65
-3
lines changed
src/main/java/com/diffblue/regression Expand file tree Collapse file tree 6 files changed +65
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,9 @@ before_install:
28
28
# Build cbmc-builder and try to build & test cbmc in it. Run in parallel for
29
29
# each distro.
30
30
env :
31
- - DISTRO="alpine"
32
- - DISTRO="ubuntu"
31
+ - IMAGE="alpine"
32
+ - IMAGE="ubuntu"
33
+ - IMAGE="alpine-diffblue-builder"
33
34
34
35
script :
35
- - BUILDER_TAG=$(git describe) ./dobi ${DISTRO }-test
36
+ - BUILDER_TAG=$(git describe) ./dobi ${IMAGE }-test
Original file line number Diff line number Diff line change
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"
Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ mount=source:
14
14
bind : ./cbmc/
15
15
path : /src/cbmc/
16
16
17
+ mount=test-java :
18
+ bind : ./test/java/
19
+ path : /test-java/
20
+
17
21
# # Alpine Mounts
18
22
19
23
mount=alpine-tmp :
@@ -57,6 +61,13 @@ image=alpine-distro:
57
61
- ' alpine'
58
62
- ' alpine-{env.BUILDER_TAG}'
59
63
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
+
60
71
# # Ubuntu Images
61
72
62
73
image=ubuntu-builder :
@@ -128,6 +139,12 @@ job=alpine-clean:
128
139
command : " bash -c \" rm -rf /tmp/projects/* && rm -rf /dist/*\" "
129
140
description : " Delete temporary files and binaries"
130
141
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
+
131
148
# # Ubuntu Jobs
132
149
133
150
job=ubuntu-copy-src :
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change
1
+ package com .diffblue .regression ;
2
+
3
+ public class My {
4
+ public My (int i ) {
5
+ }
6
+ }
You can’t perform that action at this time.
0 commit comments