mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Add new file
This commit is contained in:
parent
9946e672c1
commit
0e551109f7
1 changed files with 19 additions and 0 deletions
19
ci-test.sh
Normal file
19
ci-test.sh
Normal file
|
@ -0,0 +1,19 @@
|
|||
alias git='"true" ' &&
|
||||
echo "Installing depencies..." &&
|
||||
apt update -qq &&
|
||||
apt install -qq -y fakeroot curl &&
|
||||
echo "Building Debian package..." &&
|
||||
mkdir /tmp/simpsh-httpd &&
|
||||
mv ./* /tmp/simpsh-httpd/ &&
|
||||
export HOME="/tmp/" &&
|
||||
cd &&
|
||||
chmod -R a+x ./simpsh-httpd &&
|
||||
./simpsh-httpd/mkdeb.sh &&
|
||||
apt install -y ./simpsh-httpd.deb &&
|
||||
echo "Starting simpsh-httpd..." &&
|
||||
mkdir -p /var/www/html &&
|
||||
simpsh-httpd -d &&
|
||||
echo "Creating test document..." &&
|
||||
(echo "This is a test!" > /var/www/html/testdocument.txt) &&
|
||||
testdoc="$(curl http://localhost/testdocument.txt)" &&
|
||||
(if [[ $testdoc == "This is a test!" ]]; then echo "Server returned expected document"; else echo "Something went wrong... Server returned: $testdoc"; exit 1; fi)
|
Loading…
Add table
Reference in a new issue