mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 00:34:41 +00:00
Run travis task with/without buildkit
This commit is contained in:
@@ -6,6 +6,8 @@ go:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- "GO15VENDOREXPERIMENT=1"
|
- "GO15VENDOREXPERIMENT=1"
|
||||||
|
jobs:
|
||||||
|
- "DOCKER_BUILDKIT=0"
|
||||||
- "DOCKER_BUILDKIT=1"
|
- "DOCKER_BUILDKIT=1"
|
||||||
before_install:
|
before_install:
|
||||||
- sudo rm -rf /var/lib/apt/lists/*
|
- sudo rm -rf /var/lib/apt/lists/*
|
||||||
|
@@ -113,7 +113,7 @@ RUN echo bar > /test2`))
|
|||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
|
|
||||||
artifacts := []ArtifactNode{}
|
artifacts := []ArtifactNode{}
|
||||||
if os.Getenv("DOCKER_BUILDKIT") != "" {
|
if os.Getenv("DOCKER_BUILDKIT") == "1" {
|
||||||
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
|
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
|
||||||
}
|
}
|
||||||
artifacts = append(artifacts, ArtifactNode{Name: "/test", Size: 4})
|
artifacts = append(artifacts, ArtifactNode{Name: "/test", Size: 4})
|
||||||
|
@@ -102,7 +102,7 @@ RUN echo bar > /test2`))
|
|||||||
Expect(helpers.Exists(filepath.Join(tmpdir, "output2.tar"))).To(BeTrue())
|
Expect(helpers.Exists(filepath.Join(tmpdir, "output2.tar"))).To(BeTrue())
|
||||||
|
|
||||||
artifacts := []ArtifactNode{}
|
artifacts := []ArtifactNode{}
|
||||||
if os.Getenv("DOCKER_BUILDKIT") != "" {
|
if os.Getenv("DOCKER_BUILDKIT") == "1" {
|
||||||
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
|
artifacts = append(artifacts, ArtifactNode{Name: "/etc/resolv.conf", Size: 0})
|
||||||
}
|
}
|
||||||
artifacts = append(artifacts, ArtifactNode{Name: "/test", Size: 4})
|
artifacts = append(artifacts, ArtifactNode{Name: "/test", Size: 4})
|
||||||
|
Reference in New Issue
Block a user