Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit 4181349

Browse files
author
James Socol
committed
Add .travis.yml and testrunner script.
1 parent 0a25fe1 commit 4181349

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: python
2+
python:
3+
- 2.6
4+
- 2.7
5+
env:
6+
global:
7+
secure: mpFkhLxiDEpGeAMfcSx601ZFykkrKilpWch6qsx62qNhZTVrf33bru9hFooi/NpGGx+2A+epRj705BibAG8OUvjJBJCAZnrNbrn/j9XsBwA4bmsoDzLg+7eaElneX3J+MWlT4419nVhnH+k3W1yRX+0HrsmE+5mGmxuIE4DdIpI=
8+
install: pip install flake8
9+
script:
10+
- ./run_tests.sh
11+
- flake8 bitly_api

run_tests.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
if [ "$TRAVIS_SECURE_ENV_VARS" = "true" ]; then
4+
export BITLY_ACCESS_TOKEN="$SECURE_ACCESS_TOKEN"
5+
fi
6+
7+
if [ -n "$BITLY_ACCESS_TOKEN" ]; then
8+
nosetests
9+
fi

0 commit comments

Comments
 (0)