diff --git a/.circleci/config.yml b/.circleci/config.yml index edbfa367a..e28a4d3a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,6 +29,19 @@ jobs: command: | mkdir -p /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: path: /tmp/rclone.dist diff --git a/Makefile b/Makefile index be1d1b434..e63760528 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,13 @@ ifndef BRANCH_PATH endif @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)/" ifeq ($(TRAVIS_OS_NAME),osx) BUILD_FLAGS := -include "^darwin/" -cgo