File tree Expand file tree Collapse file tree
2.7/test/virtualenv-uwsgi-test-app
3.4/test/virtualenv-uwsgi-test-app
3.5/test/virtualenv-uwsgi-test-app Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ UPGRADE_PIP_TO_LATEST=1
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # First test virtualenv environment and pip upgrade
4+
5+ echo " Testing that the virtual environment's Python is being used ..."
6+ if [ " $( which python) " != " /opt/app-root/bin/python" ]; then
7+ echo " ERROR: Initialization of the virtual environment failed."
8+ exit 1
9+ fi
10+
11+ echo " Testing UPGRADE_PIP_TO_LATEST=1 (set in .s2i/environment) ..."
12+ pip_major_version=$( pip --version | cut -d" " -f2 | cut -d" ." -f1)
13+ if [ -z " $pip_major_version " ] || [ " $pip_major_version " -lt " 9" ]; then
14+ echo " ERROR: Failed to upgrade pip to version 9 or later."
15+ exit 1
16+ fi
17+
18+
319exec uwsgi \
420 --http-socket :8080 \
521 --die-on-term \
Original file line number Diff line number Diff line change 1+ UPGRADE_PIP_TO_LATEST=1
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # First test virtualenv environment and pip upgrade
4+
5+ echo " Testing that the virtual environment's Python is being used ..."
6+ if [ " $( which python) " != " /opt/app-root/bin/python" ]; then
7+ echo " ERROR: Initialization of the virtual environment failed."
8+ exit 1
9+ fi
10+
11+ echo " Testing UPGRADE_PIP_TO_LATEST=1 (set in .s2i/environment) ..."
12+ pip_major_version=$( pip --version | cut -d" " -f2 | cut -d" ." -f1)
13+ if [ -z " $pip_major_version " ] || [ " $pip_major_version " -lt " 9" ]; then
14+ echo " ERROR: Failed to upgrade pip to version 9 or later."
15+ exit 1
16+ fi
17+
18+
319exec uwsgi \
420 --http-socket :8080 \
521 --die-on-term \
Original file line number Diff line number Diff line change 1+ UPGRADE_PIP_TO_LATEST=1
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # First test virtualenv environment and pip upgrade
4+
5+ echo " Testing that the virtual environment's Python is being used ..."
6+ if [ " $( which python) " != " /opt/app-root/bin/python" ]; then
7+ echo " ERROR: Initialization of the virtual environment failed."
8+ exit 1
9+ fi
10+
11+ echo " Testing UPGRADE_PIP_TO_LATEST=1 (set in .s2i/environment) ..."
12+ pip_major_version=$( pip --version | cut -d" " -f2 | cut -d" ." -f1)
13+ if [ -z " $pip_major_version " ] || [ " $pip_major_version " -lt " 9" ]; then
14+ echo " ERROR: Failed to upgrade pip to version 9 or later."
15+ exit 1
16+ fi
17+
18+
19+ # Now test the uwsgi server
20+
321exec uwsgi \
422 --http-socket :8080 \
523 --die-on-term \
You can’t perform that action at this time.
0 commit comments