-
Notifications
You must be signed in to change notification settings - Fork 41
/
shippable.yml
33 lines (29 loc) · 1.03 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
language: python
python:
- "2.7"
- "3.4"
- "pypy"
before_install:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- echo "============ removing old pypy symlink =============="
- sudo rm -f /usr/local/bin/pypy
- echo "============ downloading pypy =============="
- OLDDIR=`pwd` && cd /opt && sudo wget https://bitbucket.org/pypy/pypy/downloads/pypy-2.6.1-linux64.tar.bz2 && sudo tar -xjvf pypy-2.6.1-linux64.tar.bz2 && cd $OLDDIR
- echo "============== creating symlink for pypy ==============="
- sudo ln -sf /opt/pypy-2.6.1-linux64/bin/pypy /usr/local/bin/pypy
- mkdir -p $HOME/bldve/
- virtualenv -p $SHIPPABLE_PYTHON $HOME/bldve/
- source $HOME/bldve/bin/activate
- python --version
- which python
install:
- pip install -r requirements.txt
- python setup.py -q install
script:
- coverage run --source cobra --branch setup.py test
after_success:
- coverage report
- coverage xml
- mv coverage.xml shippable/codecoverage/
- mv unittests.xml shippable/testresults/