#246 Jenkins scripts
Merged 7 years ago by skrzepto. Opened 7 years ago by skrzepto.

file modified
+3
@@ -1,3 +1,6 @@ 

  #!/bin/bash

+ 

+ . ~/.virtualenvs/hubs/bin/activate || /bin/bash ./setup_python_test_env.sh

+ 

  HUBS_CONFIG=`pwd`/hubs/tests/hubs_test.cfg PYTHONPATH=. ./nosetests \

      --with-coverage --cover-erase --cover-package=hubs $*

file added
+24
@@ -0,0 +1,24 @@ 

+ #!/bin/bash

+ 

+ PATH=$WORKSPACE/venv/bin:/usr/local/bin:$PATH

+ 

+ if [ ! -d "venv" ]; then

+     virtualenv venv

+ fi

+ . venv/bin/activate

+ 

+ # epel 7 specific python setup

+ if ! grep -q "Fedora" /etc/os-release ; then

+     pip install --upgrade setuptools==18.5

+     cp -r /usr/lib/python2.7/site-packages/pygments_markdown_lexer $WORKSPACE/venv/lib/python2.7/site-packages/

+     cp -r /usr/lib/python2.7/site-packages/pygments_markdown_lexer-*-py2.7.egg-info $WORKSPACE/venv/lib/python2.7/site-packages/

+ fi

+ 

+ pip install -r requirements.txt

+ pip install -r test-requirements.txt

+ 

+ # Temporary: html5lib is breaking stability in some libraries

+ pip install html5lib==0.9999999

+ 

+ HUBS_CONFIG=$WORKSPACE/hubs/tests/hubs_test.cfg PYTHONPATH=. ./nosetests --cover-package=$WORKSPACE/hubs $*

+ 

@@ -0,0 +1,20 @@ 

+ #!/usr/bin/env bash

+ 

+ # have bash find mkvirutalenv

+ source ~/.bashrc

+ 

+ # remove the hubs env

+ rmvirtualenv hubs

+ 

+ # Create hubs env

+ mkvirtualenv hubs

+ 

+ # activate hubs

+ workon hubs

+ 

+ # install python deps

+ pip install --upgrade -r requirements.txt

+ pip install --upgrade -r test-requirements.txt

+ 

+ # TEMPORARY: html5lib update is causing other apps to crash

+ pip install html5lib==0.9999999

file added
+18
@@ -0,0 +1,18 @@ 

+ #!/usr/bin/env bash

+ 

+ ######

+ # Warning this file uses sudo to install dependencies use at your own risk

+ #####

+ 

+ # Install dependencies

+ sudo yum install -y gcc gcc-c++ sqlite-devel libffi-devel openssl-devel redhat-rpm-config

+ 

+ if ! grep -q "Fedora" /etc/os-release ; then

+     # Epel 7 specific

+     sudo yum install -y epel-release

+     sudo yum update -y

+     sudo yum install -y python-pip python-pygments-markdown-lexer

+ fi

+ 

+ # setup python virtualenv

+ sudo yum install -y python-virtualenvwrapper postgresql postgresql-devel 

\ No newline at end of file

file modified
+1
@@ -2,3 +2,4 @@ 

  vcrpy

  mock

  yanc

+ coverage 

\ No newline at end of file

This will help out new dev setting up env easier and jenkins as well.

http://jenkins.fedorainfracloud.org/job/fedora-hubs/

1 new commit added

  • updating so that when you copy and paste the script into jenkins build itll still run and added workspace specific route
7 years ago

Looks like it successfully tested PR #244 so :thumbsup: from me

Pull-Request has been merged by skrzepto

7 years ago