From 1cf6712a36e8ecc843a68aa373748e89e0afecba Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 27 Aug 2018 10:19:27 +0400 Subject: [PATCH] quick fix for CircleCI (#2279) See https://discuss.circleci.com/t/saving-cache-stopped-working-warning-skipping-this-step-disabled-in-configuration/24423/2 --- .circleci/config.yml | 153 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 133 insertions(+), 20 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8d321e9e6..312d04cae 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,10 +41,10 @@ jobs: key: v3-pkg-cache paths: - /go/pkg - - save_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} - paths: - - /go/src/github.com/tendermint/tendermint + # - save_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # paths: + # - /go/src/github.com/tendermint/tendermint build_slate: <<: *defaults @@ -53,8 +53,23 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # https://discuss.circleci.com/t/saving-cache-stopped-working-warning-skipping-this-step-disabled-in-configuration/24423/2 + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: slate docs command: | @@ -69,8 +84,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: metalinter command: | @@ -91,8 +120,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: Run abci apps tests command: | @@ -108,8 +151,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: Run abci-cli tests command: | @@ -123,8 +180,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: sudo apt-get update && sudo apt-get install -y --no-install-recommends bsdmainutils - run: name: Run tests @@ -138,8 +209,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: mkdir -p /tmp/logs - run: name: Run tests @@ -163,8 +248,22 @@ jobs: at: /tmp/workspace - restore_cache: key: v3-pkg-cache - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: Run tests command: bash test/persist/test_failure_indices.sh @@ -186,8 +285,22 @@ jobs: steps: - attach_workspace: at: /tmp/workspace - - restore_cache: - key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + # - restore_cache: + # key: v3-tree-{{ .Environment.CIRCLE_SHA1 }} + - checkout + - run: + name: tools + command: | + export PATH="$GOBIN:$PATH" + make get_tools + - run: + name: dependencies + command: | + export PATH="$GOBIN:$PATH" + make get_vendor_deps + - run: mkdir -p $GOPATH/src/github.com/tendermint + - run: ln -sf /home/circleci/project $GOPATH/src/github.com/tendermint/tendermint + - run: name: gather command: |