mirror of
https://github.com/swift-server/RediStack.git
synced 2026-06-02 07:37:33 +00:00
96 lines
2.2 KiB
YAML
96 lines
2.2 KiB
YAML
stages:
|
|
- Platform Tests
|
|
- Quality Checks
|
|
- Docs
|
|
|
|
pages:
|
|
stage: Docs
|
|
only:
|
|
- tags
|
|
image: norionomura/jazzy
|
|
tags:
|
|
- docker
|
|
variables:
|
|
MODULE_NAME: "RediStack"
|
|
REPO_URL: "https://gitlab.com/mordil/swift-redi-stack"
|
|
script: |
|
|
export VERSION=$(git describe --abbrev=0 --tags || echo "0.0.0")
|
|
swift build
|
|
sourcekitten doc --spm-module "$MODULE_NAME" > "./$MODULE_NAME.json"
|
|
jazzy --clean \
|
|
--author "Nathan Harris (Mordil)" \
|
|
--readme "./README.md" \
|
|
--author_url "https://www.mordil.info" \
|
|
--github_url "$REPO_URL" \
|
|
--github-file-prefix "$REPO_URL/blob/$VERSION" \
|
|
--root-url "https://mordil.gitlab.io/swift-redi-stack/" \
|
|
--module "$MODULE_NAME" \
|
|
--module-version "$VERSION" \
|
|
--theme docs/theme \
|
|
--sourcekitten-sourcefile "./$MODULE_NAME.json" \
|
|
--output "./public"
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
|
|
Code Climate:
|
|
only:
|
|
- branches
|
|
- tags
|
|
except:
|
|
- schedules
|
|
stage: Quality Checks
|
|
image: docker:stable
|
|
services:
|
|
- docker:stable-dind
|
|
variables:
|
|
DOCKER_DRIVER: overlay2
|
|
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/security-products/codequality:latest"
|
|
script:
|
|
- docker pull --quiet "$CODE_QUALITY_IMAGE"
|
|
- docker run
|
|
--env SOURCE_CODE="$PWD"
|
|
--volume "$PWD":/code
|
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
|
"$CODE_QUALITY_IMAGE" /code
|
|
artifacts:
|
|
expire_in: 1 week
|
|
reports:
|
|
codequality: gl-code-quality-report.json
|
|
|
|
Ubuntu Bionic:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/ubuntu-bionic.yml'
|
|
|
|
Ubuntu Xenial:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/ubuntu-xenial.yml'
|
|
|
|
Ubuntu Focal:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/ubuntu-focal.yml'
|
|
|
|
CentOS 7:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/centos-7.yml'
|
|
|
|
CentOS 8:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/centos-8.yml'
|
|
|
|
Amazon Linux 2:
|
|
stage: Platform Tests
|
|
trigger:
|
|
strategy: depend
|
|
include: '/.gitlab/ci/amazonlinux-2.yml'
|