Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
fac6abb
add tables from equipment schema
Mar 8, 2016
6047f1b
clean up queries and add them for lab analyses and Provenance schemas
Mar 8, 2016
ba911ff
update queries and add equipment queries
Mar 10, 2016
2bf515b
remove unneeded functions from readService
Mar 15, 2016
ed82918
rearrange model order
Mar 16, 2016
911537a
add code for related queries
Mar 17, 2016
e636f7b
Merge branch 'addqueries' into Dev1_0
Mar 17, 2016
dd233c0
new create functions
Mar 23, 2016
0c73b81
reformat createservices
Mar 23, 2016
dfcb7e3
update sample function calls, add inheritance in results, work on ge…
Mar 23, 2016
d14b3cf
implement polymorphic identity for SF and Results
Mar 23, 2016
d01a8f0
create CV parent class
Mar 23, 2016
3eb9b86
update sample to work with inheritance
Mar 30, 2016
13b664b
fix sample file so that it is not throwing an error when plotting
Apr 4, 2016
e304133
fix sample code to work with creating an inherited object
Apr 4, 2016
8179e10
Update models.py
emiliom Apr 7, 2016
b1cc22b
Merge pull request #39 from ODM2/addinheritance
Apr 11, 2016
ee6b859
add lists to all id and code fields
Apr 12, 2016
d476fe8
rename singular code to plural codes
Apr 12, 2016
fb0f61c
Updated models. RelatedModels to use RelatedId, and Not RelationID. R…
valentinedwv Apr 14, 2016
9963167
Merge branch 'master' of https://github.com/ODM2/ODM2PythonAPI into f…
valentinedwv Apr 14, 2016
8c94c79
change to RelatedModels.RelatedId as per ODM2 spec.
valentinedwv Apr 14, 2016
6716bef
Turn off test for CreateService Session closes on failed create #52
valentinedwv Apr 15, 2016
561d7e9
Turn off test for CreateService Session closes on failed create #52
valentinedwv Apr 15, 2016
01c149d
removing echo to make the logs shorter
valentinedwv Apr 15, 2016
2a0aa31
adding cleanup function. tests randomly failing in travis
valentinedwv Apr 15, 2016
1a3e61e
adding cleanup function. tests randomly failing in travis
valentinedwv Apr 15, 2016
a653edd
Tests randomly failing in travis. Adding a session.flush and session.…
valentinedwv Apr 15, 2016
40d407d
Merge branch 'master' into Dev1_0
Apr 15, 2016
b5c6303
Added skipif to test_createservice.py methods
valentinedwv Apr 15, 2016
236c9bc
comment out session test
valentinedwv Apr 15, 2016
3ed3253
Merge pull request #51 from ODM2/accept_lists
Apr 15, 2016
e82db59
update tests
Apr 18, 2016
a835f77
fix typos found by tests
Apr 18, 2016
892a3ec
fix typos found by tests, add FeatureGeometryWKT to testscripts
Apr 19, 2016
5585702
run pytest
Apr 19, 2016
f4473fb
alter insert into mysql script to account for featuregeometry wkt
Apr 19, 2016
70c56f1
add value to sampling feature type site for FeatureGeometryWKT
Apr 19, 2016
c0864e0
Disable MySQL-Python DBI module. Not supported in python 3.x
valentinedwv Apr 21, 2016
a0cdc3e
Disable MySQL-Python DBI module
valentinedwv Apr 21, 2016
20066f6
Disable MySQL-Python DBI module
valentinedwv Apr 21, 2016
b759d1f
Disable MySQL-Python DBI module
valentinedwv Apr 21, 2016
cfc671c
Disable MySQL-Python DBI module
valentinedwv Apr 21, 2016
fbb8f69
Disable MySQL-Python DBI module
valentinedwv Apr 21, 2016
e51c4ff
Python 3
valentinedwv Apr 21, 2016
9ed1c1c
Python 3. use odm/geoalchemy v0.7.4
valentinedwv Apr 22, 2016
5d32e11
fix typo error
Apr 22, 2016
4acec1f
remove the python3 from travis... aka get green builds
valentinedwv Apr 22, 2016
8ef2822
merging changes from master
Apr 22, 2016
9ac80e4
handle polymorphic case when no inherited class for specified type
Apr 22, 2016
599b6cd
Merge Pull request #61 from ODM2/Dev1_0
Apr 22, 2016
2321ab4
Merge branch 'master' into fixRelated
valentinedwv Apr 22, 2016
ba5f9e9
Merge branch 'fixrelated'
valentinedwv Apr 22, 2016
69231f0
Update setup.py
emiliom Apr 26, 2016
00ee921
Update README.md
emiliom Apr 26, 2016
6ad5117
Update README.md
emiliom Apr 26, 2016
16567e5
fi affiliation issue
May 23, 2016
9594e6d
update model tests
May 23, 2016
f89d583
fix issue with spatialreferences
Jun 14, 2016
1ee8272
have create_service return object
Jun 16, 2016
0fddfd2
merge
Jun 16, 2016
9201cb1
update error in test file
Jun 16, 2016
2969322
update appveyor stuff
Jun 16, 2016
0cdb9ed
comment out other databases
Jun 16, 2016
a93d87d
update travis script paths
Jun 16, 2016
e59c0c7
change appveyor file to only load mssql db
Jun 22, 2016
2e9aa55
oops in appveyor file
Jun 22, 2016
4ceb752
update testing scripts
Jun 22, 2016
2079936
travis update, fix pandas error
Jun 22, 2016
f4ab3dc
update the create functions
Jun 28, 2016
1b81956
update conda channels in appveyor
Jun 28, 2016
8604c69
appveyor.yml for mysql and postgres
Jun 28, 2016
29fa1b0
update travis and appveyor files
Jun 28, 2016
6553676
update running of .sh files
Jun 28, 2016
1776d7a
update postgres script
Jun 28, 2016
fd7ab27
update method query
Jun 28, 2016
edb3e0d
update create query
Jun 29, 2016
fabd2d7
update create functions
Jun 29, 2016
c7e2a0c
Merge pull request #68 from ODM2/fixqueries
Jun 29, 2016
ac0fe38
Merge branch 'master' of https://github.com/ODM2/ODM2PythonAPI
valentinedwv Jul 8, 2016
5a70943
fix naming of result objects to be consistant
Aug 16, 2016
1dce754
update APIDemo.ipynb
Aug 19, 2016
0f08ae5
remove any reference to Feature Geometry. remove geoalchemy dependency
Aug 26, 2016
5ea299f
remove shapely dependency
Aug 26, 2016
beb170b
update imports so they are static
Aug 26, 2016
f2bd62f
Merge pull request #69 from ODM2/renamevalueobjects
Sep 27, 2016
b99d4f1
update version number
Sep 27, 2016
5b3963f
add createannotations)
Sep 28, 2016
1f0ef00
added sudo to pymysql pip install
valentinedwv Oct 4, 2016
d595d99
TravisCI add a sudo to a pip install
valentinedwv Oct 4, 2016
d61a769
TravisCI add a sudo to a pip install
valentinedwv Oct 4, 2016
3f5da83
TravisCI add a sudo to a pip install
valentinedwv Oct 4, 2016
19b60c5
add updated query code to services
Oct 11, 2016
834bfd2
update 1.1 connectivity
Oct 11, 2016
4e94605
update detailed result value
Oct 17, 2016
af8cdf4
update result to filter by type
Nov 1, 2016
860a47d
fix typo
Nov 1, 2016
ac09fec
add delete values
Nov 8, 2016
13d2404
update detailed result to contain begin and end date
Nov 22, 2016
f83f7db
fix casing error
Nov 22, 2016
21d22db
update random connection
Nov 22, 2016
e0c274c
update annotations
Nov 28, 2016
17a9e31
update detailed result obj
Dec 7, 2016
41d348d
add result object to detailed result
Dec 7, 2016
9dd97e5
fix typo
Dec 7, 2016
f87581d
add ids to get annotations
Dec 7, 2016
aa34a80
add updates for result and action
Dec 7, 2016
67480ad
update result creation
Dec 7, 2016
3408e84
saving
Dec 7, 2016
33ffdad
updateService line 30 - added type checking for dateTime
kwuz Jan 19, 2017
d7f0a51
update upateaction
Jan 21, 2017
50a3f3c
Merge branch 'odmtools' of http://github.com/ODM2/ODM2PythonAPI into …
Jan 21, 2017
e5f68fc
updating for odmtools
Feb 7, 2017
560465d
Fix detail result id query
Feb 8, 2017
65d6a11
update setSchema function do not set schema to empty string
Mar 13, 2017
c46d92d
Remove geoalchemy references in setup.py
ocefpaf Mar 15, 2017
de985a9
remove sqlalchemy from requirements.txt
ocefpaf Mar 15, 2017
c8ad13a
Add Travis-CI badge
ocefpaf Mar 15, 2017
f984058
Update Readme.md Add appveyor badge
sreeder Mar 15, 2017
f900474
Merge branch 'master' into odmtools
Mar 15, 2017
0f4a11c
single line
ocefpaf Mar 15, 2017
dcb252f
Merge pull request #73 from ocefpaf/badge
emiliom Apr 13, 2017
dc999de
adjust db connection add update and delete functions
Apr 17, 2017
d1fb40e
update conn_string to prevent timeout
Apr 17, 2017
07875b2
move higher level into basic get functions
Apr 18, 2017
33ebf08
fix getprocessinglevels to use id filter
lsetiawan Apr 26, 2017
c646fb2
add sampling feature and variables filter in the getresults function
May 1, 2017
9eba975
fix order of filtering objects
May 1, 2017
bc8f423
Merge branch 'odmtools' of http://github.com/ODM2/ODM2PythonAPI into …
May 2, 2017
23c97d4
update the getrelatedfeatures, getresults, and getresultvalues
May 2, 2017
e68260e
fix related features
May 2, 2017
56b40e3
update the siteid filter
May 3, 2017
6fc5efa
update base and models
May 3, 2017
aea2924
'merge
May 3, 2017
a5e2970
fix schema error
May 3, 2017
9808392
Merge pull request #76 from ODM2/odmtools
sreeder May 5, 2017
f928c2a
update to version 0.5.3
May 5, 2017
7d820e8
Merge pull request #77 from lsetiawan/service_dev
emiliom May 5, 2017
d79e8bc
rename PersonObj in Annotations. it should be named the same thing as…
May 5, 2017
9e0fd51
prettify the sqlalchemy object __repr__ statement, so its not printin…
May 5, 2017
76b0dcd
Merge pull request #78 from ODM2/renameObject
sreeder May 6, 2017
dc2a3be
cleanup result tests
May 9, 2017
88505fb
cleanup result tests
May 9, 2017
a6e3ba2
delete odm1 files
May 9, 2017
e6fd3aa
PEP 440
ocefpaf May 11, 2017
56364e0
Merge pull request #80 from ocefpaf/alpha_status
emiliom May 11, 2017
4adeb0e
add missing return statements for many of the get functions
May 11, 2017
15bf747
update documentation in read_service.py
May 11, 2017
1f03f05
remove odm1 reference
May 12, 2017
3a6c382
fix function where I generate a list of ids to check if an id list al…
May 15, 2017
1255bf4
Merge pull request #81 from ODM2/cleanup
horsburgh May 19, 2017
07a6cf5
review actions
ocefpaf May 25, 2017
b1e1bf9
Merge pull request #72 from ocefpaf/remove_geoalchemy_dep
emiliom May 25, 2017
81ff5fb
Bump to version 0.6.0
ocefpaf May 26, 2017
641ff17
Merge pull request #82 from ODM2/bump_version
sreeder May 26, 2017
2b0f9b6
use versioneer
ocefpaf Jun 8, 2017
48f6dca
Merge pull request #84 from ocefpaf/versioneer
emiliom Jun 13, 2017
2465c9e
fix versioneer
ocefpaf Jun 19, 2017
a9f0cee
Merge pull request #85 from ocefpaf/fix_versioneer_cmd
emiliom Jun 19, 2017
da0b6bf
fix language setting
ocefpaf Jul 4, 2017
c4ec98c
with addons we don't need sudo
ocefpaf Jul 4, 2017
bfd0b68
clean unnecessary comments
ocefpaf Jul 4, 2017
6a2db1e
don't cache pip, I'll implement conda caching later
ocefpaf Jul 4, 2017
4c1947c
organize and comment on the addons
ocefpaf Jul 4, 2017
c02e32f
install the env with conda
ocefpaf Jul 4, 2017
ed75341
fix indentation
ocefpaf Jul 4, 2017
7f9b670
actually the the tests
ocefpaf Jul 4, 2017
ee3ae1c
define a test matrix
ocefpaf Jul 4, 2017
9e0a670
clean setup.py up
ocefpaf Jul 4, 2017
b488913
run tests using the installed version
ocefpaf Jul 4, 2017
3fdc68a
I am not sure this file is necessary and it uses the old ioos channel
ocefpaf Jul 4, 2017
2834035
converter -> model
ocefpaf Jul 5, 2017
52145df
remove dups
ocefpaf Jul 6, 2017
6c4a4f5
Merge pull request #86 from ocefpaf/reactivate_travis
emiliom Jul 6, 2017
16472a8
pin Travis-CI image
ocefpaf Aug 9, 2017
9488b30
Merge pull request #89 from ocefpaf/pin_image
lsetiawan Aug 9, 2017
436ef4b
remove ODM1_1_1 related tests
ocefpaf Aug 10, 2017
d179cc5
sudo required
ocefpaf Aug 15, 2017
1c12261
Merge pull request #90 from ocefpaf/fix_ci
lsetiawan Aug 15, 2017
01157ed
cache packages
ocefpaf Jul 4, 2017
bc00d3d
small adjustments
ocefpaf Jul 4, 2017
a8277c3
Merge pull request #91 from ocefpaf/cache
lsetiawan Aug 15, 2017
521ad08
Fix some tests following updated API
lsetiawan Aug 15, 2017
0b1c839
Additional fixes
lsetiawan Aug 15, 2017
1cad361
Further tweaks
lsetiawan Aug 15, 2017
ba608a3
Another round of tweaks
lsetiawan Aug 15, 2017
75738ab
Last tweak
lsetiawan Aug 15, 2017
df075e3
Merge pull request #92 from lsetiawan/fix_test
ocefpaf Aug 16, 2017
bab686f
Assert on any nulls
lsetiawan Aug 16, 2017
e94e56e
Merge pull request #93 from lsetiawan/patch_test
ocefpaf Aug 16, 2017
b2a6dda
Fix person and organization filter for affiliations
lsetiawan Sep 26, 2017
c28fcde
Use relationship object in join
lsetiawan Sep 26, 2017
feff576
Merge pull request #96 from lsetiawan/fix_get_aff
emiliom Sep 26, 2017
bbfbd5f
Improve getAffiliation docstring to follow numpy/scipy documentation
lsetiawan Sep 27, 2017
b81521d
Use google doc style and resolve comments
lsetiawan Sep 27, 2017
7eb9914
Merge pull request #98 from lsetiawan/gaff_doc
emiliom Sep 27, 2017
cf429e5
build docs on Travis-CI
ocefpaf Sep 28, 2017
ac15314
more coding standards tests and sphinx for docs
ocefpaf Sep 28, 2017
e0bdb10
move current doc to docs/NOTES
ocefpaf Sep 28, 2017
291d5ec
sphinx-quickstart
ocefpaf Sep 28, 2017
ed65a54
fix links
ocefpaf Sep 28, 2017
1c2b8ac
config Alabaster
ocefpaf Sep 28, 2017
b5d202f
config Alabaster
ocefpaf Sep 28, 2017
2a6f929
add logo
ocefpaf Sep 28, 2017
4e78481
minor corrections
ocefpaf Sep 28, 2017
2205e38
add these later
ocefpaf Sep 28, 2017
75d0f02
try fetching packages from cf
ocefpaf Sep 28, 2017
427c78f
doctr
ocefpaf Sep 28, 2017
627d749
Merge pull request #99 from ocefpaf/docs
emiliom Sep 28, 2017
d964075
fix appveyor download
ocefpaf Sep 28, 2017
bc9a258
Merge pull request #100 from ocefpaf/fix_appveyor
emiliom Sep 28, 2017
fa8081e
re-generate key
ocefpaf Sep 29, 2017
050d1e4
no ` in the yaml
ocefpaf Sep 29, 2017
aeb77de
add napoleon ext
ocefpaf Sep 29, 2017
3f996d0
don't write this module yet
ocefpaf Sep 29, 2017
d5eb408
Merge pull request #103 from ocefpaf/fix_doc_style
lsetiawan Sep 29, 2017
bab616e
200px logo
ocefpaf Sep 29, 2017
d98bd5d
Merge pull request #104 from ocefpaf/200px
lsetiawan Sep 29, 2017
b329231
Apply google standard
lsetiawan Sep 29, 2017
629a352
Addresses repetition for default values
lsetiawan Sep 29, 2017
87512d6
Merge pull request #105 from lsetiawan/gres_doc
ocefpaf Sep 29, 2017
2eddae0
Add ReadService to Docs
lsetiawan Sep 29, 2017
f6e5859
Merge pull request #107 from lsetiawan/expose_read
emiliom Sep 29, 2017
384fde4
Expose other module services
lsetiawan Oct 2, 2017
8f0df4f
Fix reST syntax
lsetiawan Oct 2, 2017
fd64a8a
Rearrange docs, expose models
lsetiawan Oct 2, 2017
bc75796
Merge pull request #108 from lsetiawan/expose_services
emiliom Oct 2, 2017
ffb66d6
Use latest Travis-CI image.
ocefpaf Sep 29, 2017
7d3027e
Merge pull request #109 from ocefpaf/travis-ci_image
lsetiawan Oct 3, 2017
64b4315
test @lsetiawan suggestion
ocefpaf Oct 3, 2017
b40e76a
Merge pull request #110 from ocefpaf/pin_mysql
lsetiawan Oct 3, 2017
d449d47
Python 3 compat and flake8
ocefpaf Oct 5, 2017
62d985c
Add ODM2 Models Core Index
lsetiawan Oct 9, 2017
e3f5db6
Merge pull request #112 from lsetiawan/core_index
emiliom Oct 9, 2017
fef970e
Add documentation about how to contribute
lsetiawan Oct 10, 2017
96249ec
Merge pull request #113 from lsetiawan/contrib
emiliom Oct 10, 2017
e243c26
Fix reST syntax.
lsetiawan Oct 10, 2017
599d055
Merge pull request #114 from lsetiawan/contrib
lsetiawan Oct 10, 2017
682b1c9
Add doc to samplingfeatures
lsetiawan Oct 10, 2017
1111158
Add google style doc
lsetiawan Oct 10, 2017
1010c1e
Merge pull request #116 from lsetiawan/sf_edit
emiliom Oct 10, 2017
19f5f2f
Merge branch 'master' into py3k
ocefpaf Oct 11, 2017
1cdf2e2
Merge pull request #111 from ocefpaf/py3k
emiliom Oct 18, 2017
dd72ecc
new badge
ocefpaf Oct 28, 2017
9c28915
Merge pull request #119 from ocefpaf/new_badge
emiliom Oct 28, 2017
fae1c64
merge changes to the base function
Nov 1, 2017
73e0a46
fix merge issues
Nov 1, 2017
2f82702
Update README.md
horsburgh Nov 16, 2017
e60776f
Merge branch 'master' into master
Dec 19, 2017
c2254d4
Merge branch 'master' into master
Dec 19, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
odm2api/_version.py export-subst
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*.py[cod]
*~
.ipynb_checkpoints


# C extensions
*.so
Expand Down Expand Up @@ -40,6 +40,9 @@ nosetests.xml

log
*.log
.idea


.DS_Store
.ipynb_checkpoints
.cache
.idea
111 changes: 75 additions & 36 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
language: python

sudo: required

# if the https://travis-ci.org/ODM2/ODM2PythonAPI/requests ever says: missing config
# validate at: http://lint.travis-ci.org/
python:
Expand All @@ -14,52 +16,89 @@ python:
# command to install dependencies
cache:
directories:
- $HOME/.cache/pip/wheels
- $HOME/virtualenv/python2.7.9
- $HOME/miniconda

env:
global:
- secure: "ckOXS/SsEQGGI6XrdJbEhImPbMyB8HBIqGWJ7CkYKezKTTyuJ510LMAK/7xFLyMQ0rXIrHVpCZsGLsAuzK+h2D0/xQTvkLlxJkTkKwKnm6HKg6fOrbEVSAOzCKYAdP+nBpNLGA/kzMW26E+MSWuFQwc7JiKj36vW9uUgRiT8Knwl9YrfRG+Et1bWJIfbfNoBy2gP3eFXyLBKOcgR0E0y2dyst/uRwkkEn9m8as+PWc3zsVaFS6qf5L4OFMLI5z/EZiNXiu5B/AUvpesWT/OXsbpwnxShska3RXZIh+0exu8euop7Oi4o07PI7EasMtncWzjWKLB6hJaz/BRfS/fjH0/Isy64OUXCIaCwQew31e2uW/liYnlNY/PDJfiVYdbMR34YLLrstCdBjHG+l29eN0VrCKrhW9RDPVW5eKZD1EsQPUgEDpYHaigJBwuAguQ0/MMaZ7Z/DVOR4yUsNlKFO7VwdUL4+lQ3mHrdUAEhuZACncZJ03wouvtyiuGC2WPnPAvk97uHwUcJl7Mq/jTy7HrnTRytHVIHZ8LsymAaGL2ukjVLlJ8ex8/36v2glQEkPAT06f9JXkbWJRzutnDiFKli96shMM17qyl2rjjFdC+fVDm7L7xsgJDAgXAuhD9Wwj3iVo/fcz7SmcH+iEekRtgqwbzaT3MbmLRpS4tOarY="

# Removing the directory will remove the env but leave the cached packages
# at $HOME/miniconda/pkgs. That is a win-win because when re-creating the
# env we will download only the new packages.
before_cache:
- rm -rf $HOME/miniconda/envs/TEST

services:
- mysql
- postgresql

addons:
postgresql: "9.5"
apt:
packages:
- cmake
- unixodbc
- unixodbc-dev
- odbcinst1debian2
- odbcinst
- freetds-dev
- freetds-bin
- tdsodbc
- libc6
- e2fsprogs
- mysql-client
- libproj-dev
- libgeos-dev
- libspatialite-dev
# mariadb: '10.1'
before_script:
- ./scripts/mysql_setup.sh
- ./scripts/postgres_setup.sh
- ./scripts/freetds.sh
- postgresql-9.5-postgis-2.3
- mysql-server-5.6

matrix:
fast_finish: true
include:
- python: 2.7
env: TEST_TARGET=default
- python: 3.6
env: TEST_TARGET=default
- python: 2.7
env: TEST_TARGET=coding_standards
- python: 3.6
env: TEST_TARGET=docs
allow_failures:
- python: 2.7
env: TEST_TARGET=coding_standards
- python: 3.6
env: TEST_TARGET=default

before_install:
# python -m pip makes the install go into the virtualenv
- python -m pip install pandas
- export PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1;python -m pip install pymssql
- python -m pip install mysql-python
install: # now just our code
- pip install git+https://github.com/ODM2/geoalchemy.git@odm2#egg=geoalchemy-0.7.3
- pip install .
- pip install -r requirements_tests.txt --allow-external pyodbc --allow-unverified pyodbc
# pysqlite
- pip install pysqlite
- pip list
- ./ci-helpers/mysql_setup.sh
- ./ci-helpers/postgres_setup.sh
- |
URL="http://bit.ly/miniconda"
echo ""
if [ ! -f $HOME/miniconda/bin/conda ] ; then
echo "Fresh miniconda installation."
wget $URL -O miniconda.sh
rm -rf $HOME/miniconda
bash miniconda.sh -b -p $HOME/miniconda
fi
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- conda update conda
- conda config --add channels conda-forge --force
- conda config --add channels odm2 --force
- conda create --name TEST python=$TRAVIS_PYTHON_VERSION --file requirements.txt --file requirements-dev.txt
- source activate TEST

# don't forget to open up the azure mssql server to these addreses
# https://docs.travis-ci.com/user/ip-addresses/
install:
- python setup.py sdist && version=$(python setup.py --version) && pushd dist && pip install odm2api-${version}.tar.gz && popd

# command to run tests
script:
- if [[ $TEST_TARGET == 'default' ]]; then
cp -r tests /tmp && cd /tmp ;
py.test -vv tests ;
fi

- if [[ $TEST_TARGET == 'coding_standards' ]]; then
find . -type f -name "*.py" ! -name 'conf.py' ! -name '_version.py' ! -name 'versioneer.py' | xargs flake8 --max-line-length=110 ;
fi

- py.test
- if [[ $TEST_TARGET == 'docs' ]]; then
set -e ;
conda install doctr ;
pushd docs ;
make clean html linkcheck ;
popd ;
python -m doctr deploy --sync .;
python -m doctr deploy --sync --no-require-master --built-docs docs/build/html "docs-$TRAVIS_BRANCH" ;
fi

doctr:
require-master: true
sync: False
Loading