Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
added basic travis setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jul 27, 2018
1 parent 5f6b748 commit 86cab87
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
__pycache__/
*.py[cod]
*$py.class
.pytest_cache/

# Ignore .env file
.env
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
language: python
sudo: false

# Currently, cran-server only works on python 3.6
matrix:
include:
- os: linux
python: 3.6

# Install cran-server
install:
- pip install .

# Test cran-server
script:
# Install libraries only needed by tests
- pip install requests
# Run tests
- python -m pytest

after_success:
- echo "tests passed"
16 changes: 10 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io

from setuptools import find_packages, setup
from setuptools import find_packages
from setuptools import setup

with io.open('README.md', 'rt', encoding='utf8') as f:
readme = f.read()
Expand All @@ -9,7 +10,7 @@
name='cranserver',
version='1.0.0',
url='http://github.com/UptakeOpenSource/cran-server',
license='MIT',
license='BSD 3-Clause',
maintainer='Troy de Freitas',
maintainer_email='troy.defretas@uptake.com',
description='An application for serving CRAN packages in a cloud environment.',
Expand All @@ -18,12 +19,15 @@
include_package_data=True,
zip_safe=False,
install_requires=[
'flask',
'boto3',
'botocore',
'fasteners',
'flask'
],
extras_require={
'test': [
'pytest',
'coverage',
],
},
'coverage'
]
}
)

0 comments on commit 86cab87

Please sign in to comment.