Skip to content

Commit

Permalink
Absolute path for Travis dist folder [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Jan 2, 2018
1 parent 6a61264 commit e1b9582
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ def travis_build_package():
return

name, version = matching.groups()
create_package(name, '../dist')
abs_dist_path = Path(os.environ['TRAVIS_BUILD_DIR'], 'dist')
create_package(name, str(abs_dist_path))

print("Produced:\n{}".format(list(Path('./dist').glob('*'))))
print("Produced:\n{}".format(list(abs_dist_path.glob('*'))))

pattern = "*{}*".format(version)
packages = list(Path('./dist').glob(pattern))
Expand Down

0 comments on commit e1b9582

Please sign in to comment.