Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minikube #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,30 @@ commands:
$Content = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($Env:KUBECONFIG_CONTENT))
$Content | Out-File $HOME/.kube/config
kubectl version
minikube_install:
description: Installs the minikube executable onto the system.
parameters:
version:
default: v0.30.0
type: string
steps:
- run:
command: curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/<<
parameters.version >>/minikube-linux-amd64 && chmod +x minikube && sudo
mv minikube /usr/local/bin/
name: Install Minikube Executable
minikube_start:
description: Starts the minikube service.
parameters:
version:
default: v1.10.0
type: string
steps:
- minikube_install
- run:
command: sudo -E minikube start --vm-driver=none --cpus 2 --memory 2048 --kubernetes-version=<<
parameters.version >> &> $HOME/minikube.log 2>&1 < /dev/null
name: Start Minikube Cluster

jobs:
test-linux:
Expand All @@ -232,11 +256,18 @@ jobs:
exit 1
fi
# - run: ksync init
- run: go test -v ./...
test-linux-minikube:
machine: true
resource_class: large # 4 vCPUs
steps:
- checkout
- install_deps_linux
- minikube_start
- run:
name: MongoDB
command: |
docker run --name mongo -p 27017:27017 -d mongo:bionic
- run: go test -v ./...
- run:
name: Code coverage
command: |
Expand Down Expand Up @@ -300,6 +331,10 @@ workflows:
filters:
tags:
only: /^v.*/
- test-linux-minikube:
filters:
tags:
only: /^v.*/
- test-darwin:
filters:
tags:
Expand Down