add odoc to Ci

This commit is contained in:
Georges Dupéron 2019-06-07 11:56:03 +02:00
parent 3999e46ac5
commit b36f497f85
2 changed files with 38 additions and 2 deletions

View File

@ -12,6 +12,41 @@ stages:
stage: build_and_deploy_website stage: build_and_deploy_website
image: node:8 image: node:8
before_script: before_script:
- scripts/install_native_dependencies.sh
# TODO: these things are moved to scripts in other branches.
- wget https://github.com/ocaml/opam/releases/download/2.0.1/opam-2.0.1-x86_64-linux -O opam-2.0.1-x86_64-linux
- cp opam-2.0.1-x86_64-linux /usr/local/bin/opam
- chmod +x /usr/local/bin/opam
- export PATH="/usr/local/bin${PATH:+:}${PATH:-}"
# Initialise opam
- printf '' | opam init --bare
- eval $(opam config env)
# Create switch
- printf '' | opam switch create toto ocaml-base-compiler.4.06.1
- eval $(opam config env)
# Show versions and current switch
- echo "$PATH"
- opam --version
- printf '' | ocaml
- opam switch
# install deps for internal documentation
- opam install odoc
- vendors/opam-repository-tools/rewrite-local-opam-repository.sh
- opam repository add localrepo "file://$PWD/vendors/ligo-opam-repository-local-generated/"
- opam install -y --build-test --deps-only ./src/
- dune build -p ligo
# TODO: also try instead from time to time:
#- (cd ./src/; dune build -p ligo)
# build with odoc
- dune build @doc
- mv build/default/_doc/_html/ gitlab-pages/website/build/ligo/internal
# npm
- cd gitlab-pages/website - cd gitlab-pages/website
- npm install - npm install
script: script:

View File

@ -1,3 +1,4 @@
apt-get update -qq
apt-get -y install \ apt-get -y install \
libev-dev \ libev-dev \
perl \ perl \