Ettore Di Giacinto
265e2371b4
Add ArtifactNode to test, now we get the gen Dockerfile in the diff
2020-12-12 16:04:54 +01:00
Ettore Di Giacinto
797a34ba49
Reuse same dockerfile gen logic between prelude and steps
...
As now we build only when necessary, we need to make sure the images are
built similarly. The discrepancies between the two are less now, and
they can share the same logic.
This fixes a regresion where when no prelude is defined, the build
context isn't copied over
2020-12-12 11:16:34 +01:00
Ettore Di Giacinto
b5990b5333
Generate changes from CompilerBackendOptions and pass by image name so img can unpack images
2020-12-09 00:27:37 +01:00
Ettore Di Giacinto
44d33eceba
Set workdir also on step image
...
Otherwise with DOCKER_SQUASH=true it wouldn't be coherent on where to
find the package files
2020-11-28 12:07:07 +01:00
Ettore Di Giacinto
d92ee9e1d9
Add preliminar support for excludes
2020-11-08 15:35:24 +01:00
Daniele Rondina
d219a2e0fb
Run travis task with/without buildkit
2020-11-07 11:41:44 +01:00
Daniele Rondina
6819a28f07
Add support to DOCKER_BUILDKIT on test
2020-11-07 11:37:58 +01:00
Daniele Rondina
24eb6eaef5
Fix test with docker buildkit
2020-11-07 11:37:58 +01:00
Ettore Di Giacinto
95e640c9d0
Make solver type switchable
2020-10-29 16:32:13 +01:00
Ettore Di Giacinto
bcc6ce19ea
Move compiler options to its own struct
...
Also add Clean attribute, to handle a future build clean method
2020-01-05 14:32:26 +01:00
Ettore Di Giacinto
5155681513
Fixup tests
...
Refers to #33
2019-12-30 16:35:12 +01:00
Ettore Di Giacinto
fea6061f89
Add hash test to artifact_test
...
Refers to #28
2019-12-29 14:14:03 +01:00
Ettore Di Giacinto
58169770e1
Add test for FindPackageCandidate
...
Adapt tests for env
2019-12-01 23:24:42 +01:00
Ettore Di Giacinto
ebf818ff08
Add Environment to compilespec #24
...
Now compilespecs can define envs and have PACKAGE_NAME, PACKAGE_VERSION and PACKAGE_CATEGORY injected
2019-12-01 21:20:16 +01:00
Ettore Di Giacinto
fa46601638
Adapt compiler and installer to Tree removal
2019-11-29 19:01:49 +01:00
Ettore Di Giacinto
b2060c82e3
Make DB Switchable
...
Fixes races conditions and make the DB Switchable. Also prepare inside
the CompilationSpec the tree of the deps to be built, and parallelize
only the building jobs.
Closes #7
Signed-off-by: Ettore Di Giacinto <mudler@gentoo.org>
2019-11-16 13:26:33 +01:00
Ettore Di Giacinto
0eef18d75c
Add 'includes' to CompileSpec
...
The includes field is an array of regexp used to indicate what include
inside the packag. It can be omitted to default behavior (all)
2019-11-14 17:43:47 +01:00
Ettore Di Giacinto
f634493dc0
Add tests for package compilation with images
2019-11-10 10:49:24 +01:00