projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Default config: Use extended nickname format
[akkoma]
/
.gitlab-ci.yml
diff --git
a/.gitlab-ci.yml
b/.gitlab-ci.yml
index f8711f299e032b8ce6b3a6f386e0a1772d388043..0f8a0659b7ae9c10aca62eb52d44fb990fd646ce 100644
(file)
--- a/
.gitlab-ci.yml
+++ b/
.gitlab-ci.yml
@@
-15,6
+15,7
@@
cache:
stages:
- build
- test
stages:
- build
- test
+ - benchmark
- deploy
- release
- deploy
- release
@@
-28,21
+29,19
@@
build:
- mix deps.get
- mix compile --force
- mix deps.get
- mix compile --force
-docs-build:
- stage: build
- only:
- - master@pleroma/pleroma
- - develop@pleroma/pleroma
+benchmark:
+ stage: benchmark
variables:
variables:
- MIX_ENV: dev
+ MIX_ENV: benchmark
+ services:
+ - name: lainsoykaf/postgres-with-rum
+ alias: postgres
+ command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
script:
- mix deps.get
script:
- mix deps.get
- - mix compile
- - mix docs
- artifacts:
- paths:
- - priv/static/doc
-
+ - mix ecto.create
+ - mix ecto.migrate
+ - mix pleroma.load_testing
unit-testing:
stage: test
unit-testing:
stage: test
@@
-84,19
+83,14
@@
analysis:
docs-deploy:
stage: deploy
docs-deploy:
stage: deploy
- image: alpine:
3.9
+ image: alpine:
latest
only:
only:
- -
master
@pleroma/pleroma
+ -
stable
@pleroma/pleroma
- develop@pleroma/pleroma
before_script:
- develop@pleroma/pleroma
before_script:
- - apk update && apk add openssh-client rsync
+ - apk add curl
script:
script:
- - mkdir -p ~/.ssh
- - echo "${SSH_HOST_KEY}" > ~/.ssh/known_hosts
- - eval $(ssh-agent -s)
- - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- - rsync -hrvz --delete -e "ssh -p ${SSH_PORT}" priv/static/doc/ "${SSH_USER_HOST_LOCATION}/${CI_COMMIT_REF_NAME}"
-
+ - curl -X POST -F"token=$DOCS_PIPELINE_TRIGGER" -F'ref=master' -F"variables[BRANCH]=$CI_COMMIT_REF_NAME" https://git.pleroma.social/api/v4/projects/673/trigger/pipeline
review_app:
image: alpine:3.9
stage: deploy
review_app:
image: alpine:3.9
stage: deploy
@@
-148,8
+142,10
@@
amd64:
# TODO: Replace with upstream image when 1.9.0 comes out
image: rinpatch/elixir:1.9.0-rc.0
only: &release-only
# TODO: Replace with upstream image when 1.9.0 comes out
image: rinpatch/elixir:1.9.0-rc.0
only: &release-only
- -
master
@pleroma/pleroma
+ -
stable
@pleroma/pleroma
- develop@pleroma/pleroma
- develop@pleroma/pleroma
+ - /^maint/.*$/@pleroma/pleroma
+ - /^release/.*$/@pleroma/pleroma
artifacts: &release-artifacts
name: "pleroma-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
paths:
artifacts: &release-artifacts
name: "pleroma-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA-$CI_JOB_NAME"
paths: