Debian Codegraph @

scripts/jsdoctest.yml

raw
1 variables:
2
3 Major: '4'
4 Minor: '9'
5 Patch: '2'
6 NightlyVersion: $(Major).$(Minor).$(Patch).$(Build.BuildId)-$(Build.DefinitionName)
7
8 stages:
9 - stage: Build
10 jobs:
11
12 - job: UbuntuDoc
13 displayName: "Ubuntu Doc build"
14 pool:
15 vmImage: "ubuntu-latest"
16 steps:
17 # TODO setup emscripten with no-install, then run
18 - script: npm --prefix=src/api/js ci
19 - script: npm --prefix=src/api/js run build:ts
20
21 - script: sudo apt-get install ocaml opam libgmp-dev
22 - script: opam init -y
23 - script: eval `opam config env`; opam install zarith ocamlfind -y
24 - script: eval `opam config env`; python scripts/mk_make.py --ml
25 - script: sudo apt-get install doxygen
26 - script: sudo apt-get install graphviz
27 - script: |
28 set -e
29 cd build
30 eval `opam config env`
31 make -j3
32 make -j3 examples
33 make -j3 test-z3
34 cd ..
35 - script: |
36 set -e
37 eval `opam config env`
38 cd doc
39 python mk_api_doc.py --mld --z3py-package-path=../build/python/z3 --js
40 mkdir api/html/ml
41 ocamldoc -html -d api/html/ml -sort -hide Z3 -I $( ocamlfind query zarith ) -I ../build/api/ml ../build/api/ml/z3enums.mli ../build/api/ml/z3.mli
42 cd ..
43 - script: zip -r z3doc.zip doc/api
44 - script: cp z3doc.zip $(Build.ArtifactStagingDirectory)/.
45 - task: PublishPipelineArtifact@0
46 inputs:
47 artifactName: 'UbuntuDoc'
48 targetPath: $(Build.ArtifactStagingDirectory)
49