Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
add windows release with appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
vitiral committed Nov 28, 2016
1 parent 9d252ae commit dd1c496
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rst_app"
version = "0.2.8"
version = "0.2.9"
description = "rst: the requirements tracking tool made for developers"
repository = "https://github.com/vitiral/rst"
readme = "README.md"
Expand Down
21 changes: 10 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
environment:
global:
# This will be used as part of the zipfile name
# TODO change the project name
# DONE change the project name
PROJECT_NAME: rst
# TODO feel free to delete targets/channels you don't need
# DONE feel free to delete targets/channels you don't need
matrix:
# Stable channel
- TARGET: i686-pc-windows-gnu
Expand All @@ -30,18 +30,18 @@ install:
build: false

# Equivalent to Travis' `script` phase
# DONE modify this phase as you see fit
test_script:
- cargo build --verbose
- cargo run
- cargo test
- cargo run -- check
- cargo test

before_deploy:
# Generate artifacts for release
- cargo build --release
- mkdir staging
# TODO update this part to copy the artifacts that make sense for your project
- copy target\release\hello.exe staging
# DONE update this part to copy the artifacts that make sense for your project
- copy target\release\rst.exe staging
- cd staging
# release zipfile will look like 'rust-everywhere-v1.2.3-x86_64-pc-windows-msvc'
- 7z a ../%PROJECT_NAME%-%APPVEYOR_REPO_TAG_NAME%-%TARGET%.zip *
Expand All @@ -51,20 +51,19 @@ deploy:
description: 'Windows release'
# All the zipped artifacts will be deployed
artifact: /.*\.zip/
# BIG TODO
# TODO Regenerate this auth_token for your project, this one won't work for you. Here's how:
# DONE Regenerate this auth_token for your project, this one won't work for you. Here's how:
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
# `public_repo` scope enabled
# - Then go to 'https://ci.appveyor.com/tools/encrypt' and enter the newly generated token.
# - Enter the "encrypted value" below
auth_token:
secure: xv0gNKR4j8Zyr3yFkqBADMdkR/6CMOp5ixVFc1uf8SHOndhTXHns4dPpQJKS6MWx
secure: e2pyiI8N9p6VD2W2ZdetwUTm7FsBBQ7E7dsHpR3b5GzH+qE2JgjS9XYRjo72SwwF
provider: GitHub
# deploy when a new tag is pushed and only on the stable channel
on:
# channel to use to produce the release artifacts
# NOTE make sure you only release *once* per target
# TODO you may want to pick a different channel
# DONE you may want to pick a different channel
CHANNEL: stable
appveyor_repo_tag: true

Expand All @@ -73,4 +72,4 @@ branches:
- master
# IMPORTANT Regex to match tags. Required, or appveyor may not trigger deploys when a new tag
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
- /^v\d+\.\d+\.\d+.*$/
- /^v\d+\.\d+\.\d+.*$/

0 comments on commit dd1c496

Please sign in to comment.