From 5b063679b5f9406bba0441a87127319876c01c69 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 11 May 2017 14:57:32 +0100 Subject: [PATCH] travis: install libfuse for cmount build and disable on OS X --- .travis.yml | 6 ++++++ Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5c0489f81..712977187 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,12 +18,18 @@ script: env: matrix: secure: gU8gCV9R8Kv/Gn0SmCP37edpfIbPoSvsub48GK7qxJdTU628H0KOMiZW/T0gtV5d67XJZ4eKnhJYlxwwxgSgfejO32Rh5GlYEKT/FuVoH0BD72dM1GDFLSrUiUYOdoHvf/BKIFA3dJFT4lk2ASy4Zh7SEoXHG6goBlqUpYx8hVA= +addons: + apt: + packages: + - fuse + - libfuse-dev matrix: allow_failures: - go: tip include: - os: osx go: 1.8.1 + env: CGO_ENABLED=0 deploy: provider: script script: make travis_beta diff --git a/Makefile b/Makefile index 748fa7bb9..6ba80c08f 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ test: rclone # Quick test quicktest: RCLONE_CONFIG="/notfound" go test $(GO_FILES) - RCLONE_CONFIG="/notfound" go test -cpu=2 -race $(GO_FILES) + if [ "$$CGO_ENABLED" != "0" ]; then RCLONE_CONFIG="/notfound" go test -cpu=2 -race $(GO_FILES) ; fi # Do source code quality checks check: rclone