From 2c3bc2d75ead27194ce53a3625a95ffa483ca03e Mon Sep 17 00:00:00 2001 From: steve-chavez Date: Mon, 24 Jun 2019 11:52:37 -0500 Subject: [PATCH] AppVeyor workaround for TMP issue, also add timeout See https://github.com/quasicomputational/hpack/commit/ce868d17e53289eab3703261a5a3dc8d48364533, and https://github.com/commercialhaskell/stack/issues/3944 --- .travis.yml | 7 +++++++ appveyor.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f7cb97810..c4cbeb294 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,10 @@ +## Travis is used for building an OSX binary on new tag releases, +## it also compiles the project on OSX for each commit to master. +## +## Building the whole project can take longer than 50 minutes. Since Travis has a global timeout of 50 minutes +## we compile for 30 minutes tops(see `gtimeout 1800` below) and quit compiling with no error. +## Since we CACHE the compile results we can continue compiling from where we left off +## on the next commit. language: generic sudo: false diff --git a/appveyor.yml b/appveyor.yml index 28214dead..34da6ed05 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,4 @@ +## AppVeyor is used for building a Windows binary on new tag releases platform: x64 cache: @@ -8,6 +9,7 @@ environment: global: STACK_ROOT: "c:\\sr" GOPATH: c:\gopath + TMP: "c:\\tmp" test: off @@ -28,7 +30,7 @@ install: build_script: - stack setup --no-terminal > nul -- stack build -j1 --copy-bins --local-bin-path . +- bash -lc "timeout 2700 'C:\projects\postgrest\stack.exe' build -j1 --copy-bins --local-bin-path . || true" artifacts: - path: postgrest.exe