From 7c6525dac1cc4d4093b0d9ac9730b95776846b2d Mon Sep 17 00:00:00 2001 From: Mike Ripley Date: Mon, 27 May 2019 17:29:46 -0400 Subject: [PATCH 1/3] Add attempt at Travis CI integration using tests observed to be currently working --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..23ae423 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: java +cache: + directories: + - $HOME/.m2 +script: + - gradle build + - ./compile.sh tests/bracket-access.lj && ./test.sh + - ./compile.sh tests/comp/3np1for.lj && ./test.sh + - ./compile.sh tests/comp/3np1while.lj && ./test.sh + - ./compile.sh tests/comp/different.lj && ./test.sh + - ./compile.sh tests/comp/oddgnome.lj && ./test.sh + - ./compile.sh tests/collections.lj && ./test.sh + - ./compile.sh tests/demo.lj && ./test.sh + - ./compile.sh tests/dog.lj && ./test.sh + - ./compile.sh tests/eqtests.lj && ./test.sh + - ./compile.sh tests/fact.lj && ./test.sh + - ./compile.sh tests/forloop.lj && ./test.sh + - ./compile.sh tests/format.lj && ./test.sh + - ./compile.sh tests/fp.lj && ./test.sh + - ./compile.sh tests/oop.lj && ./test.sh + - ./compile.sh tests/precedence.lj && ./test.sh + - ./compile.sh tests/quicksort.lj && ./test.sh + - ./compile.sh tests/shadow.lj && ./test.sh + - ./compile.sh tests/type-inference.lj && ./test.sh + - ./compile.sh tests/unit-test.lj && ./test.sh From 8f921acf86692643022e5de6d713de67b33eab97 Mon Sep 17 00:00:00 2001 From: Mike Ripley Date: Tue, 28 May 2019 21:01:10 -0400 Subject: [PATCH 2/3] Add Travis build status to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index aa4643a..7547986 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/JMU-CS/less-java.svg?branch=master)](https://travis-ci.org/JMU-CS/less-java) + # A language to introduce students to programming Get gradle aliases from my .dotfiles repo: [Gradle Aliases](https://github.com/Zamua/.dotfiles/blob/master/gradle-aliases.sh) From 0c74ec0c361b802b8d4f30828ad0d58e07dc65c7 Mon Sep 17 00:00:00 2001 From: Mike Ripley Date: Tue, 28 May 2019 21:20:38 -0400 Subject: [PATCH 3/3] Move gradle build to install step, so errors are fatal --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 23ae423..35a6cb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,9 @@ language: java cache: directories: - $HOME/.m2 -script: +install: - gradle build +script: - ./compile.sh tests/bracket-access.lj && ./test.sh - ./compile.sh tests/comp/3np1for.lj && ./test.sh - ./compile.sh tests/comp/3np1while.lj && ./test.sh