forked from hwchen/keyring-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (54 loc) · 1.49 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
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
dist: xenial
language: rust
services: xvfb
sudo: required
# TODO Rust builds on stable by default, this can be
# overridden on a case by case basis down below.
env:
global:
# TODO Update this to match the name of your project.
- CRATE_NAME=keyring
matrix:
# TODO These are all the build jobs. Adjust as necessary. Comment out what you
# don't need
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
# Windows
#- env: TARGET=x86_64-pc-windows-gnu
# os: windows
#- env: TARGET=x86_64-pc-windows-msvc
# os: windows
# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: beta
- env: TARGET=x86_64-apple-darwin
os: osx
rust: beta
addons:
apt:
packages:
- libdbus-1-dev
- gnome-keyring
- python3
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
before_script:
- git clone https://gitlab.gnome.org/GNOME/libsecret.git
script:
if [ "$TRAVIS_OS_NAME" = "linux" ]; then dbus-run-session -- python3 ci/run_mock.py libsecret/libsecret/mock-service-normal.py & cargo build --verbose; else cargo build --verbose && RUST_TEST_THREADS=1 cargo test --verbose; fi
branches:
only:
# release tags
- /^v\d+\.\d+\.\d+.*$/
- master
notifications:
email:
on_success: never