aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-02-15 14:42:42 +0100
committertomaka <pierre.krieger1708@gmail.com>2015-02-15 14:42:42 +0100
commit6f9f5404519877d89e225ca1dc00a8e29ff6ba0f (patch)
tree6d77dede9132a1079660c278c53de2fe00503d50
parent713f269ce8c95d8bd4c55c1f41553c35ab510a27 (diff)
parentc3ab907e04fa206380638545a5b98f92f8b9343d (diff)
downloadglutin-6f9f5404519877d89e225ca1dc00a8e29ff6ba0f.tar.gz
glutin-6f9f5404519877d89e225ca1dc00a8e29ff6ba0f.zip
Merge pull request #271 from tomaka/deploy
Setup deployment on crates.io
-rw-r--r--.travis.yml9
-rw-r--r--Cargo.toml2
-rw-r--r--preupload.patch30
3 files changed, 39 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 6a345bd..a9ad5b4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,6 +3,7 @@ language: rust
env:
global:
- secure: "FfubMXYXu2e7chvdfKBkc+aKPkvoBOb5Idg0KCYuD++qPFIBYg6pUE8H8WvU+V7RsEBu5vshhn3dzjkKs+LXIdo5PQUMZutAgy83g5SGxRn8Ra79GjBVBs6+XOEhFun/+7fGj2Ly/AK6BTDpqyYAhAUS7jIaF6/+JWNwPwEYfdQ="
+ - secure: "kVjHgK+6ivT5tUleNH/m6+69tPf8gkPNSPLsnXrkMJaIeXSnnKKQegP1O0UCThYAUbbwrUGlrKJUngDxkD8jSANhzAULX9t1iXho41InzYBEErTanXBYF8WO1rK1keKjLwiYw4KuvbiBoSeKabzQRwv0kMttxY57+hKVROr5dSg="
install:
- sudo apt-get install libXxf86vm-dev libosmesa6-dev
@@ -16,7 +17,8 @@ os:
- linux
- osx
-after_success: |
+after_success:
+ -|
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc --features "window headless" &&
@@ -24,3 +26,8 @@ after_success: |
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
+ - |
+ [ $TRAVIS_BRANCH = master ] &&
+ [ $TRAVIS_PULL_REQUEST = false ] &&
+ patch Cargo.toml < preupload.patch &&
+ cargo publish --token ${CRATESIO_TOKEN}
diff --git a/Cargo.toml b/Cargo.toml
index 57ccae0..724b2c6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "glutin"
-version = "0.0.4-pre"
+version = "0.0.4"
authors = ["tomaka <pierre.krieger1708@gmail.com>"]
description = "Cross-plaform OpenGL context provider. Important: the crates.io only supports Windows and Linux for the moment."
keywords = ["windowing", "opengl"]
diff --git a/preupload.patch b/preupload.patch
new file mode 100644
index 0000000..fd68a98
--- /dev/null
+++ b/preupload.patch
@@ -0,0 +1,30 @@
+--- Cargo.toml.old 2015-02-15 14:00:02.613705211 +0100
++++ Cargo.toml 2015-02-15 14:00:07.309705073 +0100
+@@ -27,27 +27,6 @@
+ [dev-dependencies]
+ clock_ticks = "*"
+
+-[target.arm-linux-androideabi.dependencies.android_glue]
+-git = "https://github.com/tomaka/android-rs-glue"
+-
+-[target.i686-apple-darwin.dependencies.cocoa]
+-git = "https://github.com/servo/rust-cocoa"
+-
+-[target.x86_64-apple-darwin.dependencies.cocoa]
+-git = "https://github.com/servo/rust-cocoa"
+-
+-[target.i686-apple-darwin.dependencies.core_graphics]
+-git = "https://github.com/servo/rust-core-graphics"
+-
+-[target.x86_64-apple-darwin.dependencies.core_graphics]
+-git = "https://github.com/servo/rust-core-graphics"
+-
+-[target.i686-apple-darwin.dependencies.core_foundation]
+-git = "https://github.com/servo/rust-core-foundation"
+-
+-[target.x86_64-apple-darwin.dependencies.core_foundation]
+-git = "https://github.com/servo/rust-core-foundation"
+-
+ [target.i686-pc-windows-gnu.dependencies]
+ winapi = "0.1"
+ gdi32-sys = "*"