5 changed files with 29 additions and 49 deletions
@ -1,44 +1,24 @@ |
|||
version: 2 |
|||
|
|||
jobs: |
|||
build: |
|||
defaults: &defaults |
|||
working_directory: ~/ledger-live-desktop |
|||
docker: |
|||
- image: circleci/node:8.11.3-stretch-browsers |
|||
branches: |
|||
ignore: |
|||
- gh-pages |
|||
|
|||
jobs: |
|||
build: |
|||
<<: *defaults |
|||
steps: |
|||
- checkout |
|||
- restore_cache: |
|||
name: Restore Yarn Package Cache |
|||
keys: |
|||
- v2-yarn-packages-{{ checksum "yarn.lock" }} |
|||
- run: |
|||
name: Install Dependencies |
|||
command: bash scripts/install-ci-deps.sh |
|||
- v7-yarn-packages-{{ checksum "yarn.lock" }} |
|||
- run: yarn install |
|||
- save_cache: |
|||
name: Save Yarn Package Cache |
|||
key: v2-yarn-packages-{{ checksum "yarn.lock" }} |
|||
key: v7-yarn-packages-{{ checksum "yarn.lock" }} |
|||
paths: |
|||
- node_modules/ |
|||
- run: |
|||
name: Lint |
|||
command: yarn lint |
|||
- run: |
|||
name: Prettier |
|||
command: ./node_modules/.bin/prettier -l "{src,webpack,.storybook}/**/*.js" |
|||
- run: |
|||
name: Flow |
|||
command: yarn flow --quiet |
|||
# - run: |
|||
# name: Test |
|||
# command: yarn test |
|||
# - run: |
|||
# name: Build |
|||
# command: yarn dist:dir |
|||
# - run: |
|||
# name: Generate build stats |
|||
# command: "du -h dist | sort -h > /tmp/build-stats.txt" |
|||
# - store_artifacts: |
|||
# path: /tmp/build-stats.txt |
|||
# destination: build-stats.txt |
|||
- node_modules |
|||
- run: yarn lint |
|||
- run: ./node_modules/.bin/prettier -l "{src,webpack,.storybook,static/i18n}/**/*.js" |
|||
- run: yarn flow --quiet |
|||
- run: yarn release |
|||
|
@ -1,14 +0,0 @@ |
|||
#!/bin/bash |
|||
|
|||
# shellcheck disable=SC1091 |
|||
source scripts/helpers/hash.sh |
|||
|
|||
yarnLockHash=$(md5sum package.json | cut -d ' ' -f 1) |
|||
cachedYarnLockHash=$(getHash 'yarn.lock') |
|||
|
|||
if [ "$cachedYarnLockHash" == "$yarnLockHash" ]; then |
|||
echo "> Skipping yarn install" |
|||
else |
|||
yarn install |
|||
setHash 'yarn.lock' "$yarnLockHash" |
|||
fi |
Loading…
Reference in new issue