mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-10-01 02:17:35 +00:00
Use DocFX in azure pipelines
This commit is contained in:
+34
-5
@@ -1,10 +1,14 @@
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
variables:
|
||||
GRADLE_USER_HOME: $(Pipeline.Workspace)/.gradle
|
||||
|
||||
steps:
|
||||
jobs:
|
||||
- job: game_build
|
||||
timeoutInMinutes: 15
|
||||
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
|
||||
steps:
|
||||
- task: CacheBeta@0
|
||||
inputs:
|
||||
key: $(Agent.OS)
|
||||
@@ -25,7 +29,7 @@ steps:
|
||||
gradleWrapperFile: 'gradlew'
|
||||
gradleOptions: '-Xmx3072m -Dorg.gradle.parallel=true -Dorg.gradle.caching=true -Dsonar.host.url=https://sonarcloud.io'
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '1.8'
|
||||
jdkVersionOption: '1.11'
|
||||
jdkArchitectureOption: 'x64'
|
||||
publishJUnitResults: true
|
||||
testResultsFiles: '**/TEST-*.xml'
|
||||
@@ -45,3 +49,28 @@ steps:
|
||||
env:
|
||||
CODECOV_TOKEN: $(CODECOV_TOKEN)
|
||||
displayName: "Codecov: publish coverage"
|
||||
|
||||
- job: docs_build
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
steps:
|
||||
- task: Gradle@2
|
||||
displayName: "Gradle: generate API docs"
|
||||
inputs:
|
||||
workingDirectory: ''
|
||||
gradleWrapperFile: 'gradlew'
|
||||
gradleOptions: '-Xmx3072m -Dorg.gradle.parallel=true -Dorg.gradle.caching=true -Dsonar.host.url=https://sonarcloud.io'
|
||||
javaHomeOption: 'JDKVersion'
|
||||
jdkVersionOption: '1.11'
|
||||
jdkArchitectureOption: 'x64'
|
||||
tasks: 'generateApiDocs'
|
||||
- task: CmdLine@1
|
||||
displayName: 'Chocolatey: install DocFX'
|
||||
inputs:
|
||||
filename: choco
|
||||
arguments: 'install docfx -y'
|
||||
- task: CmdLine@1
|
||||
displayName: 'DocFX: generate documentation'
|
||||
inputs:
|
||||
filename: docfx
|
||||
arguments: docs/docfx.json
|
||||
Reference in New Issue
Block a user