From 93d554805f53fb74e5a6b35ff69a60d47a541bc6 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Mon, 3 Feb 2020 08:55:59 +0100 Subject: [PATCH] Add COSMOS_ENABLED to ci --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 28e6a7176b..0999f28b76 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,8 +30,37 @@ jobs: - ~/.cache/yarn - run: command: yarn build + test: + docker: + - image: circleci/node:10 + steps: + - checkout - run: + name: Version information + command: echo "node $(node --version)"; echo "yarn $(yarn --version)" + - restore_cache: + name: Restore Yarn Package Cache + keys: + - yarn-packages-{{ checksum "yarn.lock" }} + - run: + name: Install Dependencies + command: yarn install --frozen-lockfile + - save_cache: + name: Save Yarn Package Cache + key: yarn-packages-{{ checksum "yarn.lock" }} + paths: + - ~/.cache/yarn + - run: + command: docker pull cosmwasm/wasmd:latest + - run: + command: ./projects/scripts/cosm/start.sh + - run: + command: sleep 15 + - run: + environment: COSMOS_ENABLED=1 command: yarn test + - run: + command: ./projects/scripts/cosm/stop.sh lint: docker: - image: circleci/node:10