@@ -7,10 +7,12 @@ WORKDIR /ligo
77RUN apk update && apk upgrade && apk --no-cache add \
88 build-base snappy-dev alpine-sdk \
99 bash ncurses-dev xz m4 git pkgconfig findutils rsync \
10- gmp-dev libev-dev libressl-dev linux-headers pcre-dev perl zlib-dev hidapi-dev \
11- libffi-dev \
12- cargo py3-jsonschema cmake opam
10+ gmp-dev libev-dev linux-headers pcre-dev perl zlib-dev hidapi-dev \
11+ libffi-dev py3-jsonschema cmake opam rustup \
12+ openssl openssl-dev openssl-libs-static
1313
14+ RUN rustup-init --profile minimal --default-toolchain 1.86.0 -y
15+ ENV PATH="/root/.cargo/bin:${PATH}"
1416RUN opam init --disable-sandboxing --bare
1517
1618# make bls12-381 build ???
@@ -26,15 +28,16 @@ RUN opam var --global os-distribution=arch
2628RUN opam update \
2729 && sh scripts/setup_switch.sh
2830COPY scripts/install_opam_deps.sh /ligo/scripts/install_opam_deps.sh
29- COPY vendors /ligo/vendors
30- COPY vendored-dune /ligo/vendored-dune
3131COPY ligo.opam /ligo
3232COPY ligo.opam.locked /ligo
3333
34+ COPY vendors /ligo/vendors
35+ COPY vendored-dune /ligo/vendored-dune
36+ COPY gitlab-pages /ligo/gitlab-pages
37+
3438# install all transitive deps
3539RUN opam update && sh scripts/install_opam_deps.sh
3640
37- COPY gitlab-pages /ligo/gitlab-pages
3841# Install LIGO
3942COPY dune dune-project /ligo/
4043COPY configurator /ligo/configurator
@@ -55,27 +58,26 @@ COPY tools/ligo-syntax-highlighting ligo-syntax-highlighting
5558ARG ligo_version
5659# ## TAG_REMOVE_IN_CASE_OF_MR ###
5760
61+ # Generate syntax highlighting files
62+ RUN mkdir highlighting highlighting/vim highlighting/emacs highlighting/vscode highlighting/textmate \
63+ && opam exec -- dune exec ligo-syntax-highlighting/LigoSyntaxHighlighting.exe -- --vim=highlighting/vim --emacs=highlighting/emacs --vscode=highlighting/vscode --textmate=highlighting/textmate
64+
65+ COPY changelog.txt /ligo/changelog.txt
66+ ENV CHANGELOG_PATH=/ligo/changelog.txt
67+
5868# Tests
5969# #################
6070# Code between TAG_REMOVE_IN_CASE_OF_SKIPTEST will be removed in case of skip test.
6171# Useful if the package is build but have already been tested
6272# #################
6373# ## TAG_REMOVE_IN_CASE_OF_SKIPTEST ###
6474# Run tests
65- RUN opam exec -- dune runtest -j 5 --profile static --no-buffer \
75+ RUN opam exec -- dune runtest --profile static --no-buffer || true
76+ RUN opam exec -- dune runtest -j 1 --profile static --no-buffer \
6677# Coverage (only the overall)
67- && find . -name '*.coverage' | xargs rm -f \
68- && opam exec -- dune clean
78+ && find . -name '*.coverage' | xargs rm -f
6979# ## TAG_REMOVE_IN_CASE_OF_SKIPTEST ###
7080
71- # Generate syntax highlighting files
72- RUN mkdir highlighting highlighting/vim highlighting/emacs highlighting/vscode highlighting/textmate \
73- && opam exec -- dune exec ligo-syntax-highlighting/LigoSyntaxHighlighting.exe -- --vim=highlighting/vim --emacs=highlighting/emacs --vscode=highlighting/vscode --textmate=highlighting/textmate
74-
75- COPY changelog.txt /ligo/changelog.txt
76- ENV CHANGELOG_PATH=/ligo/changelog.txt
77-
78-
7981RUN LIGO_VERSION=$ligo_version opam exec -- dune build -p ligo --profile static \
8082 # Copy binary now to avoid problems with BISECT_ENABLE below
8183 && cp /ligo/_build/install/default/bin/ligo /tmp/ligo \
0 commit comments