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
|
||||
./scripts/apply_patch.sh "${CI_COMMIT_REF_NAME}" ;
|
||||
fi
|
||||
- opam list
|
||||
tags:
|
||||
- gitlab-org
|
||||
|
||||
@ -84,8 +85,6 @@ build:
|
||||
stage: test
|
||||
except:
|
||||
- master@tezos/tezos
|
||||
before_script:
|
||||
- find _build -type f -exec touch {} \;
|
||||
dependencies:
|
||||
- build
|
||||
|
||||
@ -201,8 +200,8 @@ test:proto:sandbox:
|
||||
script:
|
||||
- ./scripts/opam-pin.sh
|
||||
- opam depext --yes ${package}
|
||||
- opam install --yes --deps-only ${package}
|
||||
- opam install --yes --with-test ${package}
|
||||
- opam install --yes ${package}
|
||||
- opam reinstall --yes --with-test ${package}
|
||||
tags:
|
||||
- gitlab-org
|
||||
|
||||
|
15
Makefile
15
Makefile
@ -1,5 +1,6 @@
|
||||
|
||||
DEV ?= --dev
|
||||
PACKAGES:=$(patsubst %.opam,%,$(notdir $(shell find -name *.opam)))
|
||||
|
||||
all:
|
||||
@jbuilder build ${DEV} \
|
||||
@ -12,9 +13,17 @@ all:
|
||||
@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
|
||||
|
||||
tezos-%.pkg:
|
||||
@jbuilder build --dev $(patsubst %.opam,%.install, \
|
||||
$(shell find -name tezos-$*.opam))
|
||||
all.pkg:
|
||||
@jbuilder build ${DEV} \
|
||||
$(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
|
||||
@jbuilder build @doc ${DEV}
|
||||
|
Loading…
Reference in New Issue
Block a user