forked from mattn/mruby-uv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (29 loc) · 920 Bytes
/
.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
sudo: required
compiler:
- gcc
- clang
env:
matrix:
- MRUBY_VERSION=master
- MRUBY_VERSION=1.2.0
- MRUBY_VERSION=1.3.0
- MRUBY_VERSION=1.4.0
- MRUBY_VERSION=1.4.1
- MRUBY_VERSION=2.0.0
- MRUBY_VERSION=2.1.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
- ./minirake -v all test