mirror of
https://github.com/fumiama/terasu-cloudflared.git
synced 2026-06-05 00:50:24 +08:00
## Summary This commit migrates the cloduflared ci pipelines, that built, tested and component tested the linux binaries to gitlab ci. The only thing that is remaining to move from teamcity to gitlab are now the release pipelines that run on master. Relates to TUN-9800
26 lines
688 B
Bash
Executable File
26 lines
688 B
Bash
Executable File
#!/bin/bash
|
|
set -e -o pipefail
|
|
|
|
# Fetch cloudflared from the artifacts folder
|
|
mv ./artifacts/cloudflared ./cloudflared
|
|
|
|
python3 -m venv env
|
|
. env/bin/activate
|
|
|
|
pip install --upgrade -r component-tests/requirements.txt
|
|
|
|
# Creates and routes a Named Tunnel for this build. Also constructs
|
|
# config file from env vars.
|
|
python3 component-tests/setup.py --type create
|
|
|
|
# Define the cleanup function
|
|
cleanup() {
|
|
# The Named Tunnel is deleted and its route unprovisioned here.
|
|
python3 component-tests/setup.py --type cleanup
|
|
}
|
|
|
|
# The trap will call the cleanup function on script exit
|
|
trap cleanup EXIT
|
|
|
|
pytest component-tests -o log_cli=true --log-cli-level=INFO --junit-xml=report.xml
|