This repository has been archived by the owner on Oct 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nhanb
committed
Jun 10, 2015
1 parent
42947be
commit 1ca2a08
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
beautifulsoup4 | ||
requests | ||
Sphinx | ||
flake8 | ||
requests-cache |
1ca2a08
There was a problem hiding this comment.
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ếtsetup.py
sau này push lên PyPI tiện hơn.1ca2a08
There was a problem hiding this comment.
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ạyscript
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.