From 3364ef31ad863ec12cb2a3804502c70f7431d0ad Mon Sep 17 00:00:00 2001 From: Thomas Oster Date: Thu, 14 May 2020 09:28:11 +0200 Subject: [PATCH] Integrate Visicutbuildservice into Travis --- .travis.yml | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa4318bae..09078cdff 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,31 @@ language: java +os: linux +dist: xenial + jdk: - openjdk11 - +services: + - docker before_install: - pushd LibLaserCut && mvn install && popd # make sure we install legacy deps - mvn initialize - script: - "./test.sh" - - "mvn test" + - if [ "$TRAVIS_TAG" = "" ]; then mvn test; fi + - OUT=`pwd`/out + - mkdir $OUT + - chmod ugo+rwx $OUT + - if [ "$TRAVIS_TAG" != "" ]; then docker run -v $OUT:/app/output registry.gitlab.com/t-oster/visicutbuildservice; fi + - echo "Artifacts:" + - ls $OUT/branch-master/**/* +deploy: + provider: releases + file_glob: true + file: out/branch-master/**/* + token: $GITHUB_TOKEN + skip_cleanup: true + cleanup: false + on: + tags: true \ No newline at end of file