[gradle] use gradle with travis-ci
Project: http://git-wip-us.apache.org/repos/asf/incubator-edgent/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-edgent/commit/a972a0da Tree: http://git-wip-us.apache.org/repos/asf/incubator-edgent/tree/a972a0da Diff: http://git-wip-us.apache.org/repos/asf/incubator-edgent/diff/a972a0da Branch: refs/heads/master Commit: a972a0daa1f0b01b1d7b251a82b4434fe6352dfc Parents: 73daa77 Author: Dale LaBossiere <[email protected]> Authored: Thu Sep 22 13:36:01 2016 -0400 Committer: Dale LaBossiere <[email protected]> Committed: Tue Sep 27 16:04:07 2016 -0400 ---------------------------------------------------------------------- .travis.yml | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-edgent/blob/a972a0da/.travis.yml ---------------------------------------------------------------------- diff --git a/.travis.yml b/.travis.yml index 00c27b1..6f6eb36 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,23 +3,37 @@ language: java matrix: fast_finish: true -before_install: - - wget --tries=40 --retry-connrefused --waitretry=1 http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz - - tar xzf apache-ant-1.9.4-bin.tar.gz - - wget --tries=40 --retry-connrefused --waitretry=1 -O jacoco-0.7.5.zip http://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/0.7.5.201505241946/jacoco-0.7.5.201505241946.zip - - unzip -d jacoco-0.7.5 jacoco-0.7.5.zip +#addons: +# apt: +# packages: +# - junit4 -addons: - apt: - packages: - - junit4 +#before_install: +# - wget --tries=40 --retry-connrefused --waitretry=1 http://archive.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz +# - tar xzf apache-ant-1.9.4-bin.tar.gz +# - wget --tries=40 --retry-connrefused --waitretry=1 -O jacoco-0.7.5.zip http://search.maven.org/remotecontent?filepath=org/jacoco/jacoco/0.7.5.201505241946/jacoco-0.7.5.201505241946.zip +# - unzip -d jacoco-0.7.5 jacoco-0.7.5.zip install: true +# avoid uploading the cache after every build +before_cache: + - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock + - rm -fr $HOME/.gradle/caches/*/plugin-resolution/ +cache: + directories: + - $HOME/.gradle/caches/ + - $HOME/.gradle/wrapper/ + script: +# - jdk_switcher use oraclejdk8 +# - apache-ant-1.9.4/bin/ant -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib clean all test release +# - apache-ant-1.9.4/bin/ant -buildfile platform/java7 -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib test7.setup +# - jdk_switcher use oraclejdk7 +# - apache-ant-1.9.4/bin/ant -buildfile platform/java7 -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib test7.run - jdk_switcher use oraclejdk8 - - apache-ant-1.9.4/bin/ant -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib clean all test release - - apache-ant-1.9.4/bin/ant -buildfile platform/java7 -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib test7.setup +# skip tests while getting this running: - ./gradlew release test -Dedgent.build.ci=true + - ./gradlew release -Dedgent.build.ci=true + - ./gradlew test7Compile -Dedgent.build.ci=true - jdk_switcher use oraclejdk7 - - apache-ant-1.9.4/bin/ant -buildfile platform/java7 -Dedgent.build.ci=true -lib /usr/share/java/junit4.jar -lib jacoco-0.7.5/lib test7.run - + - ./gradlew test7Run -Dedgent.build.ci=true
