-
Notifications
You must be signed in to change notification settings - Fork 61
/
.travis.yml
114 lines (104 loc) · 2.86 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: rust
os:
- linux
- osx
rust:
- stable
- beta
cache:
bundler: true
directories:
- /home/travis/.cargo
before_cache:
- rm -rf /home/travis/.cargo/registry
before_install:
- . scripts/travis_ci/install_ruby
- 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.7.4
- os: windows
rust: stable
env: BUILD_RUBY_VERSION=2.7.4
- os: windows
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.7.4
include:
- os: linux
rust: stable
env: RUBY_THREADING=true BUILD_RUBY_VERSION=2.7.4
script:
- |
export WORKING_DIR=`pwd`
echo "Running Eval Example"
cargo run --example eval "a=5;b=9;puts a+b"
echo "Running Ruby Example"
cd "$WORKING_DIR/examples/rutie_ruby_example"
gem install bundler
bundle install
bundle exec rake
echo "Running Ruby GVL Example"
cd "$WORKING_DIR/examples/rutie_ruby_gvl_example"
gem install bundler
bundle install
bundle exec rake
echo "Running Rust Example"
cd "$WORKING_DIR/examples/rutie_rust_example"
export LD_LIBRARY_PATH=`ruby -e "puts RbConfig::CONFIG['libdir']"`
cargo test
- os: osx
rust: stable
env: RUBY_THREADING=true BUILD_RUBY_VERSION=2.7.4
script:
- |
export WORKING_DIR=`pwd`
echo "Running Eval Example"
cargo run --example eval "a=5;b=9;puts a+b"
echo "Running Ruby Example"
cd "$WORKING_DIR/examples/rutie_ruby_example"
gem install bundler
bundle install
bundle exec rake
echo "Running Ruby GVL Example"
cd "$WORKING_DIR/examples/rutie_ruby_gvl_example"
gem install bundler
bundle install
bundle exec rake
echo "Running Rust Example"
cd "$WORKING_DIR/examples/rutie_rust_example"
export DYLD_LIBRARY_PATH=`ruby -e "puts RbConfig::CONFIG['libdir']"`
cargo test
- os: linux
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.7.4
- os: osx
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.7.4
- os: windows
rust: stable
env: BUILD_RUBY_VERSION=2.7.4
- os: windows
rust: stable
env: RUBY_STATIC=true BUILD_RUBY_VERSION=2.7.4
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.5.9
- BUILD_RUBY_VERSION: 2.6.8
- BUILD_RUBY_VERSION: 2.7.4