Skip to content

Commit

Permalink
Add e2e base
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Jacobelli <[email protected]>
  • Loading branch information
jjacobelli committed Sep 9, 2019
1 parent 82f4b31 commit 7777fcd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ services:
variables:
IMAGE: $CI_REGISTRY_IMAGE:latest
BUILDER: $CI_REGISTRY_IMAGE:builder
TF_VAR_FILE: "$CI_PROJECT_DIR/tests/terraform.tfvars"

stages:
- gitlab
- unit
- build
- aws_kube_setup
- e2e_tests
- aws_kube_clean

gitlab-builder:
image: docker:stable
Expand All @@ -35,3 +39,17 @@ build-image:

- make image IMAGE=$IMAGE
- docker push $IMAGE

e2e_tests:
stage: e2e_tests
image: alpine
script:
- source aws-kube-ci/hostname
- apk add --no-cache openssh-client
- ssh -i aws-kube-ci/key -o StrictHostKeyChecking=no ${instance_hostname} echo
dependencies:
- aws_kube_setup

include:
project: nvidia/container-infrastructure/aws-kube-ci
file: aws-kube-ci.yml
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "aws-kube-ci"]
path = aws-kube-ci
url = https://gitlab.com/nvidia/container-infrastructure/aws-kube-ci.git
branch = master
1 change: 1 addition & 0 deletions aws-kube-ci
Submodule aws-kube-ci added at 82e3d4
2 changes: 2 additions & 0 deletions tests/terraform.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
instance_type = "g2.2xlarge"
project_name = "gpu-operator"

0 comments on commit 7777fcd

Please sign in to comment.