Skip to content

Commit

Permalink
fix Traivs CI permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
alpha-xone committed May 20, 2019
1 parent a79d8e9 commit 219c13b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ install:

script:
- flake8 --extend-ignore=E701,E501 xbbg
- chmod +x pytest
- pytest --doctest-module --cov -v xbbg

after_success:
Expand Down
6 changes: 4 additions & 2 deletions xbbg/io/param.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pandas as pd

import os
import sys

from ruamel.yaml import YAML

Expand Down Expand Up @@ -57,8 +58,9 @@ def load_info(cat):
if isinstance(ovrd, list) and isinstance(res[cat], list):
res[cat] += ovrd

files.create_folder(pkl_file, is_file=True)
pd.Series(res).to_pickle(pkl_file)
if not hasattr(sys, 'pytest_call'):
files.create_folder(pkl_file, is_file=True)
pd.Series(res).to_pickle(pkl_file)

return res

Expand Down

0 comments on commit 219c13b

Please sign in to comment.