mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 21:10:20 +01:00
Update CircleCI configuration (#4204)
* Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml
This commit is contained in:
parent
8f26176273
commit
6683d50bae
1 changed files with 30 additions and 14 deletions
|
@ -2,6 +2,11 @@ version: 2.1
|
|||
|
||||
executors:
|
||||
default:
|
||||
working_directory: /tmp/workspace
|
||||
docker:
|
||||
- image: misskey/ci:latest
|
||||
- image: circleci/mongo:latest
|
||||
with-redis:
|
||||
working_directory: /tmp/workspace
|
||||
docker:
|
||||
- image: misskey/ci:latest
|
||||
|
@ -24,7 +29,6 @@ jobs:
|
|||
name: OK
|
||||
command: |
|
||||
echo -e '\033[0;32mOK\033[0;39m'
|
||||
|
||||
build:
|
||||
executor: default
|
||||
steps:
|
||||
|
@ -68,10 +72,13 @@ jobs:
|
|||
- .
|
||||
test:
|
||||
parameters:
|
||||
without_redis:
|
||||
executor:
|
||||
type: string
|
||||
default: ""
|
||||
executor: default
|
||||
default: "default"
|
||||
without_redis:
|
||||
type: boolean
|
||||
default: false
|
||||
executor: <<parameters.executor>>
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: /tmp/workspace
|
||||
|
@ -94,12 +101,11 @@ jobs:
|
|||
key: yarn-v1-arch-{{ arch }}-env-{{ .Environment.variableName }}-package-{{ checksum "package.json" }}-lock-{{ checksum "yarn.lock" }}
|
||||
paths:
|
||||
- node_modules
|
||||
|
||||
docker:
|
||||
parameters:
|
||||
with_deploy:
|
||||
type: string
|
||||
default: ""
|
||||
type: boolean
|
||||
default: false
|
||||
executor: docker
|
||||
steps:
|
||||
- checkout
|
||||
|
@ -126,7 +132,7 @@ jobs:
|
|||
|
||||
workflows:
|
||||
version: 2
|
||||
build-and-test:
|
||||
nodejs:
|
||||
jobs:
|
||||
- ok:
|
||||
filters:
|
||||
|
@ -143,6 +149,7 @@ workflows:
|
|||
- imgbot
|
||||
- patch-autogen
|
||||
- test:
|
||||
executor: with-redis
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
|
@ -153,7 +160,7 @@ workflows:
|
|||
- imgbot
|
||||
- patch-autogen
|
||||
- test:
|
||||
without_redis: "true"
|
||||
without_redis: true
|
||||
requires:
|
||||
- build
|
||||
filters:
|
||||
|
@ -165,12 +172,21 @@ workflows:
|
|||
- l10n_develop
|
||||
- imgbot
|
||||
- patch-autogen
|
||||
# - docker:
|
||||
# filters:
|
||||
# branches:
|
||||
# ignore: master
|
||||
docker:
|
||||
jobs:
|
||||
- hold:
|
||||
type: approval
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
- docker:
|
||||
with_deploy: "true"
|
||||
requires:
|
||||
- hold
|
||||
filters:
|
||||
branches:
|
||||
ignore: master
|
||||
- docker:
|
||||
with_deploy: true
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
|
|
Loading…
Reference in a new issue