Skip to content

Commit

Permalink
ci: add winx64py36 build, fix dropbox paths ans use PowerShell in App…
Browse files Browse the repository at this point in the history
…Veyor artifact push
  • Loading branch information
swistakm committed Aug 11, 2017
1 parent fcf8b14 commit 53f2fab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ environment:
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 14 Win64"

- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36-x64"
PYTHON_ARCH: 64
MSVC_VERSION: "Visual Studio 14 Win64"

Expand Down Expand Up @@ -78,9 +78,12 @@ build_script:
- "%PYTHON%/python.exe -m pytest -v --color=yes"

on_success:
- if [%APPVEYOR_REPO_BRANCH%]==[master] (
python.exe -m pip install dropbox &&
python.exe ci/dropbox_upload.py $(python.exe setup.py --version))
- ps: |
if ($APPVEYOR_REPO_BRANCH -eq master)
{
python.exe -m pip install dropbox
python.exe ci/dropbox_upload.py $(python.exe setup.py --version)
}
artifacts:
- path: dist\*
3 changes: 2 additions & 1 deletion ci/dropbox_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
local_path = os.path.join(root, filename)
relative_path = os.path.relpath(local_path, 'dist')
# note: it is a dropbox path so there is no need for os.path.join()
dropbox_path = "/".join(sys.argv[1:] + [relative_path])
# note: dropbox paths must start with /
dropbox_path = "/" + "/".join(sys.argv[1:] + [relative_path])

with open(local_path, 'rb') as f:
print("uploading %s" % local_path)
Expand Down

0 comments on commit 53f2fab

Please sign in to comment.