Skip to content

Commit 5728fff

Browse files
committed
Add CI
1 parent ce6edce commit 5728fff

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

.travis.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
language: python
2+
sudo: false
3+
4+
env:
5+
global:
6+
CONDA_DEPENDENCIES="numpy pandas test"
7+
matrix:
8+
- PYTHON_VERSION="2.7"
9+
- PYTHON_VERSION="3.5"
10+
- PYTHON_VERSION="3.6"
11+
12+
install:
13+
- git clone --depth 1 git://github.com/astropy/ci-helpers.git
14+
- source ci-helpers/travis/setup_conda.sh && rm -rf ci-helpers/
15+
- |
16+
source activate test
17+
pip install .
18+
19+
script:
20+
- |
21+
source activate test
22+
py.test -sv .
23+
24+
cache:
25+
directories:
26+
$HOME/download # Sufficient to add miniconda.sh to TRAVIS cache.

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
pgeocode
22
========
33

4+
.. image:: https://travis-ci.org/symerio/pgeocode.svg?branch=master
5+
:target: https://travis-ci.org/symerio/pgeocode
6+
47
Postal code geocoding and distance calculations
58

69
pgeocode is a Python library for high performance off-line querying of GPS coordinates, region name and municipality name

appveyor.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
build: false
2+
3+
environment:
4+
global:
5+
REQUIREMENTS: "numpy pandas pytest flake8"
6+
7+
matrix:
8+
- PYTHON_VERSION: 3.6
9+
MINICONDA: C:\Miniconda3-x64
10+
11+
12+
init:
13+
- "ECHO %PYTHON_VERSION% %MINICONDA%"
14+
15+
install:
16+
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
17+
- conda config --set always_yes yes --set changeps1 no
18+
- conda update -q conda
19+
- conda create -n test-env %REQUIREMENTS% python=%PYTHON_VERSION%
20+
- activate test-env
21+
- pip install -e .
22+
23+
test_script:
24+
- activate spotlight-env
25+
- pytest -sv
26+

0 commit comments

Comments
 (0)