Skip to content
This repository has been archived by the owner on Oct 16, 2022. It is now read-only.

Commit

Permalink
add travis test
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanb committed Jun 10, 2015
1 parent 42947be commit 1ca2a08
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: python
python:
- "3.3"
- "3.4"

# command to install dependencies
install: "pip install -r requirements-travis.txt"

# command to run tests
script: ./citests.sh
19 changes: 19 additions & 0 deletions citests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash

# Exit when any command fails
set -e

export PYTHONPATH=`pwd`

echo '============================='
echo '= RUNNING NOSETESTS ='
echo '============================='
echo ''
python nosetests.py

echo ''
echo '============================'
echo '= RUNNING DOCTESTS ='
echo '============================'
echo ''
cd docs && make doctest
3 changes: 3 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
Fundoshi - The universal manga data extractor
=============================================

.. image:: https://travis-ci.org/nhanb/fundoshi.svg?branch=master
:target: https://travis-ci.org/nhanb/fundoshi

Fundoshi is nifty python library that lets you search for and extract manga
series' data from many online manga reader websites.

Expand Down
5 changes: 5 additions & 0 deletions requirements-travis.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
beautifulsoup4
requests
Sphinx
flake8
requests-cache

2 comments on commit 1ca2a08

@lewtds
Copy link

@lewtds lewtds commented on 1ca2a08 Jun 10, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis viết được nhiều lệnh đấy. Chỗ script thay string thành list of string là được. Dependency thì nên viết setup.py sau này push lên PyPI tiện hơn.

@nhanb
Copy link
Owner

@nhanb nhanb commented on 1ca2a08 Jun 10, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chuẩn, thanks! 💃

Tui đợi viết xong tính năng cơ bản rồi mới viết setup.py đặng bưng lên PyPi. Còn chuyện chạy script thì tui vẫn thấy viết 1 shell script dễ nhìn + chạy thử hơn là viết 1 list trên .travis.yml.

Nhiều thứ hay ho quá, càng dấn thân vô càng thấy yêu nghề =))

Also, English is the preferred language lol.

Please sign in to comment.