From 9cffbe6488d6e98ef3ea693792a039612502c728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 30 Aug 2019 15:04:24 +0100 Subject: [PATCH 1/2] fix(ci): use custom cache key for cross compilation job --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 9e6ec9b26..6df0a3075 100644 --- a/.travis.yml +++ b/.travis.yml @@ -119,6 +119,11 @@ jobs: name: Cross compile binaries if: repo = prymitive/karma AND type != pull_request <<: *DEFAULTS_GO + env: + # add an extra env so we don't push cross compilation cache into the main archive + # as it slows down other jobs + - JOB=cc + - GO111MODULE=on before_script: # this stage needs to build everything including assets file and that # requires running webpack, so we need nodejs here From 9662cdc877c84df245da7a791f5825728025260e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Fri, 30 Aug 2019 17:19:05 +0100 Subject: [PATCH 2/2] fix(ci): remove go cache mtime hacks Cache checks are base on content, not mtimes, no need to hack around it --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6df0a3075..36d1c8253 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,9 +11,6 @@ defaults_go: &DEFAULTS_GO # so it forces new cache archive on every build # remove it before creating cache archive - rm -vf $HOME/.cache/go-build/log.txt - # force fixed mtime on all files so travis doesn't consider - # these as updated - - find $HOME/.cache/go-build/ -type f -exec touch -t 201909010000 {} \; env: - GO111MODULE=on