File tree Expand file tree Collapse file tree 3 files changed +42
-7
lines changed Expand file tree Collapse file tree 3 files changed +42
-7
lines changed Original file line number Diff line number Diff line change
1
+ # Javascript Node CircleCI 2.0 configuration file
2
+ #
3
+ # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
+ #
5
+ version : 2
6
+ jobs :
7
+ build :
8
+ docker :
9
+ # specify the version you desire here
10
+ - image : circleci/node:11.10.1
11
+
12
+ # Specify service dependencies here if necessary
13
+ # CircleCI maintains a library of pre-built images
14
+ # documented at https://circleci.com/docs/2.0/circleci-images/
15
+ # - image: circleci/mongo:3.4.4
16
+
17
+ working_directory : ~/repo
18
+
19
+ steps :
20
+ - checkout
21
+
22
+ # Download and cache dependencies
23
+ - restore_cache :
24
+ name : Restore Yarn Package Cache
25
+ keys :
26
+ - yarn-packages-{{ checksum "yarn.lock" }}
27
+
28
+ - run :
29
+ name : Install Dependencies
30
+ command : yarn install --frozen-lockfile
31
+
32
+ - save_cache :
33
+ name : Save Yarn Package Cache
34
+ key : yarn-packages-{{ checksum "yarn.lock" }}
35
+ paths :
36
+ - ~/.cache/yarn
37
+
38
+ # run tests!
39
+ - run : yarn lint
40
+ - run : yarn test:unit
41
+ - run : yarn ci:coverage && bash <(curl -s https://codecov.io/bash)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 53
53
"scripts" : {
54
54
"build" : " cross-env BABEL_ENV=production babel ./src --out-dir ./lib" ,
55
55
"changelog" : " conventional-changelog -i CHANGELOG.md -s -n ./node_modules/git-commit-message-convention/convention.js" ,
56
- "clean" : " rm -rf ./coverage && rm -rf ./lib/*.js*" ,
57
56
"ci:coverage" : " nyc report --reporter=text-lcov > coverage.lcov" ,
57
+ "clean" : " rm -rf ./coverage && rm -rf ./lib/*.js*" ,
58
58
"coverage" : " nyc report --reporter lcov && opener coverage/lcov-report/index.html" ,
59
59
"lint" : " eslint ./src ./test" ,
60
60
"release" : " conventional-github-releaser -n ./node_modules/git-commit-message-convention/convention.js" ,
You can’t perform that action at this time.
0 commit comments