-
Notifications
You must be signed in to change notification settings - Fork 322
/
Copy path.gitlab-ci.yml
46 lines (43 loc) · 1.33 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include:
- local: '.common-ci.yml'
- project: nvidia/container-infrastructure/aws-kube-ci
file: aws-kube-ci.yml
ref: 21.02.23
e2e_tests:
stage: e2e_tests
image: alpine
except:
variables:
- $CI_COMMIT_MESSAGE =~ /skip-end-to-end-tests/
- $SKIP_TESTS =~ /^y/
- $CI_PIPELINE_SOURCE == "schedule"
script:
- source .VERSION_INFO
- source aws-kube-ci/hostname
- apk add --no-cache openssh-client rsync
- rsync -e "ssh -i aws-kube-ci/key -o StrictHostKeyChecking=no" -av --exclude="vendor/" "${CI_PROJECT_DIR}" "${instance_hostname}:~/"
- rc=0
- (ssh -i aws-kube-ci/key -o StrictHostKeyChecking=no ${instance_hostname} "cd ~/gpu-operator/tests && ./ci-run-e2e.sh ${CI_REGISTRY_IMAGE} ${VERSION}") || rc=$?
- rsync -e "ssh -i aws-kube-ci/key" -av "${instance_hostname}:/tmp/logs/" logs
- exit $rc
dependencies:
- aws_kube_setup
- versioning
artifacts:
when: always
paths:
- logs/
aws_kube_setup:
extends: .aws_kube_setup
except:
variables:
- $CI_COMMIT_MESSAGE =~ /skip-end-to-end-tests/
- $SKIP_TESTS =~ /^y/
- $CI_PIPELINE_SOURCE == "schedule"
aws_kube_clean:
extends: .aws_kube_clean
except:
variables:
- $CI_COMMIT_MESSAGE =~ /skip-end-to-end-tests/
- $SKIP_TESTS =~ /^y/
- $CI_PIPELINE_SOURCE == "schedule"