Skip to content

Commit

Permalink
Use proper powershell to get pycamverter version
Browse files Browse the repository at this point in the history
  • Loading branch information
naderm committed Sep 8, 2017
1 parent ebfac29 commit 1409270
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ before_install:
export DEPLOY_FILE=out/make/CAMV-darwin-x64-${CAMV_VERSION}.zip;
fi;
- "npm i -g [email protected]"
- "npm i -g yarn@0.27.5"
- "npm i -g yarn"
- "npm --version"
- "yarn --version"

Expand Down
5 changes: 3 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ install:
# - "yarn"
# - "npm install sqlite3 --build-from-source"
# - "yarn run electron-version"
- ps: $pycamverter_version = git ls-remote --tags git://github.com/white-lab/pycamverter.git | cut -f 2 | cut -d / -f 3 | cut -d ^ -f 1 | sort --version-sort | tail -n1
- ps: $pycamverter_version = [system.String]::Join(".", (git ls-remote --tags git://github.com/white-lab/pycamverter.git | Foreach-object { [System.Version] ($_ -replace '\w+\s+refs/tags/v([\d\.]+)[\^\{\}]*','${1}') } | sort | Select-Object -last 1))
- ps: "echo ${pycamverter_version}"
- ps: $pycamverter_version = "v0.10.0"
# - ps: $pycamverter_version = "v0.10.0"
# - ps: "echo ${pycamverter_version}"
- ps: Start-FileDownload https://github.com/white-lab/pycamverter/releases/download/${pycamverter_version}/PyCAMVerter.exe

# test_script:
Expand Down

0 comments on commit 1409270

Please sign in to comment.