CI/opam: two steps compilation
This commit is contained in:
parent
7929027793
commit
1cc7dd46fe
@ -59,6 +59,7 @@ build_deps:
|
|||||||
- if [ "${CI_PROJECT_PATH}" = "tezos/tezos" ] ; then
|
- if [ "${CI_PROJECT_PATH}" = "tezos/tezos" ] ; then
|
||||||
./scripts/apply_patch.sh "${CI_COMMIT_REF_NAME}" ;
|
./scripts/apply_patch.sh "${CI_COMMIT_REF_NAME}" ;
|
||||||
fi
|
fi
|
||||||
|
- opam list
|
||||||
tags:
|
tags:
|
||||||
- gitlab-org
|
- gitlab-org
|
||||||
|
|
||||||
@ -84,8 +85,6 @@ build:
|
|||||||
stage: test
|
stage: test
|
||||||
except:
|
except:
|
||||||
- master@tezos/tezos
|
- master@tezos/tezos
|
||||||
before_script:
|
|
||||||
- find _build -type f -exec touch {} \;
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
@ -201,8 +200,8 @@ test:proto:sandbox:
|
|||||||
script:
|
script:
|
||||||
- ./scripts/opam-pin.sh
|
- ./scripts/opam-pin.sh
|
||||||
- opam depext --yes ${package}
|
- opam depext --yes ${package}
|
||||||
- opam install --yes --deps-only ${package}
|
- opam install --yes ${package}
|
||||||
- opam install --yes --with-test ${package}
|
- opam reinstall --yes --with-test ${package}
|
||||||
tags:
|
tags:
|
||||||
- gitlab-org
|
- gitlab-org
|
||||||
|
|
||||||
|
15
Makefile
15
Makefile
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
DEV ?= --dev
|
DEV ?= --dev
|
||||||
|
PACKAGES:=$(patsubst %.opam,%,$(notdir $(shell find -name *.opam)))
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@jbuilder build ${DEV} \
|
@jbuilder build ${DEV} \
|
||||||
@ -12,9 +13,17 @@ all:
|
|||||||
@cp _build/default/src/bin_client/admin_main.exe tezos-admin-client
|
@cp _build/default/src/bin_client/admin_main.exe tezos-admin-client
|
||||||
@cp _build/default/src/lib_protocol_compiler/main_native.exe tezos-protocol-compiler
|
@cp _build/default/src/lib_protocol_compiler/main_native.exe tezos-protocol-compiler
|
||||||
|
|
||||||
tezos-%.pkg:
|
all.pkg:
|
||||||
@jbuilder build --dev $(patsubst %.opam,%.install, \
|
@jbuilder build ${DEV} \
|
||||||
$(shell find -name tezos-$*.opam))
|
$(patsubst %.opam,%.install, $(shell find -name \*.opam))
|
||||||
|
|
||||||
|
$(addsuffix .pkg,${PACKAGES}): %.pkg:
|
||||||
|
@jbuilder build ${DEV} \
|
||||||
|
$(patsubst %.opam,%.install, $(shell find -name $*.opam))
|
||||||
|
|
||||||
|
$(addsuffix .test,${PACKAGES}): %.test:
|
||||||
|
@jbuilder build ${DEV} \
|
||||||
|
@$(patsubst %/$*.opam,%,$(shell find -name $*.opam))/runtest
|
||||||
|
|
||||||
doc-html: all
|
doc-html: all
|
||||||
@jbuilder build @doc ${DEV}
|
@jbuilder build @doc ${DEV}
|
||||||
|
Loading…
Reference in New Issue
Block a user