From 19c4d07ab599dd49ea5a956956e31bbeae2460b7 Mon Sep 17 00:00:00 2001 From: Syrus Akbary Date: Tue, 13 Nov 2018 11:53:27 -0800 Subject: [PATCH] Adding rustup binaries to PATH for darwin build --- .circleci/config.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b933ed23b..ee3cbbb29 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -51,10 +51,21 @@ jobs: export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH" - run: name: Install Rust Nightly - command: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2018-10-07 - - run: make test - - run: command: | + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2018-10-07 + export PATH="$HOME/.cargo/bin:$PATH" + cargo --version + - run: + name: Execute tests + command: + export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH" + export PATH="$HOME/.cargo/bin:$PATH" + make test + - run: + name: Make build + command: | + export PATH="`pwd`/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin:$PATH" + export PATH="$HOME/.cargo/bin:$PATH" make release mkdir -p artifacts VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2)