From d456ae4412a2b352db082473945864f16fd903c3 Mon Sep 17 00:00:00 2001 From: Stephen Gaito Date: Sat, 6 Jun 2020 09:00:07 +0100 Subject: [PATCH] start multiple releases via travis --- .travis.yml | 10 ++++++++-- buildScripts/reportEnvs | 2 ++ buildScripts/uploadGitHubRelease | 4 ++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index c8aaee5..8ae483e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,14 +17,20 @@ branches: jobs: fast_finish: true include: - - stage: build-linux - os: linux + - os: linux dist: bionic env: DOCKER_FROM="ubuntu:18.04" services: - docker script: - ./buildScripts/travisLinuxDoItAll + - os: linux + dist: xenial + env: DOCKER_FROM="ubuntu:16.04" + services: + - docker + script: + - ./buildScripts/travisLinuxDoItAll #deploy: # provider: releases diff --git a/buildScripts/reportEnvs b/buildScripts/reportEnvs index d49fedf..81c5efc 100755 --- a/buildScripts/reportEnvs +++ b/buildScripts/reportEnvs @@ -3,6 +3,7 @@ # This bash script reports the more important TRAVIS environment variables echo "TravisCI env:" +echo " dist: [$TRAVIS_DIST]" echo " tag: [$TRAVIS_TAG]" echo " branch: [$TRAVIS_BRANCH]" echo " commit: [$TRAVIS_COMMIT]" @@ -26,4 +27,5 @@ echo " build time: [$BUILD_TIME]" echo " docker from: [$DOCKER_FROM]" echo " docker name: [$DOCKER_NAME]" echo " appImage name: [$APPIMAGE_NAME]" +echo " dpkg name: [$DPKG_NAME]" echo "uploadTool suffix: [$UPLOADTOOL_SUFFIX]" diff --git a/buildScripts/uploadGitHubRelease b/buildScripts/uploadGitHubRelease index 1f35245..c6beede 100755 --- a/buildScripts/uploadGitHubRelease +++ b/buildScripts/uploadGitHubRelease @@ -71,9 +71,9 @@ echo $APPIMAGE_NAME > appImageName.txt echo $DOCKER_NAME > dockerImageName.txt echo $DPKG_NAME > debianArchiveName.txt -deleteReleaseByTag "$TRAVIS_REPO_SLUG" "continuous" +deleteReleaseByTag "$TRAVIS_REPO_SLUG" "continuous-$TRAVIS_DIST" -createNewRelease "$TRAVIS_REPO_SLUG" "continuous" "Latest release" \ +createNewRelease "$TRAVIS_REPO_SLUG" "continuous-$TRAVIS_DIST" "Latest release" \ ../buildScripts/uploadGitHubReleaseMessage uploadAnAsset $upload_url "appImageName.txt" "text/plain"