From d49d639145a7c7e2ff13c73457c0003dd277434f Mon Sep 17 00:00:00 2001 From: Olli Janatuinen Date: Sat, 29 Sep 2018 22:00:38 +0000 Subject: [PATCH] Use protoc 3.6.1 with CircleCI Signed-off-by: Olli Janatuinen --- .circleci/config.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4a8c9c620b..73c61be3db 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,7 +13,7 @@ jobs: ARCH: amd64 GOVERSION: 1.11 # Needed to install protoc - PROTOC: https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip + PROTOC_VERSION: 3.6.1 # Note(cyli): We create a tmpfs mount to be used for temporary files created by tests # to mitigate the excessive I/O latencies that sometimes cause the tests to fail. @@ -61,12 +61,12 @@ jobs: - run: name: Install protoc command: | - curl -fsSL -o "$HOME/$(basename $PROTOC)" "$PROTOC" - unzip -o "$HOME/$(basename $PROTOC)" -d "$HOME" - sudo cp -R "$HOME/include/google" /usr/local/include + curl --silent --show-error --location --output protoc.zip \ + https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip + sudo unzip -d /usr/local protoc.zip include/* bin/* + rm -f protoc.zip sudo chmod 777 -R /usr/local/include/google - sudo cp -R "$HOME/bin/protoc" /usr/local/bin - sudo chmod 777 /usr/local/bin/protoc + sudo chmod 777 /usr/local/bin/protoc - run: name: Install test/lint dependencies