Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: split other OS build into a separate builder

Nick Craig-Wood7fcbb47b1c97
diff --git a/.travis.yml b/.travis.yml
index 638720b25..8c26ff45c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -60,25 +60,36 @@ matrix:
script:
- make quicktest
- go: 1.12.x
+ name: Linux
env:
- GOTAGS=cmount
+ - BUILD_FLAGS='-include "^linux/"'
- DEPLOY=true
script:
- make build_dep
- make check
- make quicktest
- make racequicktest
- - make compile_all
- go: 1.12.x
- name: Go modules
+ name: Go Modules
env:
- GO111MODULE=on
script:
- make quicktest
- - os: osx
- go: 1.12.x
+ - go: 1.12.x
+ name: Other OS
+ env:
+ - DEPLOY=true
+ - BUILD_FLAGS='-exclude "^(windows|darwin|linux)/"'
+ script:
+ - make
+ - make compile_all
+ - go: 1.12.x
+ name: macOS
+ os: osx
env:
- GOTAGS= # cmount doesn't work on osx travis for some reason
+ - BUILD_FLAGS='-include "^darwin/" -cgo'
- DEPLOY=true
cache:
directories:
@@ -88,10 +99,12 @@ matrix:
- make quicktest
- make racequicktest
# - os: windows
+ # name: Windows
# go: 1.12.x
# env:
# - GOTAGS=cmount
# - CPATH='C:\Program Files (x86)\WinFsp\inc\fuse'
+ # - BUILD_FLAGS='-include "^windows/amd64" -cgo' # 386 doesn't build yet
# #filter_secrets: false # works around a problem with secrets under windows
# cache:
# directories:
diff --git a/Makefile b/Makefile
index 4274a2108..833de26b6 100644
--- a/Makefile
+++ b/Makefile
@@ -167,16 +167,6 @@ ifndef BRANCH_PATH
endif
@echo Beta release ready at $(BETA_URL)/testbuilds
-BUILD_FLAGS := -exclude "^(windows|darwin)/"
-ifeq ($(TRAVIS_OS_NAME),osx)
- BUILD_FLAGS := -include "^darwin/" -cgo
-endif
-ifeq ($(TRAVIS_OS_NAME),windows)
-# BUILD_FLAGS := -include "^windows/" -cgo
-# 386 doesn't build yet
- BUILD_FLAGS := -include "^windows/amd64" -cgo
-endif
-
travis_beta:
ifeq ($(TRAVIS_OS_NAME),linux)
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*\.tar.gz'