Blame run_ci_tests.sh

Aurélien Bompard c7bdaa
yum install -y python-virtualenv python34 \
Aurélien Bompard c7bdaa
               gcc python-cryptography python34-cryptography \
Pierre-Yves Chibon 8f9296
               libgit2 python-pygit2 \
Pierre-Yves Chibon b8b020
               redis swig openssl-devel m2crypto \
Aurélien Bompard c7bdaa
               python2-fedmsg python34-fedmsg-core fedmsg \
Aurélien Bompard c7bdaa
               python-tox
Pierre-Yves Chibon 8f9296
Pierre-Yves Chibon 8f9296
sysctl -w fs.file-max=2048
Pierre-Yves Chibon 8f9296
Pierre-Yves Chibon a403cf
set -e
Pierre-Yves Chibon a403cf
Brian Stinson 00ce74
echo "============== ENVIRONMENT ============="
Brian Stinson 00ce74
/usr/bin/env
Brian Stinson 00ce74
echo "============== END ENVIRONMENT ============="
Brian Stinson 00ce74
Pierre-Yves Chibon 781323
if [ -n "$REPO" -a -n "$BRANCH" ]; then
Pierre-Yves Chibon 781323
git remote rm proposed || true
Pierre-Yves Chibon 781323
git gc --auto
Pierre-Yves Chibon 781323
git remote add proposed "$REPO"
Pierre-Yves Chibon 781323
git fetch proposed
Pierre-Yves Chibon 781323
git checkout origin/master
Pierre-Yves Chibon 781323
git config --global user.email "you@example.com"
Pierre-Yves Chibon 781323
git config --global user.name "Your Name"
Pierre-Yves Chibon 781323
git merge --no-ff "proposed/$BRANCH" -m "Merge PR"
Pierre-Yves Chibon 9ee9ee
Pierre-Yves Chibon 9ee9ee
echo "Running tests for branch $BRANCH of repo $REPO"
Pierre-Yves Chibon b83373
echo "Last commits:"
Pierre-Yves Chibon b83373
git log -2
Pierre-Yves Chibon 781323
fi
Pierre-Yves Chibon 781323
Pierre-Yves Chibon 781323
Aurélien Bompard c7bdaa
#virtualenv pagureenv --system-site-packages
Aurélien Bompard c7bdaa
#source pagureenv/bin/activate
Aurélien Bompard c7bdaa
#
Aurélien Bompard c7bdaa
#pip install pip --upgrade
Aurélien Bompard c7bdaa
## Needed within the venv
Aurélien Bompard c7bdaa
#pip install nose --upgrade
Aurélien Bompard c7bdaa
#pip install --upgrade --force-reinstall python-fedora 'setuptools>=17.1' pygments
Aurélien Bompard c7bdaa
#pip install -r tests_requirements.txt
Aurélien Bompard c7bdaa
#pip install -r requirements-ev.txt  # We have one test on the SSE server
Aurélien Bompard c7bdaa
#sed -i -e 's|pygit2 >= 0.20.1||' requirements.txt
Aurélien Bompard c7bdaa
#pip install -r requirements.txt
Aurélien Bompard c7bdaa
#pip install psycopg2
Aurélien Bompard c7bdaa
#pip install python-openid python-openid-teams python-openid-cla
Pierre-Yves Chibon 8f9296
Pierre-Yves Chibon 8f9296
#    pip uninstall cffi -y
Aurélien Bompard c7bdaa
#trap deactivate SIGINT SIGTERM EXIT
Pierre-Yves Chibon 781323
Pierre-Yves Chibon 51c7db
Aurélien Bompard c7bdaa
tox --sitepackages -e 'py{27,34}-flask011-ci' -- -v --with-xcoverage --cover-erase --cover-package=pagure
Pierre-Yves Chibon 781323
Pierre-Yves Chibon 4f6f98
set +e
Pierre-Yves Chibon 781323
Aurélien Bompard c7bdaa
tox --sitepackages -e pylint -- -f parseable | tee pylint.out
Aurélien Bompard c7bdaa
tox --sitepackages -e lint | tee flake8.out