Skip to content

Commit

Permalink
fix releases on appveyor (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Oct 14, 2016
1 parent 8784897 commit 08717a3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ install:
build: false

test_script:
- if [%APPVEYOR_REPO_TAG%]==[false] (
# TODO releases -> master
- if [%APPVEYOR_REPO_BRANCH%]==releases (
if [%APPVEYOR_REPO_TAG%]==[true] (
cargo rustc --target %TARGET% --release --bin hello -- -C lto)
)
) else (
cargo build --target %TARGET% &&
cargo build --target %TARGET% --release &&
cargo test --target %TARGET% &&
cargo test --target %TARGET% --release)
else (
cargo rustc --target %TARGET% --release --bin hello -- -C lto)
)

before_deploy:
- ps: ci\package.ps1
Expand All @@ -51,7 +55,9 @@ cache:

branches:
only:
# Release tags
- /^v\d+\.\d+\.\d+.*$/
- auto
# Releases only
- master
- try
# TODO remove. For testing only
- releases

0 comments on commit 08717a3

Please sign in to comment.