-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (45 loc) · 1.29 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
sudo: required
language: rust
rust :
- nightly
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- libbfd-dev
- binutils-dev
- cmake # also required for cargo-update
sources:
- kalakris-cmake
before_script:
- export PATH=$HOME/.cargo/bin:$PATH
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo install cargo-update || echo "cargo-update already installed" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo install cargo-travis || echo "cargo-travis already installed" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo install-update -a ; fi
os:
- windows
- linux
sudo: false
cache: cargo
script:
- cargo test --verbose --all
- cargo build --release --verbose --all
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file:
- target/release/markdown-packager
- target/release/markdown-packager.exe
skip_cleanup: true
on:
repo: Eonm/markdown-packager
all_branches: true
tags: true
after_success:
# measure code coverage and upload to coveralls.io
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo coveralls --exclude-pattern=src/main.rs,src/cli.rs,src/logger/mod.rs,src/errors/mod.rs,/.cargo ; fi
notifications:
email: false