rclone/.circleci/config.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

---
2017-05-16 06:07:07 +00:00
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 rclone/xgo-cgofuse
2017-05-16 06:07:07 +00:00
go get -v github.com/karalabe/xgo
xgo \
--image=rclone/xgo-cgofuse \
2017-05-16 06:07:07 +00:00
--targets=darwin/386,darwin/amd64,linux/386,linux/amd64,windows/386,windows/amd64 \
-tags cmount \
2017-05-16 06:07:07 +00:00
.
2017-10-11 12:40:02 +00:00
xgo \
--targets=android/*,ios/* \
.
2017-05-16 06:07:07 +00:00
- run:
name: Prepare artifacts
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: |
if [[ $CIRCLE_PULL_REQUEST != "" ]]; then
make circleci_upload
fi
2017-05-16 06:07:07 +00:00
- store_artifacts:
path: /tmp/rclone.dist