From 022f2096ff7ab6c19310f791016c6b7305b8a6ad Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Mon, 14 May 2018 18:12:45 -0500 Subject: [PATCH] add travis --- .travis.yml | 31 +++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..53f0661 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: rust +rust: +- stable +- beta +- nightly +os: +- linux +- osx +matrix: + fast_finish: true + +script: +- cargo build --all +- cargo test --all + +before_deploy: +- cargo build --release --all +- mkdir -p release +- cp target/release/screenshot release +- cp LICENSE release +- tar czvf monto-rs-$(TARGET)-$(TRAVIS_TAG).tar.gz release + +deploy: + provider: releases + api_key: + secure: ZCA3+LjTzliSC3m9DjcEYZOsRhaI5r9LAHfuw5HuaLYbprbEVwqLCTV1ioe7F9dLPembqGoGEsVnWAsrAUP0C9BRUuOrZMYvTOS3qTwSX7pPc/fsNUzP9uc6XPIMQ7/QeakmpgVYvObt9/1Wxui715nPmj9h+YIB4P3BUT8VsufzG0LogNSTwkhicM19O9oFhoCg39qQBueBe2SrS35dqvofSoJlEk2wSBBesQ9xuw9goP8ZkTKD3w/ZmPUS9RuWi1FSzsUcnLGCEMwYxLk9CBnG9I0G8kvDF194UYq7YnlaK4sn4AG5UxkMYcWN573vb+KX56VoHa57Z7qNIoUy1Kk0MatIjPIxd2LQJSTl7I5sckfoq61wihRYYj8R1qI4V4mqBX+MHFwyfs7/XT2pVfPHeflvJ4MMZW5t+OYWv8LfwFgufbLyYS79ZkBIjVnk2ligSv8kSPcuTtnSzp6UJlHsEbRDlWcciAYA92d2bggz7BrSG+X1eDAVto+bGdAeAp5zgRPVKwbpA9aD52y2GmlMh4Z+GcjhF6U7z+2AYRalH9X8d4mSdQ7KuhFfigoR/84tO+kC5QeKnf3FfgXPzOimt8xCsd2MFDrg2sPvgFkQGyM0ihB9NnNBfiFrQrRP3+DyTCI3TqOfkz8QKe4h7DxefR1t+YvheNZjGtC8C+E= + file: screenshot-$(TARGET)-$(TRAVIS_TAG).tar.gz + on: + tags: true + repo: iptq/screenshot + skip_cleanup: true diff --git a/README.md b/README.md index 4fbf6af..b1879a2 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ Bindings for `slop` have been generated by `bindgen`. Installation ------------ +You need `slop` (select operation, not the ruby one) installed in order to build this. + Make sure you have cargo installed. Then run ```