-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
44 lines (44 loc) · 2.31 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
43
44
language: rust
sudo: required
env:
global:
- PROJECT_NAME=gg
matrix:
fast_finish: true
include:
- os: linux
rust: nightly
env: TARGET=x86_64-linux
- os: osx
rust: nightly
env: TARGET=x86_64-darwin
script:
- date
- cargo test
before_deploy:
- git clean -fdx .
- cargo build --release
- mv ./target/release/gg .
- tar cvfz $PROJECT_NAME-$TRAVIS_TAG-$TARGET.tar.gz ./gg
- PREVIOUS_TAG=$(git tag | tail -2 | head -1)
- echo 'Changelog:'
- git log ${PREVIOUS_TAG}..${TRAVIS_TAG} --oneline
- export GITHUB_RELEASE_NAME="v${TRAVIS_TAG}"
deploy:
- provider: releases
api_key:
secure: bYV0M05yNa9+mIKJUcruPE1uLVkXVIDOce/Aid7kHI/U8mokgXEa/aSnZvX0nlDfUCAUKYt8Idp+eojvGkt3zXDg8OC+K0EvcxMgLBx2NDW+gx/eaPbNmGkYf0pFR32crpBcdfkAdWChtdwVifiZmehavSoz7hij+I5jAowaAN4iuvZyJ8tOw/TQf8oGTA7nBW1FEtnrcqU14rXzs3aGDlU2j8F6kR++P83uwEf8Fzagi6Y66RhjKcD25j6PZI16hKqJeVh6qt9ugD3pDn0V/rTxs15uy5ISlvtadvp/GwiQOrAsiZ7q7sb0EfPbnqBxZCXeqTzFaNtvLLeUHXBbz2vnMk5IBPGdUraLqrtlhJRQUJcNkkdDYd5n1yeof2/x1SRyZqiekbG6v3bYaXxpTWIuOnovyqyNwngGkv5DdzbWwS1xhzCufryeQqDMNjacLeUMAyyxXUHIWHYfwgV31b4O0FyfLr0IIL8duxMsPY2hdzPjooNZ6kOs+x9D9XEaNlxiHtPyjhnOqWAQ590t8gFz0nqseJTV19tkkous37JfmjEwzaLOsbG5neamZKKtQJ62VCKSSTnEB0M152F833gb28G/gARV/40hN50TMGodT35KTZmGUDsAFBhkyd9jqlR/1RJbDZgaOe+YdEmb/IxHh0sSEwA3uqOidZQwmak=
file: "$PROJECT_NAME-$TRAVIS_TAG-$TARGET.tar.gz"
skip_cleanup: true
on:
tags: true
repo: thecasualcoder/gg
condition: $TRAVIS_RUST_VERSION = stable && $TARGET != ""
- provider: cargo
token:
secure: I2EkMJeIMaMm9MpgYK1h4Bv0qFQb2MgAEdEo4YyPmqM8SolPv1/wk/RTFmBGbYzIdh+yQC5p2p+ap2cVVmuBaDoP1r50Jo+28m2vbo2+NnHntM7EsTSkyJHJG//NsMqaIyyR9+o8VyYb8JgAXErP8aLCqrIhurwbf2Qq8O/NSD3axgSGB6y63htOQ2iQmXwiRd5+A52Nyyg5cD/qLl9sQzjHdey1UTi6NsLWz2FmTmIzI/Rj4/KOODPZ1xR6ONFER+pmMl2iIM0I4t8vTmVGWJBtcU2keEfm+Q7TRbBtHQKBg2K2t7xNciK5hrDD2bfSw21YIBzNC+Pg46HKWqMN0q9JbbZL20NzzArqql2PLsFer9WX6oLKHV4RE1NWp5chUMSixefqH0Kg6UdmNPGmBJfWliQN+cCiQvBzJ164Zs/1w5D1hKjOrYxZeIbk3Jk8/g6GED6eUwBeWMeuyGVJUdSUQ2low37si5RN1t3RcgZuL5ij9woLK2lgBL2D2mQS8ZB0fo5G/UigTYs9112gFOdAfUAOEOcmIkIb46/NOv890Bi1Jj1ejOqFNYlTuKs0Xw0+kyepi+1VatuMLZK5Fu2+RTXeZGjl+6SOM6Y2oM22Txb4sxdkIKkTFUGce4w3xesVRGCCKT1O9uEFCZQ7HCVlK6qbcxXP8ghKDGeuj0A=
skip_cleanup: true
on:
tags: true
repo: thecasualcoder/gg
condition: $TRAVIS_RUST_VERSION = stable && $TARGET != ""