Skip to content

Commit 8a42a6e

Browse files
authored
Merge pull request #95 from adamcrume/master
Add RELEASING.md
2 parents 82193ac + 3247434 commit 8a42a6e

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,7 @@ install:
3737
- if [[ "$TF_RUST_BUILD_FROM_SRC" == "true" ]]; then pip install --user numpy; fi
3838

3939
script:
40-
- cargo test -vv -j 2 --features tensorflow_unstable
41-
- cargo run --example regression
42-
- cargo run --features tensorflow_unstable --example expressions
43-
- cargo doc -vv --features tensorflow_unstable
44-
- # TODO(#66): Re-enable: (cd tensorflow-sys && cargo test -vv -j 1)
45-
- (cd tensorflow-sys && cargo doc -vv)
40+
- ./test-all
4641

4742
addons:
4843
apt:

RELEASING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Releasing
2+
3+
1. Fetch from the main repo
4+
1. Bump version number of `tensorflow-sys` if necessary
5+
1. Run `git log v${PREVIOUS_VERSION}..HEAD tensorflow-sys` and see if there were any changes. If not, skip.
6+
1. Bump the version in `tensorflow-sys/Cargo.toml`
7+
1. Bump the version for `tensorflow-sys` in the root `Cargo.toml`
8+
1. Bump the version number in `Cargo.toml`
9+
1. Run `./test-all`
10+
1. Run `./run-valgrind`
11+
1. Commit and push the changes. (Push before publishing to ensure that the changes being published are up to date.)
12+
1. Run `cargo publish`. (Publish before tagging in case there are problems publishing and we need to add commits to fix them.)
13+
1. Add a `v${VERSION}` tag and push it
14+
1. Run `./update-docs`
15+
16+
## Post-release
17+
18+
1. Update version numbers of dependencies
19+
1. Remove any deprecated items scheduled to be removed

test-all

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
cargo test -vv -j 2 --features tensorflow_unstable
6+
cargo run --example regression
7+
cargo run --features tensorflow_unstable --example expressions
8+
cargo doc -vv --features tensorflow_unstable
9+
# TODO(#66): Re-enable: (cd tensorflow-sys && cargo test -vv -j 1)
10+
(cd tensorflow-sys && cargo doc -vv)

0 commit comments

Comments
 (0)