build: upload circleci builds for the beta release

This commit is contained in:
Nick Craig-Wood 2019-01-15 11:46:39 +00:00
parent 60558b5d37
commit fc4f20d52f
2 changed files with 20 additions and 0 deletions

View File

@ -29,6 +29,19 @@ jobs:
command: | command: |
mkdir -p /tmp/rclone.dist mkdir -p /tmp/rclone.dist
cp -R rclone-* /tmp/rclone.dist cp -R rclone-* /tmp/rclone.dist
mkdir build
cp -R rclone-* build/
- run:
name: Build rclone
command: |
go version
go build
- run:
name: Upload artifacts
command: |
make circleci_upload
- store_artifacts: - store_artifacts:
path: /tmp/rclone.dist path: /tmp/rclone.dist

View File

@ -185,6 +185,13 @@ ifndef BRANCH_PATH
endif endif
@echo Beta release ready at $(BETA_URL) @echo Beta release ready at $(BETA_URL)
circleci_upload:
./rclone --config bin/travis.rclone.conf -v copy build/ $(BETA_UPLOAD)/testbuilds
ifndef BRANCH_PATH
-#./rclone --config bin/travis.rclone.conf -v copy build/ $(BETA_UPLOAD_ROOT)/testbuilds
endif
@echo Beta release ready at $(BETA_URL)/testbuilds
BUILD_FLAGS := -exclude "^(windows|darwin)/" BUILD_FLAGS := -exclude "^(windows|darwin)/"
ifeq ($(TRAVIS_OS_NAME),osx) ifeq ($(TRAVIS_OS_NAME),osx)
BUILD_FLAGS := -include "^darwin/" -cgo BUILD_FLAGS := -include "^darwin/" -cgo