From 8a56944cf453a3ddb1fe207ea59a834a8fd51523 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Tue, 15 Aug 2017 17:02:43 +0200 Subject: [PATCH] Added CI settings Signed-off-by: Stefan Marr --- .gitlab-ci.yml | 10 ++++++++++ .travis.yml | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 .travis.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..eeb5b2f --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +stages: + - build-and-test + +build_and_test_job: + stage: build-and-test + tags: [benchmarks, infinity] + script: + - ant test + #- ant eclipseformat # don't have eclipse on CI yet + - ant checkstyle diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0a4ca9a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: java +sudo: false +jdk: + - oraclejdk8 +install: + - | + export ECLIPSE_TAR=eclipse.tar.gz + export ECLIPSE_URL=http://archive.eclipse.org/eclipse/downloads/drops4/R-4.6.3-201703010400/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz + wget ${ECLIPSE_URL} -O ${ECLIPSE_TAR} + tar -C ${TRAVIS_BUILD_DIR}/.. -xzf ${ECLIPSE_TAR} + export ECLIPSE_EXE=${TRAVIS_BUILD_DIR}/../eclipse/eclipse +script: + - ant test + - ant eclipseformat + - ant checkstyle