add odoc to Ci
This commit is contained in:
parent
3999e46ac5
commit
b36f497f85
@ -12,13 +12,48 @@ 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:
|
||||||
- npm run version next
|
- npm run version next
|
||||||
- npm run build
|
- npm run build
|
||||||
after_script:
|
after_script:
|
||||||
- cp -r gitlab-pages/website/build/ligo public
|
- cp -r gitlab-pages/website/build/ligo public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
apt-get update -qq
|
||||||
apt-get -y install \
|
apt-get -y install \
|
||||||
libev-dev \
|
libev-dev \
|
||||||
perl \
|
perl \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
libgmp-dev \
|
libgmp-dev \
|
||||||
libhidapi-dev \
|
libhidapi-dev \
|
||||||
m4
|
m4
|
||||||
|
Loading…
Reference in New Issue
Block a user