1
0
mirror of https://github.com/pypiserver/pypiserver synced 2024-11-09 16:45:51 +01:00
pypiserver/bin/test_standalone.sh
2016-07-17 15:23:20 -05:00

19 lines
374 B
Bash
Executable File

#! /bin/sh
## Test standalone generation & execution.
##
set -x
my_dir="$(dirname "$0")"
cd $my_dir/..
git fetch origin standalone:origin/standalone
git branch --track standalone origin/standalone
./bin/commit-standalone.sh no_commit
./pypi-server-standalone.py . &
server_pid=$!
sleep 2
kill $server_pid && echo "Server killed nicely." # Kill fails if server failed.