-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (63 loc) · 2.18 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: rust
rust:
- stable
cache: cargo
env:
global:
- CRATE_NAME=polsim
stages:
- test
- release
jobs:
fast_finish: true
include:
- stage: test
os: linux
script:
- cargo build --verbose
- cargo test --verbose
- stage: test
os: osx
script:
- cargo build --verbose
- cargo test --verbose
- stage: test
os: windows
script:
- cargo build --verbose
- cargo test --verbose
- stage: release
os: linux
script:
- cargo build --release --verbose
- cp target/release/$CRATE_NAME $CRATE_NAME
- tar -czf $CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz $CRATE_NAME
env: TARGET=x86_64-unknown-linux-gnu
if: tag =~ /^\d+\.\d+\.\d+/
- stage: release
os: osx
env: TARGET=x86_64-apple-darwin
script:
- cargo build --release --verbose
- cp target/release/$CRATE_NAME $CRATE_NAME
- tar -czf $CRATE_NAME-$TRAVIS_TAG-$TARGET.tar.gz $CRATE_NAME
if: tag =~ /^\d+\.\d+\.\d+/
- stage: release
os: windows
script:
- cargo build --release --verbose
- cp target/release/$CRATE_NAME $CRATE_NAME.exe
- 7z a $CRATE_NAME-$TRAVIS_TAG-$TARGET.zip $CRATE_NAME.exe
env: TARGET=x86_64-pc-windows-msvc
if: tag =~ /^\d+\.\d+\.\d+/
deploy:
provider: releases
name: v$TRAVIS_TAG
api_key:
secure: "mP0ArvjTVEq2VaunlzfAzS9yDTrzaPIF+rcSUXZF0xAuYNG4Ownn7sNl5K9bjBsxgR00hlmQBA7JMkcvMveSRC0Zf2OQ5QSLRxqKweRz5lCvBge3H+SxvBVryI4e33oRBMPtPfMkpI+O7tzBgT7sb0phihSrpJ76ufA5q4H3t1+qT9dVaqSmsSyQE0eulI+GCuGK/A2O0yDndQb+/NxlXRAXtOi2IyBymdOjFkShrB+WlYUupi3VA1efqBoa6t/8DjgPSk2DdNL+q0fYfyjaTr8A0JIrdPBAadmkZEY1vZFlbcXvEACwew8bQttzvGcbNhD/nqVABBtWns6se3Bu1IQ9pWpphA8S87iwhRSwPqzWdr+xpi4zs58bX8+6eRi65yqAGCN5gain6wXbepVwfsk2W9u1vtt7Gq09LIaYnqxjEVJziviUaHNEbfMsu0G0Ni337J2+sNHhPusx3sCiV18yrjxXnwejCV4MM9N6sgrX0gIBNHTBvDGs0nMdIZT6MBY9zL1TRTyywoO+/wLHcNlLAczJ2h7baBLki40M8fFlNh/6OEESMEzFt9++9uIT/PZTluvXSx5fmHRRWdp5SZ2nw4/a/MpUdrENdbS8gPMNVCb7M6QnpPD6I7b4cFxCb2gzot9h2ClsDPwvF9N97jW5xtUSvcabuDKOvaSEMPc="
draft: true
file_glob: true
skip_cleanup: true
on:
tags: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*