Skip to content

Commit

Permalink
CI: AppVeyor issue on running notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
tritemio committed Jul 19, 2017
1 parent 3ea6518 commit 9f33896
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ script:
- python -Wd fretbursts/tests/importtest.py
- py.test -v
- cd notebooks
- if [[ $TRAVIS_PYTHON_VERSION != '2.7' ]]; then python ../fretbursts/tests/nbrun.py . ; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then python ../fretbursts/tests/nbrun.py --exclude-list dev/exclude-py27.txt . ; fi
- python ../fretbursts/tests/nbrun.py --exclude-list dev/exclude-py27.txt .

sudo: false
3 changes: 1 addition & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ test_script:
- python -Wd fretbursts/tests/importtest.py
- py.test -v
- cd %APPVEYOR_BUILD_FOLDER%\notebooks
- ps: 'if($env:PYTHON_VERSION -ne "2.7"){python ../fretbursts/tests/nbrun.py .}'
- ps: 'if($env:PYTHON_VERSION -eq "2.7"){python ../fretbursts/tests/nbrun.py --exclude-list dev/exclude-py27.txt .}'
- python ../fretbursts/tests/nbrun.py --exclude-list dev/exclude-py27.txt .

after_test:
- cd %APPVEYOR_BUILD_FOLDER%
Expand Down
2 changes: 1 addition & 1 deletion fretbursts/tests/nbrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def check_out_path(notebook_path, out_path, ext, save):
out_path.mkdir(parents=True) # py2 compat

exclude_list = []
if args.exclude_list is not None:
if args.exclude_list is not None and sys.version_info[0] == 2:
with open(args.exclude_list) as f:
exclude_list = [s.strip() for s in f.readlines()]

Expand Down

0 comments on commit 9f33896

Please sign in to comment.