Skip to content
Snippets Groups Projects

CI tests

Merged Agate requested to merge ci into master
+ 25
2
stages:
stages:
 
- test
- deploy
- deploy
 
variables:
 
LATEST_VERSION_URL: https://docs.funkwhale.audio/latest.txt
 
 
test-install-script:
 
stage: test
 
image: debian:10
 
interruptible: true
 
before_script:
 
- apt-get update && apt-get install -y curl
 
- |
 
echo "Retrieving latest version from $LATEST_VERSION_URL"
 
funkwhale_version=$(curl -sfL $LATEST_VERSION_URL || true)
 
if [ -z "$funkwhale_version" ]; then
 
echo "Could not retrieve latest version!"
 
exit 1
 
fi
 
- echo "Latest version is $funkwhale_version"
 
- sed -i "0,/funkwhale_version_placeholder/{s/funkwhale_version_placeholder/$funkwhale_version/}" install.sh
 
script:
 
- |
 
set -x
 
printf 'test.deployment\ntest\ncontact@test.deployment\nY\nN\n\n\n\n\n\n' | bash install.sh
 
tags:
 
- docker
pages:
pages:
stage: deploy
stage: deploy
image: buildpack-deps
image: buildpack-deps
variables:
LATEST_VERSION_URL: https://docs.funkwhale.audio/latest.txt
script:
script:
- |
- |
echo "Retrieving latest version from $LATEST_VERSION_URL"
echo "Retrieving latest version from $LATEST_VERSION_URL"
Loading