From e19fc49a5f4d551e3f40c7d2fc291df9990c4a9a Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Mon, 15 May 2017 23:07:07 -0700 Subject: [PATCH] add circleci configuration --- .circleci/config.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..b694a1693 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,30 @@ +version: 2 + +jobs: + + build: + machine: true + + working_directory: ~/.go_workspace/src/github.com/ncw/rclone + + steps: + - checkout + + - run: + name: Cross-compile rclone + command: | + docker pull billziss/xgo-cgofuse + go get -v github.com/karalabe/xgo + xgo \ + --image=billziss/xgo-cgofuse \ + --targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \ + . + + - run: + name: Prepare artifacts + command: | + mkdir -p /tmp/rclone.dist + cp -R rclone-* /tmp/rclone.dist + + - store_artifacts: + path: /tmp/rclone.dist