forked from freedomlayer/offset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
91 lines (81 loc) · 2.96 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: rust
sudo: required
env:
global:
- PROJECT_NAME: offst
- RUST_BACKTRACE: full
git:
depth: 1
# Don't cache the cargo registry:
# See: https://levans.fr/rust_travis_cache.html
before_cache:
- travis/trusty/post/cargo-sweep.sh
- rm -rf $HOME/.cargo/registry
cache:
directories:
- $HOME/.cargo
- $HOME/install
matrix:
fast_finish: true
include:
- env: TARGET=x86_64-unknown-linux-gnu CC=gcc-6 CXX=g++-6 RUSTFLAGS="-C link-dead-code"
os: linux
dist: trusty
rust: nightly-2019-03-20
addons:
apt:
packages:
- gcc-6
- g++-6
sources:
- ubuntu-toolchain-r-test
script:
- travis/trusty/pre/cargo-config.sh
- travis/trusty/pre/capnp.sh
- cargo fmt --all -- --check
- cargo clippy
# We add target dir so that kcov can find the test files to run:
- cargo test --target ${TARGET}
- travis/trusty/post/kcov/try-install.sh
- travis/trusty/post/kcov/run.sh
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly-2019-03-20
osx_image: xcode9.4.1
before_script:
- brew install capnp
script:
- cargo test
- env: TARGET=x86_64-pc-windows-msvc
os: windows
# Used as a temporary fix for windows CI issue in travis.
# See: https://travis-ci.community/t/windows-instances-hanging-before-install/250/25
filter_secrets: false
rust: nightly-2019-03-20
before_script:
# We install vcredist2010 as a requirement for the yasm assembler (Used for ring compilation)
- choco install vcredist2010 capnproto strawberryperl
- mkdir -p $HOME/install/yasm
- curl -o $HOME/install/yasm/yasm.exe https://www.tortall.net/projects/yasm/releases/yasm-1.3.0-win64.exe
- export PATH=$HOME/install/yasm:$PATH
- echo $PATH
script:
- cargo test
before_deploy: travis/before_deploy.sh
deploy:
provider: releases
api_key:
secure: MpKcz5y3DQGkZYpekopOAHkErw8RoJSsnLDWzTQg+bxDD4+30Q+aZ21EK6BIvOgNTcGZCpxKAr1iobr9IVv9tlEZVGeV3eiCeAUCq52uQmDfYf5VkckwF5DLBcKN7FLZZVgKq8m30OLXDyxuwogd39LcKzTKyHURQAa7DHSjomUf+Yu+/+PFMxCisvFKl0Etp/qMbPXuoZya19qH5zDNupf4BsB00qJo0SMF8pPZ/p+m+BGotBNNwLWGrfDt5Pv460/0H8MixkrVnt3/tKmZ3MvhQ42bMgMR5vg+j/Ioeiq2jiUjoLaC0HixL8wyOKyiXiuvAE812P5MEeCA6RrjG2q6CaOM+b4+Az5q/PbM5zzmhjT6wWVmNfIb7hqin7k63cAL5BBAmqcWO9LYazk3/8Eqv+/CVGvZyVixz7/qhbBzA/J5sJiu4O5IHYgtchXUcyZh+YIPwQpfwbHhyUl55wIRqMiOohaBxufYBKGUoe5pH26U/acaY4xSzRKCbXTej5bW+pY3OkeUKZFEETDAPdGcGjrD12CFbSaY5ikYmkFSDKluMcbvXpWCRXvPo+D+c1RPJ6xxxYKA/+6AH3nhQEwX6viEYD/XtxPYUEdbgYcImz/HL5clo6j0uiP/gHmrdGY+tg8btOozNvkNXMKJyEffYMFyuDbPrjWOK712/pU=
file: $HOME/deployment/${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
skip_cleanup: true
on:
tags: true
repo: freedomlayer/offst
branch: master
branches:
only:
# Pushes and PR to the master branch
- master
# Ruby regex to match tags. Required, or travis won't trigger deploys when
# a new tag is pushed. Version tags should be of the form: v0.1.0
- /^v\d+\.\d+\.\d+.*$/