Monty Taylor 14687581e0 Remove old files from the requirements list
global-requirements.txt is the only file that needs to be processed by
the first part of this job now. Stop trying to read the files that we're not
going to sync from. dev-requirements.txt also gets processed, but later.

Change-Id: I29e8c381725b7e0b70bad7312ab1f05189cb3fc4
2013-09-12 14:55:11 -05:00

25 lines
866 B
YAML

- job:
name: gate-requirements-install
node: precise
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
source /usr/local/jenkins/slave_scripts/select-mirror.sh openstack requirements
virtualenv --clear .venv
FILE="global-requirements.txt"
# Ignore lines beginning with https?:// just as the mirror script does.
sed -e '/^https\?:\/\//d' $FILE > $FILE.clean
# Run the same basic pip command that the mirror script runs.
.venv/bin/pip install -M -U --exists-action=w -r $FILE.clean
if [ -e dev-requirements.txt ] ; then
.venv/bin/pip install -M -U --exists-action=w -r dev-requirements.txt
fi
# Print all installed stuff to demonstrate versions
.venv/bin/pip freeze
publishers:
- console-log