Skip to content

Commit

Permalink
Okay, hopefully making a latest release with this one, but we'll see
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaschiasson committed Jul 21, 2019
1 parent 9fde275 commit 98a0bce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
39 changes: 26 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,29 @@ matrix:

cache: cargo

before_script: sed -i "s/version = \"0.0.0\"/version = \"$(VERSION=${TRAVIS_TAG} ./version.sh tags)\"/" Cargo.toml

script:
- cargo build --verbose --release

deploy:
provider: releases
api_key:
secure: ${GITHUB_PERSONAL_ACCESS_TOKEN}
file: "target/release/mir"
skip_cleanup: true
on:
tags: true
jobs:
include:
- stage: build
before_script: sed -i "s/version = \"0.0.0\"/version = \"$(VERSION=${TRAVIS_TAG} ./version.sh tags)\"/" Cargo.toml
script:
- cargo build --verbose --release
- stage: deploy
deploy:
provider: releases
api_key:
secure: ${GITHUB_PERSONAL_ACCESS_TOKEN}
file: "target/release/mir"
skip_cleanup: true
on:
tags: true
- stage: deploy
env:
- TRAVIS_TAG=latest
deploy:
provider: releases
api_key:
secure: ${GITHUB_PERSONAL_ACCESS_TOKEN}
file: "target/release/mir"
skip_cleanup: true
on:
tags: true
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ categories = ["command-line-utilities"]

[badges]
gitlab = { repository = "leschiassons/tools/mir" }
# travis-ci = { repository = "...", branch = "master" }
travis-ci = { repository = "leschiassons/mir", branch = "latest" }
maintenance = { status = "passively-maintained" }

[dependencies]
Expand Down

0 comments on commit 98a0bce

Please sign in to comment.