Skip to content
Snippets Groups Projects
Commit f1d8ded1 authored by Tiger Watson's avatar Tiger Watson
Browse files

Merge branch 'brodock/yard-generation' into 'master'

Generate YARD documentation

See merge request !1213
parents 06697f5a 9d704c15
No related branches found
No related tags found
Loading
Pipeline #142638450 passed with warnings
.DS_Store
.idea
.yardoc
gdk-ce/**
gdk-ee/**
gitlab-development-kit/**
......
......@@ -2,6 +2,7 @@ stages:
- build
- test
- verify
- deploy
variables:
DEFAULT_IMAGE: registry.gitlab.com/gitlab-org/gitlab-build-images:ruby-2.6.5-golang-1.14-git-2.26-lfs-2.9-chrome-73.0-node-12.x-yarn-1.21-postgresql-10-graphicsmagick-1.3.34
......@@ -114,6 +115,20 @@ test:docs_lint:
script:
- PATH="${HOME}/go/bin:${PATH}" make lint
test:yard:
stage: test
script:
- bundle install --jobs 4 --path vendor/bundle
- bundle exec yardoc
cache:
key: "ruby-2.6-bundle"
paths:
- ./vendor/bundle
artifacts:
expire_in: 1 week
paths:
- yard/*
test:static-analysis:
extends: .rules:docs-code-changes
stage: test
......@@ -124,8 +139,12 @@ test:rspec:
extends: .rules:code-changes
stage: test
script:
- bundle install --jobs 4
- bundle install --jobs 4 --path vendor/bundle
- bundle exec rspec --format progress --format RspecJunitFormatter --out rspec.xml
cache:
key: "ruby-2.6-bundle"
paths:
- ./vendor/bundle
artifacts:
paths:
- rspec.xml
......@@ -202,3 +221,17 @@ verify:update:
extends: .verify_job
script:
- support/ci/verify_update
pages:
stage: deploy
needs:
- job: test:yard
artifacts: true
script:
- cp -r yard public
artifacts:
paths:
- public
only:
- master
yardoc -o yard --no-private --protected lib/**/*.rb gem/**/*.rb - README.md CONTRIBUTING.md LICENSE CHANGELOG.md
......@@ -4,3 +4,4 @@ gem 'gitlab-styles', '~> 3.2.0', require: false
gem 'rspec', '~> 3.9.0'
gem 'rspec_junit_formatter', '~> 0.4.0'
gem 'yard', '~> 0.9'
......@@ -62,6 +62,7 @@ GEM
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-display_width (1.6.1)
yard (0.9.24)
zeitwerk (2.3.0)
PLATFORMS
......@@ -71,6 +72,7 @@ DEPENDENCIES
gitlab-styles (~> 3.2.0)
rspec (~> 3.9.0)
rspec_junit_formatter (~> 0.4.0)
yard (~> 0.9)
BUNDLED WITH
1.17.2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment