-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
113 lines (90 loc) · 3.22 KB
/
.travis.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
language: python
os:
- linux
python:
- 2.6
- 2.7
- 3.3
- 3.4
- 3.5
matrix:
include:
# Cursory validation on osx, but only with python 3.5 (to avoid builds taking too long)
- os: osx
# Workaround for Tavis's current lack of official support for Python on OS X
# Reference https://github.com/travis-ci/travis-ci/issues/2312
language: generic
before_install:
# Install python 3.5.0 on OS X
# Workaround for Tavis's current lack of official support for Python on OS X
# Reference https://github.com/travis-ci/travis-ci/issues/2312
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "TRAVIS_PYTHON_VERSION=$TRAVIS_PYTHON_VERSION";
echo Updating Homebrew...;
brew update;
echo Installing pyenv...;
brew unlink pyenv;
brew install pyenv;
echo Installing pyenv shims...;
eval "$(pyenv init -)";
new_python_version="3.5.0";
echo "Installing Python${new_python_version}...";
pyenv install ${new_python_version};
pyenv versions;
echo "Making Python${new_python_version} the global python...";
pyenv global ${new_python_version};
echo "python --version" `python --version`;
echo "pip --version" `pip --version`;
echo Upgrading pip...;
pip install --upgrade pip;
fi
# Install RabbitMQ on OS X
# Workaround for Travis's failure to install and start RabbitMQ on osx builds
# Reference https://github.com/travis-ci/travis-ci/issues/5941
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo Installing RabbitMQ...;
echo "find / -name rabbitmq-server" `find / -name rabbitmq-server 2>/dev/null`;
brew install rabbitmq;
echo Starting RabbitMQ...;
export PATH="${PATH}:/usr/local/sbin";
sudo rabbitmq-server -detached;
fi
# Install libev
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
echo Installing libev on Linux...;
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse";
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse";
sudo apt-get update -qq;
sudo apt-get install libev-dev/trusty;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo Installing libev on OS X...;
brew install libev;
fi
install:
#- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo chmod 775 /Library/Python/2.7/site-packages; fi
- echo "WHICH python" `which python`;
- echo "python --version" `python --version`;
- echo "WHICH pip" `which pip`;
- echo "pip --version" `pip --version`;
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install unittest2 ordereddict; fi
- if [[ $TRAVIS_PYTHON_VERSION != '2.6' ]]; then pip install pyev; fi
- pip install -r test-requirements.txt
- pip freeze
services:
- rabbitmq
script:
- sudo rabbitmqctl status
- nosetests
after_success:
- codecov
deploy:
distributions: sdist bdist_wheel
provider: pypi
user: crad
on:
python: 2.7
tags: true
all_branches: true
password:
secure: "V/JTU/X9C6uUUVGEAWmWWbmKW7NzVVlC/JWYpo05Ha9c0YV0vX4jOfov2EUAphM0WwkD/MRhz4dq3kCU5+cjHxR3aTSb+sbiElsCpaciaPkyrns+0wT5MCMO29Lpnq2qBLc1ePR1ey5aTWC/VibgFJOL7H/3wyvukL6ZaCnktYk="