Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
3f2ec123
Commit
3f2ec123
authored
Nov 03, 2015
by
MinchinWeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert test command to `green`
parent
e143dca2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
29 deletions
+9
-29
.travis.yml
.travis.yml
+6
-3
CONTRIBUTING.md
CONTRIBUTING.md
+1
-1
run-tests.sh
run-tests.sh
+0
-25
setup.py
setup.py
+2
-0
No files found.
.travis.yml
View file @
3f2ec123
...
@@ -14,10 +14,13 @@ matrix:
...
@@ -14,10 +14,13 @@ matrix:
-
python
:
"
pypy"
-
python
:
"
pypy"
-
python
:
"
pypy3"
-
python
:
"
pypy3"
install
:
install
:
-
"
python
-m
pip
install
pip
--upgrade"
-
"
pip
install
."
-
"
pip
install
."
-
"
pip
install
icalendar"
-
"
pip
install
.[ical]"
-
"
pip
install
pylint"
-
"
pip
install
.[test]"
script
:
"
./run-tests.sh"
script
:
-
"
green
-vvr"
-
"
python
-m
pylint
--errors-only
topydo
test"
# Cache Dependencies
# Cache Dependencies
cache
:
cache
:
directories
:
directories
:
...
...
CONTRIBUTING.md
View file @
3f2ec123
...
@@ -22,7 +22,7 @@ smoothly into topydo.
...
@@ -22,7 +22,7 @@ smoothly into topydo.
*
Run tests with:
*
Run tests with:
./run-tests.sh [python2|python3]
green
Obviously, I won't accept anything that makes the tests fail. When you submit
Obviously, I won't accept anything that makes the tests fail. When you submit
a Pull Request, Travis CI will automatically run all tests for various Python
a Pull Request, Travis CI will automatically run all tests for various Python
...
...
run-tests.sh
deleted
100755 → 0
View file @
e143dca2
#!/bin/bash
if
[
"
$1
"
=
"python2"
]
||
[
"
$1
"
=
"python3"
]
;
then
PYTHON
=
$1
else
# run whatever is active
PYTHON
=
python
fi
# Run normal tests
if
!
$PYTHON
setup.py
test
;
then
exit
1
fi
# pylint is not supported on 3.2, so skip the test there
if
$PYTHON
--version
2>&1 |
grep
'Python 3\.2'
>
/dev/null
;
then
exit
0
fi
if
!
$PYTHON
-m
pylint
--errors-only
topydo
test
;
then
exit
1
fi
exit
0
setup.py
View file @
3f2ec123
...
@@ -38,6 +38,8 @@ setup(
...
@@ -38,6 +38,8 @@ setup(
'ical'
:
[
'icalendar'
],
'ical'
:
[
'icalendar'
],
'prompt-toolkit'
:
[
'prompt-toolkit >= 0.53'
],
'prompt-toolkit'
:
[
'prompt-toolkit >= 0.53'
],
'edit-cmd-tests'
:
[
'mock'
],
'edit-cmd-tests'
:
[
'mock'
],
'test'
:
[
'green'
,
'coverage'
],
'test:python_version!="3.2"'
:
[
'pylint'
],
},
},
entry_points
=
{
entry_points
=
{
'console_scripts'
:
[
'topydo = topydo.cli.UILoader:main'
],
'console_scripts'
:
[
'topydo = topydo.cli.UILoader:main'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment