mirror of
https://github.com/scratchfoundation/scratch-parser.git
synced 2025-08-13 06:38:58 -04:00
ci: remove circle config
This commit is contained in:
parent
9544a9f38e
commit
213f4fedf9
1 changed files with 0 additions and 105 deletions
|
@ -1,105 +0,0 @@
|
|||
|
||||
version: 2.1
|
||||
orbs:
|
||||
commitlint: conventional-changelog/commitlint@1.0.0
|
||||
|
||||
executors:
|
||||
default-executor:
|
||||
docker:
|
||||
- image: "cimg/node:lts"
|
||||
working_directory: ~/project
|
||||
resource_class: medium
|
||||
|
||||
commands:
|
||||
restore_test_cache:
|
||||
steps:
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-deps-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ .Revision }}
|
||||
- v1-deps-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}
|
||||
- v1-deps-
|
||||
save_test_cache:
|
||||
steps:
|
||||
- save_cache:
|
||||
key: v1-deps-{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ .Revision }}
|
||||
paths:
|
||||
- node_modules
|
||||
- ~/.npm
|
||||
setup:
|
||||
steps:
|
||||
- run:
|
||||
name: Setup
|
||||
command: |
|
||||
npm prune
|
||||
test:
|
||||
steps:
|
||||
- run:
|
||||
name: Test
|
||||
command: |
|
||||
npm run test
|
||||
deploy:
|
||||
steps:
|
||||
- run:
|
||||
name: Deploy
|
||||
command: |
|
||||
npm run semantic-release
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
executor: default-executor
|
||||
steps:
|
||||
- checkout
|
||||
- restore_test_cache
|
||||
- setup
|
||||
- save_test_cache
|
||||
- test
|
||||
- persist_to_workspace:
|
||||
root: ~/project
|
||||
paths: .
|
||||
deploy:
|
||||
executor: default-executor
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: ~/project
|
||||
- deploy
|
||||
|
||||
workflows:
|
||||
commitlint:
|
||||
when:
|
||||
not:
|
||||
or:
|
||||
- equal: [ master, <<pipeline.git.branch>> ]
|
||||
- equal: [ develop, <<pipeline.git.branch>> ]
|
||||
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
||||
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
||||
jobs:
|
||||
- commitlint/lint:
|
||||
target-branch: master
|
||||
|
||||
build-and-test-workflow:
|
||||
when:
|
||||
not:
|
||||
or:
|
||||
- equal: [ master, <<pipeline.git.branch>> ]
|
||||
- equal: [ develop, <<pipeline.git.branch>> ]
|
||||
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
||||
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
||||
jobs:
|
||||
- build-and-test
|
||||
|
||||
deploy-workflow:
|
||||
when:
|
||||
or:
|
||||
- equal: [ master, <<pipeline.git.branch>> ]
|
||||
- equal: [ develop, <<pipeline.git.branch>> ]
|
||||
- matches: { pattern: "^hotfix.*", value: <<pipeline.git.branch>> }
|
||||
- matches: { pattern: "^release.*", value: <<pipeline.git.branch>> }
|
||||
- matches: { pattern: "^v[0-9]*.[0-9]*.[0-9]*$", value: <<pipeline.git.branch>> }
|
||||
|
||||
jobs:
|
||||
- build-and-test
|
||||
- deploy:
|
||||
context:
|
||||
- scratch-npm-creds
|
||||
requires:
|
||||
- build-and-test
|
Loading…
Add table
Add a link
Reference in a new issue