Skip to content

Commit 6c66d44

Browse files
committed
Merge pull request gregmalcolm#41 from brainstorm/master
Enlightenment support for python2 at Travis-CI
2 parents e9a287a + e2bd99a commit 6c66d44

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: python
2+
3+
python:
4+
- 2.7
5+
script:
6+
- cd python2
7+
- python contemplate_koans.py about_asserts # add further koans here separated by spaces
8+
notifications:
9+
email: false
10+
11+
# Some other koans (see runner/sensei.py or "ls koans" to see the light):
12+
#
13+
# about_none about_lists about_list_assignments about_dictionaries
14+
# about_strings about_tuples about_methods about_control_statements
15+
# about_true_and_false about_sets ...

python2/runner/mountain.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ def walk_the_path(self, args=None):
1818
"Run the koans tests with a custom runner output."
1919

2020
if args and len(args) >=2:
21-
self.tests = unittest.TestLoader().loadTestsFromName("koans." + args[1])
22-
23-
self.tests(self.lesson)
24-
self.lesson.learn()
21+
args.pop(0)
22+
for arg in args:
23+
self.tests = unittest.TestLoader().loadTestsFromName("koans." + arg)
24+
self.tests(self.lesson)
25+
self.lesson.learn()
2526
return self.lesson

0 commit comments

Comments
 (0)