Skip to content

Commit

Permalink
Try and get travis working
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBiggerGuy committed May 11, 2018
1 parent 4650072 commit b2c18ae
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 5 deletions.
37 changes: 33 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,39 @@
sudo: false

branches:
only:
- py27

language: python
python:
- "2.7"
- "pypy2.7"
install: pip install tox-travis

matrix:
include:
# Python 2.7
- python: "2.7"
os: "linux"
dist: trusty
env: TOXENV=py27

#- os: "osx"
# language: generic
# env: TOXENV=py27

# PyPy 2.7
- python: "pypy-5.4.1"
os: "linux"
dist: trusty
env: TOXENV=pypy

allow_failures:
- python: "pypy2.7"
- os: "osx"

cache:
directories:
- $PWD/wheelhouse # cache wheels so that we don't hit network everytime
env:
global:
- PIP_FIND_LINKS=$PWD/wheelhouse

install: ./.travis/install.sh
script: tox
17 changes: 17 additions & 0 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then

# Install custom requirements on OS X
brew install pyenv-virtualenv

case "${TOXENV}" in
py27)
# Install some custom Python 3.2 requirements on OS X
echo 'Nothing to do'
;;
esac
else
# Install custom requirements on Linux
pip install tox-travis
fi
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tox]
envlist = py27,pypy
envlist = py27, pypy
platform = linux2
skipsdist = True

[testenv]
deps =
Expand Down

0 comments on commit b2c18ae

Please sign in to comment.