|
Aurélien Bompard |
bbae08 |
set -x
|
|
Aurélien Bompard |
bbae08 |
|
|
Patrick Uiterwijk |
35efa6 |
echo "Installing Fedora Infra Tags repo"
|
|
Patrick Uiterwijk |
35efa6 |
cat >/etc/yum.repos.d/infra-tags.repo << 'EOF'
|
|
Patrick Uiterwijk |
35efa6 |
[infrastructure-tags]
|
|
Patrick Uiterwijk |
35efa6 |
name=Fedora Infrastructure tag $releasever - $basearch
|
|
Patrick Uiterwijk |
35efa6 |
baseurl=https://kojipkgs.fedoraproject.org/repos-dist/epel$releasever-infra/latest/$basearch/
|
|
Patrick Uiterwijk |
35efa6 |
enabled=1
|
|
Patrick Uiterwijk |
35efa6 |
gpgcheck=1
|
|
Patrick Uiterwijk |
35efa6 |
gpgkey=https://infrastructure.fedoraproject.org/repo/infra/RPM-GPG-KEY-INFRA-TAGS
|
|
Patrick Uiterwijk |
35efa6 |
EOF
|
|
Patrick Uiterwijk |
35efa6 |
|
|
Patrick Uiterwijk |
35efa6 |
|
|
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 \
|
|
Patrick Uiterwijk |
35efa6 |
parallel zeromq-devel python-Cython \
|
|
Patrick Uiterwijk |
35efa6 |
repoSpanner repoSpanner-bridge
|
|
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 |
a3342e |
pip install --upgrade "virtualenv<16.3.0" "tox<3.7.0" trollius coverage
|
|
Pierre-Yves Chibon |
32dba7 |
pip install --upgrade --force-reinstall chardet
|
|
Pierre-Yves Chibon |
9ce3f8 |
pip3 install "pygit2 <= `rpm -q libgit2 --queryformat='%{version}'`"
|
|
Neal Gompa |
d50afc |
tox --sitepackages -e 'py27-flask011-ci' -- --results=results-py2-flask011
|
|
Neal Gompa |
d50afc |
tox --sitepackages -e 'py34-flask011-ci' -- --results=results-py3-flask011
|
|
Neal Gompa |
d50afc |
tox --sitepackages -e 'py34-flask100-ci' -- --results=results-py3-flask100
|