Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 6f243aa

Browse files
committed
use ci_run script
1 parent b230269 commit 6f243aa

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

.circleci/config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ jobs:
1212
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{checksum "yarn.lock"}}
1313
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-
1414
- v0-yarn-{{ .Environment.CIRCLE_JOB }}-master
15-
- run: yarn global add greenkeeper-lockfile@1 && greenkeeper-lockfile-update
16-
- run: yarn
17-
- run: yarn test --coverage
18-
- run: greenkeeper-lockfile-upload
19-
- run: curl -s https://codecov.io/bash | bash
15+
- run: ./scripts/ci_run
2016
- save_cache:
2117
key: v0-yarn-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{checksum "yarn.lock"}}
2218
paths:

scripts/ci_run

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
# version: 1
3+
# DO NOT EDIT THIS FILE
4+
# It is created/updated by @cli-engine/util automatically when it is installed in a plugin.
5+
# If you want to do any custom work on CI, just place it in .circleci/config.yml
6+
7+
set -ex
8+
9+
PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
10+
11+
if [ ! -x "$(command -v greenkeeper-lockfile-update)" ]; then
12+
yarn global add greenkeeper-lockfile@1
13+
fi
14+
15+
greenkeeper-lockfile-update
16+
yarn install --frozen-lockfile
17+
greenkeeper-lockfile-upload
18+
yarn test --coverage
19+
curl -s https://codecov.io/bash | bash

0 commit comments

Comments
 (0)