forked from iovxw/rssbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (42 loc) · 1.83 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: rust
sudo: true
cache:
cargo: true
os:
- linux
- osx
rust:
- nightly
services:
- docker
before_deploy: |-
if [ $TRAVIS_OS_NAME = linux ]
then
sudo apt-get update && \
sudo apt-get install -y \
build-essential cmake curl musl-tools && \
rustup target add x86_64-unknown-linux-musl && \
export VERS=1.0.2o && \
curl -O https://www.openssl.org/source/openssl-$VERS.tar.gz && \
tar xvzf openssl-$VERS.tar.gz && cd openssl-$VERS && \
env CC=musl-gcc ./config --prefix=$TRAVIS_BUILD_DIR/openssl && \
make && make install && \
cd .. && rm -rf openssl-$VERS.tar.gz openssl-$VERS && \
env OPENSSL_DIR=$TRAVIS_BUILD_DIR/openssl \
OPENSSL_STATIC=1 \
cargo build --release --target x86_64-unknown-linux-musl && \
zip -j "rssbot-${TRAVIS_TAG}-${TRAVIS_OS_NAME}".zip target/x86_64-unknown-linux-musl/release/rssbot
else
cargo build --release && \
zip -j "rssbot-${TRAVIS_TAG}-${TRAVIS_OS_NAME}".zip target/release/rssbot
fi
deploy:
provider: releases
api_key:
secure: DNi7KnMkYZWm/5zD4ITvalxjnWKU/K0i2gkgooWvJJ/RXAHG89FxyT5/LlX8HtNEqYG38tp7IjQcttqiRXs7ciQyFo2g99fesuxKdXXBTa9oAHZaPNNJ5rydEQRFKmm2EnLkQcmOV/Wsifq5zBD17ixXyXIWGxZ2QRk/zk4yLQkxn2LPX0kM/9iKotPCfVJJcZ6WXYtQsizn7pbp1Ot+vpzspRQ6KkY/h9kv183K6WvEewMvsGANONTfKgiZyZ0vBBo/IRwYKJDmSbpz/RsFcrHb8Nk501jroM2ooFpb8K0jP6F5sEijac8Dc7MYJAr5q3FmdkcqbEUvV9NM39HUXTtJuL8CC01T+Jq99HijGE+fJ7GMjZEU+pprhoq6V17IUEk80TKXfznOXxNoR5DhJYQzFU47UsNDRlq64RXCmp7gFbZLEJXWVwULppbNdeKnmmNjOxfjtN9UsJTuWp6sn+2C33aOYvkDq+e5ZJlih1+VKj0Pp02GeQFpwFZd0Xmgg9aMyo1HvzhEJihb4EkJoYMCghLHjHDxewy+9cD+NhbRMtdrP+fZu+N6IqZpKrDZ8WElP66HJnbejuzMB9Ue8YZbYTJ6ek/avXfh6D93H04GcQv1pEHI9WknqOKB35nTGTd85eA4HRs+K78L0VB1us92fLZtbpUlc+RL1CGXvBc=
file_glob: true
file: "rssbot-${TRAVIS_TAG}-${TRAVIS_OS_NAME}.*"
skip_cleanup: true
on:
repo: iovxw/rssbot
tags: true