mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 21:49:15 +00:00
Update CI config
This commit is contained in:
parent
7590982050
commit
2096146082
@ -44,38 +44,18 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
command: sudo apt-get install libusb-1.0-0-dev
|
command: sudo apt-get install libusb-1.0-0-dev
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
command: yarn build
|
command: yarn build
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- packages/*/build/*
|
- packages/*/build/*
|
||||||
- run:
|
|
||||||
name: Check for clean workspace
|
|
||||||
command: |
|
|
||||||
SOURCE_CHANGES=$(git status --porcelain)
|
|
||||||
if [[ -n "$SOURCE_CHANGES" ]]; then
|
|
||||||
echo "Error: repository contains changes."
|
|
||||||
echo "Showing 'git status' and 'git diff' for debugging now:"
|
|
||||||
git status
|
|
||||||
git --no-pager diff
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
test:
|
test:
|
||||||
machine:
|
machine:
|
||||||
# We can't use a containerized environment since it requires remote docker to start custom containers.
|
# We can't use a containerized environment since it requires remote docker to start custom containers.
|
||||||
@ -138,10 +118,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
||||||
@ -150,12 +126,7 @@ jobs:
|
|||||||
sudo dpkg -i "$HOME/libusb.deb"
|
sudo dpkg -i "$HOME/libusb.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Initialize launchpad (deploy contracts and friends)
|
name: Initialize launchpad (deploy contracts and friends)
|
||||||
command: ./scripts/launchpad/init.sh
|
command: ./scripts/launchpad/init.sh
|
||||||
@ -266,10 +237,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
||||||
@ -278,12 +245,7 @@ jobs:
|
|||||||
sudo dpkg -i "$HOME/libusb.deb"
|
sudo dpkg -i "$HOME/libusb.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Initialize launchpad (deploy contracts and friends)
|
name: Initialize launchpad (deploy contracts and friends)
|
||||||
command: ./scripts/launchpad/init.sh
|
command: ./scripts/launchpad/init.sh
|
||||||
@ -388,10 +350,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
||||||
@ -400,12 +358,7 @@ jobs:
|
|||||||
sudo dpkg -i "$HOME/libusb.deb"
|
sudo dpkg -i "$HOME/libusb.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Initialize launchpad (deploy contracts and friends)
|
name: Initialize launchpad (deploy contracts and friends)
|
||||||
command: ./scripts/launchpad/init.sh
|
command: ./scripts/launchpad/init.sh
|
||||||
@ -497,10 +450,6 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
# In the current image, `sudo apt install libusb-1.0-0-dev` requires `sudo apt update` which is too slow
|
||||||
@ -509,12 +458,7 @@ jobs:
|
|||||||
sudo dpkg -i "$HOME/libusb.deb"
|
sudo dpkg -i "$HOME/libusb.deb"
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Initialize launchpad (deploy contracts and friends)
|
name: Initialize launchpad (deploy contracts and friends)
|
||||||
command: ./scripts/launchpad/init.sh
|
command: ./scripts/launchpad/init.sh
|
||||||
@ -563,21 +507,12 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
command: sudo apt-get install libusb-1.0-0-dev
|
command: sudo apt-get install libusb-1.0-0-dev
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Build package docs
|
name: Build package docs
|
||||||
command: yarn docs
|
command: yarn docs
|
||||||
@ -627,21 +562,12 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Version information
|
name: Version information
|
||||||
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
command: echo "node $(node --version)"; echo "yarn $(yarn --version)"
|
||||||
- restore_cache:
|
|
||||||
name: Restore Yarn Package Cache
|
|
||||||
keys:
|
|
||||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
- run:
|
- run:
|
||||||
name: Install libusb
|
name: Install libusb
|
||||||
command: sudo apt-get install libusb-1.0-0-dev
|
command: sudo apt-get install libusb-1.0-0-dev
|
||||||
- run:
|
- run:
|
||||||
name: Install Dependencies
|
name: Install Dependencies
|
||||||
command: yarn install --immutable
|
command: yarn install --immutable --immutable-cache --check-cache
|
||||||
- save_cache:
|
|
||||||
name: Save Yarn Package Cache
|
|
||||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
|
||||||
paths:
|
|
||||||
- ~/.cache/yarn
|
|
||||||
- run:
|
- run:
|
||||||
name: Lint
|
name: Lint
|
||||||
command: yarn lint
|
command: yarn lint
|
||||||
@ -651,14 +577,3 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Format shell scripts
|
name: Format shell scripts
|
||||||
command: yarn format-shell
|
command: yarn format-shell
|
||||||
- run:
|
|
||||||
name: Check for clean workspace
|
|
||||||
command: |
|
|
||||||
SOURCE_CHANGES=$(git status --porcelain)
|
|
||||||
if [[ -n "$SOURCE_CHANGES" ]]; then
|
|
||||||
echo "Error: repository contains changes."
|
|
||||||
echo "Showing 'git status' and 'git diff' for debugging now:"
|
|
||||||
git status
|
|
||||||
git --no-pager diff
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user