featurebase/.gitlab/batch-ci.yml
Seebs e4177d24d6 improve attempt to save pilosa logs after IDK/batch test failures
The save-%-logs and shutdown targets live in the IDK directory,
so we need to change directory to run those targets. (Same for
the batch directory.)
2022-11-01 11:47:17 -05:00

29 lines
705 B
YAML

run go tests batch:
extends:
- .setup_ssh
variables:
USERNAME: fb-idk-access
PROJECT: batch_${CI_CONCURRENT_ID}
GIT_STRATEGY: clone
stage: test
retry: 1
script:
- echo "Running test-all"
- cd ./batch/
- echo $PROJECT
- echo $DOCKER_PASSWORD | docker login registry.gitlab.com --username "$USERNAME" --password-stdin
- BRANCH_NAME=${CI_COMMIT_REF_SLUG} make test-all
after_script:
- cd ./batch/
- make save-pilosa-logs
- make shutdown
artifacts:
paths:
- ./batch/testdata/*_coverage.out
- ./batch/testdata/*_report.out
- ./batch/testdata/*_logs.txt
tags:
- shell
- aws
needs:
- job: build amd container fb