diff --git a/.travis.yml b/.travis.yml index 4651be32..1d840f3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,13 @@ +sudo: required +dist: trusty + +services: docker + language: java script: - - ant; - - ant test; + - docker-compose up --build -d + - docker ps -a + +after_script: + - docker-compose down diff --git a/.travis.yml.swp b/.travis.yml.swp new file mode 100644 index 00000000..4e5923e2 Binary files /dev/null and b/.travis.yml.swp differ diff --git a/Dockerfile b/Dockerfile index e465a44f..46ebc64c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN apt install patchelf -y RUN apt install libgomp1 # Clone down the GreenSolver repository -RUN git clone https://github.com/wvisser/green +RUN git clone https://github.com/marcdefaria/green # Download and extract Z3 RUN mkdir z3 @@ -35,3 +35,7 @@ RUN mv z3-4.7.1-x64-ubuntu-16.04/ z3/ WORKDIR /green/ RUN sed -i '16s/.*/z3path = \/z3\/z3\/bin\/z3/' build.properties RUN sed -i '17s/.*/z3lib = \/z3\/z3\/bin/' build.properties + +#run the test +RUN ant +RUN ant test diff --git a/README.md b/README.md index aedc3ddc..0b682bb2 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -[![Build Status](https://travis-ci.org/wvisser/green.svg?branch=master)](https://travis-ci.org/wvisser/green.svg?branch=master) +[![Build Status](https://travis-ci.org/marcdefaria/green.svg?branch=master)](https://travis-ci.org/marcdefaria/green) Notes: - +HvQSDNw9jQZYGx6mw8N0Bg The first step is to update "build.properties" with your local settings. You do not need to set z3 and latte, but in that case some unit tests won't run. diff --git a/build.xml b/build.xml index 0c29bed8..46321a09 100644 --- a/build.xml +++ b/build.xml @@ -95,8 +95,8 @@ - - + + @@ -108,7 +108,7 @@ - +