pypiserver/bin/test_standalone.sh
ankostis on tokoti 133afe28f7 Rework standalone generation using ZIP.
+ Standalone executable based on wheel.
+ Properly use `pkg_resources` so reading `welcome-msg` file
  works even from within zip.
  + Mark `zip_safe=True` in setup.py.
+ Delete forgotten distutils startup script.
+ Build standalone before installing anything else,
  to check if any deps are missing.
+ Restore py25 in Travis.
2015-09-17 01:13:37 +02:00

17 lines
366 B
Bash
Executable File

#! /bin/sh
## Test standalone generation & execution.
##
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.