Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.

Commit 04cf8de

Browse files
committed
add travis-ci and coveralls configuration
1 parent 149f2b7 commit 04cf8de

File tree

7 files changed

+45
-10
lines changed

7 files changed

+45
-10
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
service_name: travis-ci
2+
repo_token: bFwjIppLtIFrDeKZf9tynR2ONLGPgdDg6

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: python
2+
3+
python:
4+
- "2.7"
5+
6+
before_install:
7+
- "sudo apt-get purge openjdk*"
8+
- "sudo apt-get purge oracle-java7-*"
9+
10+
addons:
11+
apt:
12+
packages:
13+
- oracle-java8-installer
14+
15+
install:
16+
- travis_wait 20 make install
17+
18+
script:
19+
- make test
20+
21+
after_success:
22+
- make coveralls
23+
24+
notifications:
25+
email: false

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
VENV_DIR = .venv
2-
VENV_RUN = source $(VENV_DIR)/bin/activate
2+
VENV_RUN = . $(VENV_DIR)/bin/activate
33
AWS_STS_URL = http://central.maven.org/maven2/com/amazonaws/aws-java-sdk-sts/1.11.14/aws-java-sdk-sts-1.11.14.jar
44
ES_URL = https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.3.3/elasticsearch-2.3.3.zip
55
TMP_ARCHIVE_ES = /tmp/localstack.es.zip
@@ -31,6 +31,9 @@ publish: ## Publish the library to a PyPi repository
3131
# build and upload archive
3232
($(VENV_RUN) && ./setup.py sdist upload)
3333

34+
coveralls: ## Publish coveralls metrics
35+
($(VENV_RUN); coveralls)
36+
3437
infra: ## Manually start the local infrastructure for testing
3538
($(VENV_RUN); localstack/mock/infra.py)
3639

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
[![Build Status](https://travis-ci.org/atlassian/localstack.png)](https://travis-ci.org/atlassian/localstack)
2+
[![Coverage Status](https://coveralls.io/repos/github/atlassian/localstack/badge.svg?branch=master)](https://coveralls.io/github/atlassian/localstack?branch=master)
3+
[![PyPI Version](https://badge.fury.io/py/localstack.svg)](https://badge.fury.io/py/localstack)
4+
[![PyPI License](https://img.shields.io/pypi/l/localstack.svg)](https://img.shields.io/pypi/l/localstack.svg)
5+
[![Code Climate](https://codeclimate.com/github/atlassian/localstack/badges/gpa.svg)](https://codeclimate.com/github/atlassian/localstack)
6+
17
# LocalStack - A fully functional local AWS cloud stack
28

39
![LocalStack](https://i.imgsafe.org/fe38108cd6.png)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jsonpath-rw==1.4.0
1111
moto-ext==0.4.26
1212
nose==1.3.7
1313
pep8==1.7.0
14+
python-coveralls==2.7.0
1415
requests==2.11.0
1516
requests-aws4auth==0.9
1617
restricted_pkg_ext==1.1.3

setup.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
#!/usr/bin/env python
22

3-
# from __future__ import unicode_literals
43
import os
54
import sys
65
import re
76
import subprocess
87
import setuptools
9-
import restricted_pkg
10-
from restricted_pkg import setup
11-
from setuptools import find_packages
8+
from setuptools import find_packages, setup
129
from setuptools.command.install_lib import install_lib
1310

1411
install_requires = []
@@ -75,14 +72,12 @@ def run(self):
7572

7673
setup(
7774
name='localstack',
78-
version='0.1.5',
75+
version='0.1.6',
7976
description='Provides an easy-to-use test/mocking framework for developing Cloud applications',
80-
author='Waldemar Hummer',
77+
author='Waldemar Hummer (Atlassian)',
8178
author_email='[email protected]',
8279
url='https://bitbucket.org/atlassian/localstack',
83-
private_repository='https://atlassian.artifactoryonline.com/atlassian/api/pypi/ai_pyp',
8480
custom_headers={
85-
'X-JFrog-Art-Api': os.environ['PYPI_REPO_PASSWORD'],
8681
'Authorization': None
8782
},
8883
scripts=['bin/localstack'],
@@ -91,7 +86,7 @@ def run(self):
9186
install_requires=install_requires,
9287
dependency_links=dependency_links,
9388
test_suite="tests",
94-
license="(C) Atlassian",
89+
license="Apache License 2.0",
9590
cmdclass={
9691
'install_lib': InstallLibCommand
9792
},

tests/test_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ def process_records(records):
176176
time.sleep(10)
177177

178178
print('DynamoDB updates retrieved via Kinesis (actual/expected): %s/%s' % (len(EVENTS), num_events))
179+
if len(EVENTS) != num_events:
180+
print('ERROR receiving DynamoDB updates. Running processes:')
181+
print(run("ps aux | grep 'python\|java\|node'"))
179182
assert len(EVENTS) == num_events
180183

181184
print("Test finished successfully")

0 commit comments

Comments
 (0)