Skip to content

Commit

Permalink
Must use https url to push
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemo157 committed Dec 29, 2014
1 parent b24760f commit 4e967a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ deploy:
all_branches: true

after_deploy:
- cargo publish --token $CRATES_IO_TOKEN
- ./save_credentials.sh $GITHUB_TOKEN
- ./publish_docs.sh $TRAVIS_TAG
- cargo publish --token "$CRATES_IO_TOKEN"
- ./save_credentials.sh "$GITHUB_TOKEN" "$TRAVIS_REPO_SLUG"
- ./publish_docs.sh "$TRAVIS_TAG"
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "roaring"
version = "0.0.12"
version = "0.0.13"
authors = ["Wim Looman <ghostunderscore@gmail.com>"]
description = "http://roaringbitmap.org for http://www.rust-lang.org"

Expand Down
2 changes: 2 additions & 0 deletions save_credentials.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -e

: ${TRAVIS:?'This should only be run on Travis CI'}
GITHUB_TOKEN=${1:?'Must provide github token'}
REPO_SLUG=${2:?'Must provide repo slug'}

echo "machine github.com login $GITHUB_TOKEN password x-oauth-basic" >> ~/.netrc
chmod 0600 ~/.netrc
git remote set-url --push "https://github.com/$REPO_SLUG"

0 comments on commit 4e967a4

Please sign in to comment.