Uses old Rust 2015
0.1.0 |
|
---|
#25 in #specify
3KB
Calcver rust example
.calcver.yml
Defaults are provided for most fields (see calcver-cli/#12). However, you have to specify at least one action to perform:
# -- uncomment to override defaults
#root: .
#repository_type: git
#prerelease_prefix: rc
#tag_regex: \d+\.\d+\.\d+
#major_regex: "BREAKING CHANGE:"
#minor_regex: ^feat
#patch_regex: ^fix
# specify cargo toml file
cargo: Cargo.toml
# OR a list of scripts
actions:
- .\bin\build.sh
Travis
To auto set version on build, setup a .travis.yml
like this:
before_install:
- cargo install calcver --bins
script: calcver && cargo build
- Install the crate (including binaries)
- Run calcver to bump version
- Build/package/publish