forked from vespa-engine/system-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
screwdriver.yaml
61 lines (59 loc) · 1.98 KB
/
screwdriver.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
shared:
image: docker.io/vespaengine/vespa-build-almalinux-8:latest
annotations:
screwdriver.cd/restrictPR: fork
settings:
email:
addresses: [[email protected]]
statuses: [SUCCESS, FAILURE]
environment:
USER_SHELL_BIN: bash
jobs:
test-system-tests:
requires: [~pr, ~commit]
environment:
USER_SHELL_BIN: bash
RUBYLIB: $SD_SOURCE_DIR/lib
steps:
- require-test-files: |
export VESPA_FACTORY_NO_AUTORUNNER=1
for FILE in $(find tests -name "*.rb"); do
ruby -I lib -I tests -I . -e "require '$FILE'"
done
- run-unit-tests: |
set -e
cd ${RUBYLIB}
ruby test/testrunner.rb
exit $?
systemtest-base-el8:
requires: [~pr, ~commit]
sourcePaths: ["docker/"]
annotations:
screwdriver.cd/cpu: HIGH
screwdriver.cd/ram: HIGH
screwdriver.cd/timeout: 30
screwdriver.cd/buildPeriodically: H 4 * * 1
screwdriver.cd/dockerEnabled: true
screwdriver.cd/dockerCpu: TURBO
screwdriver.cd/dockerRam: TURBO
secrets:
- DOCKER_HUB_DEPLOY_KEY
steps:
- install-docker-cli: |
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf -y install docker-ce docker-ce-cli containerd.io
docker system info
- build: |
cd docker
docker build --file Dockerfile.base \
--build-arg BASE_IMAGE=docker.io/almalinux:8 \
--tag docker.io/vespaengine/vespa-systemtest-base-el8:latest .
- publish: |
if [[ -z "$SD_PULL_REQUEST" ]]; then
OPT_STATE="$(set +o)"
set +x
docker login --username aressem --password "$DOCKER_HUB_DEPLOY_KEY"
eval "$OPT_STATE"
docker push docker.io/vespaengine/vespa-systemtest-base-el8:latest
fi