-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.travis.yml
More file actions
28 lines (28 loc) · 898 Bytes
/
.travis.yml
File metadata and controls
28 lines (28 loc) · 898 Bytes
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
sudo: required
compiler:
- gcc
- clang
env:
matrix:
- MRUBY_VERSION=master
- MRUBY_VERSION=1.4.0
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
script:
- export MRUBY_CONFIG="$TRAVIS_BUILD_DIR/.travis_config.rb"
- 'if [ "$MRUBY_VERSION" = "master" ] ; then
git clone --depth 1 "https://github.com/mruby/mruby.git" mruby-$MRUBY_VERSION;
else
curl -L "https://github.com/mruby/mruby/archive/$MRUBY_VERSION.tar.gz" > mruby-$MRUBY_VERSION.tar.gz;
tar xf mruby-$MRUBY_VERSION.tar.gz;
fi'
- cd mruby-$MRUBY_VERSION
- 'if [ "$MRUBY_VERSION" = "master" ] ; then
rake -m test:build && rake test:run
else
./minirake -v all test
fi'