You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
437 B
Bash
13 lines
437 B
Bash
#!/bin/bash
|
|
|
|
function get-and-unzip-website-data() {
|
|
filename="website.zip"
|
|
curl -H "Authorization: token $AUTHTOKEN" -o $SOURCEDIR/$filename $GITREPOURL
|
|
unzip $SOURCEDIR/$filename -d $BUILDDIR
|
|
}
|
|
|
|
function build-and-extract-website() {
|
|
(cd $BUILDDIR; dir=$(ls); cd $dir; timeout -s SIGKILL 35s lein ring server-headless;)
|
|
# websiteartifactname=$(ls target/ | grep -Eo "*.+\.war"); unzip target/$websiteartifactname
|
|
}
|