forked from shadowsocks/shadowsocks-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (61 loc) · 1.91 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
sudo: false
language: rust
jobs:
include:
- os: windows
rust: stable
- os: osx
rust: stable
osx_image: xcode11.3
env: SODIUM_USE_PKG_CONFIG=1
- os: linux
rust: stable
dist: bionic
env: SODIUM_USE_PKG_CONFIG=1
- os: linux
rust: beta
dist: bionic
env: SODIUM_USE_PKG_CONFIG=1
- os: linux
rust: nightly
dist: bionic
env: SODIUM_USE_PKG_CONFIG=1
allow_failures:
# FIXME: Travis build success but tests crash
- os: osx
- os: windows
env:
- RUSTFLAGS="-Ctarget-feature=+aes,+ssse3" RUSTDOCFLAGS="-Ctarget-feature=+aes,+ssse3" RUST_BACKTRACE=1
addons:
apt:
packages:
- libssl-dev
- libsodium-dev
homebrew:
packages:
- libsodium
install:
# Install OpenSSL on Windows
- if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
curl -Lo "openssl-1.0.2c-win64-mingw.zip" "https://dl.bintray.com/vszakats/generic/openssl-1.0.2c-win64-mingw.zip";
unzip "openssl-1.0.2c-win64-mingw.zip" -d "/c/OpenSSL";
export OPENSSL_LIB_DIR=/c/OpenSSL/openssl-1.0.2c-win64-mingw;
export OPENSSL_INCLUDE_DIR=/c/OpenSSL/openssl-1.0.2c-win64-mingw/include;
export OPENSSL_DIR=/c/OpenSSL/openssl-1.0.2c-win64-mingw;
fi
# - if [ "${TRAVIS_OS_NAME}" = "windows" ]; then
# choco install openssl;
# export OPENSSL_DIR='/c/Program Files/OpenSSL-Win64/';
# export OPENSSL_STATIC=1;
# fi
script:
- cargo test --no-fail-fast
# - cargo test --no-fail-fast --no-default-features
# - cargo test --no-fail-fast --features aes-pmac-siv
# - cargo test --no-fail-fast --features single-threaded
# - cargo test --no-fail-fast --features openssl-vendored
# - cargo test --no-fail-fast --no-default-features --features "local-http local-http-rustls"
- if [ "${TRAVIS_OS_NAME}" = "linux" -o "${TRAVIS_OS_NAME}" = "osx" ]; then
cargo test --no-fail-fast --features local-redir;
fi
# cache: cargo