5 changed files with 29 additions and 49 deletions
@ -1,44 +1,24 @@ |
|||||
version: 2 |
version: 2 |
||||
|
|
||||
|
defaults: &defaults |
||||
|
working_directory: ~/ledger-live-desktop |
||||
|
docker: |
||||
|
- image: circleci/node:8.11.3-stretch-browsers |
||||
|
|
||||
jobs: |
jobs: |
||||
build: |
build: |
||||
docker: |
<<: *defaults |
||||
- image: circleci/node:8.11.3-stretch-browsers |
|
||||
branches: |
|
||||
ignore: |
|
||||
- gh-pages |
|
||||
steps: |
steps: |
||||
- checkout |
- checkout |
||||
- restore_cache: |
- restore_cache: |
||||
name: Restore Yarn Package Cache |
|
||||
keys: |
keys: |
||||
- v2-yarn-packages-{{ checksum "yarn.lock" }} |
- v7-yarn-packages-{{ checksum "yarn.lock" }} |
||||
- run: |
- run: yarn install |
||||
name: Install Dependencies |
|
||||
command: bash scripts/install-ci-deps.sh |
|
||||
- save_cache: |
- save_cache: |
||||
name: Save Yarn Package Cache |
key: v7-yarn-packages-{{ checksum "yarn.lock" }} |
||||
key: v2-yarn-packages-{{ checksum "yarn.lock" }} |
|
||||
paths: |
paths: |
||||
- node_modules/ |
- node_modules |
||||
- run: |
- run: yarn lint |
||||
name: Lint |
- run: ./node_modules/.bin/prettier -l "{src,webpack,.storybook,static/i18n}/**/*.js" |
||||
command: yarn lint |
- run: yarn flow --quiet |
||||
- run: |
- run: yarn release |
||||
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 |
|
||||
|
@ -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