Add build step to e2e tests

This commit is contained in:
stefanprodan
2019-08-06 22:13:19 +03:00
parent e0864b6e20
commit 182156d9b4
3 changed files with 22 additions and 11 deletions
+16 -8
View File
@@ -4,11 +4,20 @@ jobs:
machine: true
steps:
- checkout
- run: e2e/bootstrap.sh
- run: e2e/install.sh
- run: e2e/test.sh
- run:
name: Build podinfo container
command: e2e/build.sh
- run:
name: Start Kubernetes Kind cluster
command: e2e/bootstrap.sh
- run:
name: Install podinfo with Helm
command: e2e/install.sh
- run:
name: Run Helm tests
command: e2e/test.sh
build-container:
push-container:
docker:
- image: circleci/golang:1.12
working_directory: ~/build
@@ -78,17 +87,16 @@ workflows:
version: 2
build-test:
jobs:
- build-container
- e2e-kubernetes
release:
jobs:
- build-container:
- push-binary:
filters:
branches:
ignore: /.*/
tags:
ignore: /^chart.*/
- push-binary:
- push-container:
filters:
branches:
ignore: /.*/
@@ -96,7 +104,7 @@ workflows:
ignore: /^chart.*/
- push-helm-charts:
requires:
- build-container
- push-container
filters:
branches:
ignore: /.*/
Executable
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -o errexit
docker build -t test/podinfo:latest .
-3
View File
@@ -5,9 +5,6 @@ set -o errexit
REPO_ROOT=$(git rev-parse --show-toplevel)
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
echo ">>> Building container"
docker build -t test/podinfo:latest .
echo '>>> Loading image in Kind'
kind load docker-image test/podinfo:latest