forked from danielpclark/rutie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
79 lines (69 loc) · 1.71 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
70
71
72
73
74
75
76
77
78
79
language: rust
os:
- linux
- osx
rust:
- stable
- beta
- nightly
cache:
bundler: true
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then rvm install --disable-binary "$BUILD_RUBY_VERSION"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then rvm install "$BUILD_RUBY_VERSION"; fi
- |
if [[ "$TRAVIS_OS_NAME" != "windows" ]]
then
rvm use "$BUILD_RUBY_VERSION"
mkdir -p target/debug/deps
cp $(ruby -e 'puts File.join(RbConfig::CONFIG["libdir"], RbConfig::CONFIG["LIBRUBY_ALIASES"].split(" ").first)') target/debug/deps
fi
- ruby --version
- ruby -e 'require "pp"; pp RbConfig::CONFIG'
- rustc -Vv
- cargo -Vv
matrix:
allow_failures:
- rust: beta
- rust: nightly
- env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.5.3
- os: windows
rust: stable
env: BUILD_RUBY_VERSION=2.5.3
- os: windows
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.5.3
include:
- os: linux
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.5.3
- os: osx
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.5.3
- os: windows
rust: stable
env: BUILD_RUBY_VERSION=2.5.3
- os: windows
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.5.3
before_script:
- export PATH=$HOME/.cargo/bin:$HOME/.local/bin:$PATH
script:
- |
cargo build -vv &&
cargo test -vv
after_script:
- cat target/debug/build/rutie-*/output
- cat target/debug/build/rutie-*/stderr
env:
global:
- RUST_BACKTRACE=full
- CI_STDERR_LOG=true
matrix:
- BUILD_RUBY_VERSION: 2.3.8
- BUILD_RUBY_VERSION: 2.4.5
- BUILD_RUBY_VERSION: 2.5.3