diff options
author | Alastair Houghton <alastair@alastairs-place.net> | 2018-02-12 11:34:17 +0000 |
---|---|---|
committer | Alastair Houghton <alastair@alastairs-place.net> | 2018-02-12 11:34:17 +0000 |
commit | 89583f0ad251e332327009683edac8b4d80c6bdf (patch) | |
tree | 3d8455c274dbbff6c0d22a66202bf8173ea05017 | |
parent | ff28c08af642885b06e10d8552b800c1d412d127 (diff) | |
download | netifaces-git-89583f0ad251e332327009683edac8b4d80c6bdf.tar.gz |
Setting up Travis.
-rw-r--r-- | .travis.yml | 24 | ||||
-rwxr-xr-x | .travis/install.sh | 17 | ||||
-rw-r--r-- | README.rst | 18 |
3 files changed, 52 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..647c66d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +language: python + +python: + - "2.7" + - "3.6" + +install: + - ./.travis/install.sh + +script: + - python test.py + +matrix: + include: + - os: linux + python: 2.7 + - os: linux + python: 3.6 + - os: osx + language: generic + env: PYTHON_VERSION=3.6.2 + - os: osx + language: generic + env: PYTHON_VERSION=2.7.10 diff --git a/.travis/install.sh b/.travis/install.sh new file mode 100755 index 0000000..c6d0215 --- /dev/null +++ b/.travis/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + + # On OS X, we use the "generic" language and manually install Python so + # that we can specify the versions to test + curl -L raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash + export PATH=~/.pyenv/bin:$PATH + eval "$(pyenv init -)" + pyenv install --skip-existing $PYTHON_VERSION + pyenv global $PYTHON_VERSION + pyenv shell $PYTHON_VERSION + pip install -U pip setuptools wheel py + +fi + +pip install . @@ -1,9 +1,13 @@ netifaces 0.10.6 ================ -.. image:: https://drone.io/bitbucket.org/al45tair/netifaces/status.png - :target: https://drone.io/bitbucket.org/al45tair/netifaces/latest - :alt: Build Status +.. image:: https://travis-ci.org/al45tair/netifaces.svg?branch=master + :target: https://travis-ci.org/al45tair/dmgbuild + :alt: Build Status (Linux/Mac) + +.. image:: https://ci.appveyor.com/api/projects/status/3ctn1bl0aigpfjoo/branch/master?svg=true + :target: https://ci.appveyor.com/project/al45tair/netifaces/branch/master + :alt: Build Status (Windows) 1. What is this? ---------------- @@ -160,14 +164,14 @@ system out there where this just won't work. It gets regular testing on OS X, Linux and Windows. It has also been used successfully on Solaris, and it's expected to work properly on other UNIX-like systems as well. If you are running something that is not supported, and -wish to contribute a patch, please use BitBucket to send a pull request. +wish to contribute a patch, please use Github to send a pull request. 4. What license is this under? ------------------------------ It's an MIT-style license. Here goes: -Copyright (c) 2007-2017 Alastair Houghton +Copyright (c) 2007-2018 Alastair Houghton Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -191,7 +195,7 @@ SOFTWARE. -------------------------- Because someone released a fork of netifaces with the version 0.9.0. -Hopefully skipping the version number should remove any confusion. In -addition starting with 0.10.0 Python 3 is now supported and other +Hopefully skipping the version number should remove any confusion. In +addition starting with 0.10.0 Python 3 is now supported and other features/bugfixes have been included as well. See the CHANGELOG for a more complete list of changes. |