-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (47 loc) · 1.3 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
language: rust
rust :
- stable
- nightly
cache: cargo
addons:
apt:
packages:
- libcurl4-openssl-dev
- libelf-dev
- libdw-dev
- libbfd-dev
- binutils-dev
- cmake
- build-essential
- make
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 --git https://github.com/roblabla/cargo-travis --branch cargo-metadata || echo "cargo-travis already installed" ; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo install-update -a ; fi
os:
- linux
- osx
# - windows
cache: cargo
script:
- cargo test --verbose --all
- cargo build --release
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then mv target/release/esr-lexicon target/release/esr-lexicon-osx ; fi
deploy:
provider: releases
api_key: $GITHUB_API_KEY
file:
- target/release/esr-lexicon
- target/release/esr-lexicon-osx
skip_cleanup: true
on:
repo: eonm-abes/esr-lexicon
branch: release
tags: true
after_success:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then cargo coveralls --exclude-pattern=/.cargo,src/main.rs,scr/cli.rs,/.cargo ; fi
notifications:
email: false