Blame run_ci_tests.sh

Aurélien Bompard bbae08
set -x
Aurélien Bompard bbae08
Pierre-Yves Chibon 5e6606
yum install -y python-virtualenv python34 python34-devel \
Aurélien Bompard c7bdaa
               gcc python-cryptography python34-cryptography \
Pierre-Yves Chibon 413e28
               libgit2 libgit2-devel python-pygit2 \
Pierre-Yves Chibon b8b020
               redis swig openssl-devel m2crypto \
Aurélien Bompard c7bdaa
               python2-fedmsg python34-fedmsg-core fedmsg \
Pierre-Yves Chibon 084f28
               python-tox python-pip python34-pip \
Pierre-Yves Chibon 4434ea
               parallel zeromq-devel python-Cython
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 37394b
# Apparently newer requests has strong feeling about idna:
Pierre-Yves Chibon 37394b
# https://github.com/requests/requests/commit/991e8b76b7a9d21f698b24fa
Pierre-Yves Chibon a12cb2
# and only in py3 we're having a version that is too old (2.1)
Pierre-Yves Chibon a12cb2
pip3 install --upgrade "idna<2.8"
Pierre-Yves Chibon a12cb2
pip install --upgrade tox trollius
Pierre-Yves Chibon 4434ea
pip install --upgrade --force-reinstall pygments chardet
Pierre-Yves Chibon 9ce3f8
pip3 install "pygit2 <= `rpm -q libgit2 --queryformat='%{version}'`"
Pierre-Yves Chibon 084f28
parallel -v ::: \
Pierre-Yves Chibon 084f28
"tox --sitepackages -e 'py27-flask011-ci' -- -v --with-xcoverage --cover-erase --cover-package=pagure" \
Pierre-Yves Chibon 084f28
"tox --sitepackages -e 'py34-flask011-ci' -- -v --with-xcoverage --cover-erase --cover-package=pagure"
Pierre-Yves Chibon 084f28
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