diff --git a/.travis.yml b/.travis.yml index c4cbeb294..bad4e02cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,5 @@ -## 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. +## Travis is only used for building an OSX binary , +## no tests are run here. language: generic sudo: false @@ -47,11 +42,15 @@ install: fi script: +## 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(`gtimeout 1800`) 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. - gtimeout 1800 stack build --no-terminal --only-snapshot --install-ghc || true - | if test ! "$TRAVIS_TAG" then - echo 'No tag pushed. Skipping build.' + echo 'No tag pushed. Skip building binary.' else stack build --no-terminal --copy-bins --local-bin-path . fi diff --git a/appveyor.yml b/appveyor.yml index a8f406b38..885e8ed5e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -## AppVeyor is used for building a Windows binary on new tag releases +## AppVeyor is only used for building a Windows binary, no tests are run here. platform: x64 cache: @@ -14,14 +14,6 @@ environment: test: off -skip_non_tags: true - -skip_branch_with_pr: true - -branches: - only: - - master - install: - set PATH=C:\Program Files\PostgreSQL\9.6\bin\;%PATH% - curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/windows-x86_64 @@ -31,11 +23,13 @@ install: build_script: - stack setup --no-terminal > nul +# Appveyor has a timeout of 60 mins, building can take longer, limit the time and make sure this succeeds, +# previous work will get cached and finish on next commit - bash -lc "timeout 2700 'C:\projects\postgrest\stack.exe' build -j1 --copy-bins --local-bin-path . || true" artifacts: - path: postgrest.exe deploy_script: -- 7z a -tzip postgrest-%APPVEYOR_REPO_TAG_NAME%-windows-x64.zip postgrest.exe -- bash -lc "exec 0