This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (56 loc) · 1.61 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
language: rust
sudo: required
dist: trusty
rust: stable
cache: cargo
branches:
except:
- /^wip\/.*$/
env:
global:
- RUSTFLAGS="-D warnings"
before_install:
- rustup component add clippy-preview
- rustup component add rustfmt-preview
- cargo deadlinks --version || cargo install cargo-deadlinks
jobs:
include:
- name: Master Themis
install:
- git clone https://github.com/cossacklabs/themis.git /tmp/themis
- cd /tmp/themis && sudo make install && cd -
script:
- cargo fmt -- --check
- cargo clean --doc && cargo doc --no-deps && cargo deadlinks
- cargo clippy --all-targets
- cargo build
- cargo test
- LIBTHEMIS_STATIC=1 cargo build
- LIBTHEMIS_STATIC=1 cargo test
- name: System Themis
addons:
apt:
sources:
- sourceline: "deb https://pkgs.cossacklabs.com/stable/ubuntu trusty main"
key_url: "https://pkgs.cossacklabs.com/gpg"
packages:
- libthemis-dev
script:
- cargo fmt -- --check
- cargo clean --doc && cargo doc --no-deps && cargo deadlinks
- cargo clippy --all-targets
- cargo build
- cargo test
- LIBTHEMIS_STATIC=1 cargo build
- LIBTHEMIS_STATIC=1 cargo test
- name: Vendored Themis
script:
- cargo clean --doc && cargo doc --features "vendored" && cargo deadlinks
- cargo clippy --all-targets --features "vendored"
- cargo build --features "vendored"
- cargo test --features "vendored"
matrix:
allow_failures:
# The latest released version of Themis (0.10) does not include
# proper pkg-config files so the build is failing for now.
- name: System Themis