-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (46 loc) · 1.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
#
# .travis.yaml contains YAML-formatted (http://www.yaml.org/) build
# instructions for continuous integration via Travis CI
# (http://docs.travis-ci.com/).
#
sudo: required
dist: trusty
os:
- linux
- osx
# Only use continuous integration on the master branch
branches:
only:
- master
# Send notifications on every build failure to comitter and author. Never send
# notifications for sucessful builds.
notifications:
email:
on_success: never
# We're not really using C (but Red and Rebol, of course), but setting language
# to C disables Travis CI's Ruby-specific defaults.
language: c
# We run the Red and Red/System test suites separately, to don't run against
# Travis CI's current 50 minute execution time limitation.
env:
- TEST_SUITE=tests
- TEST_SUITE=system/tests
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg --add-architecture i386; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi
install:
# 32b "multiarch" libraries are necessary to run 32b binaries on the 64b
# Travis VM.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libc6:i386 libcurl3:i386; fi
# Rebol 2 is necessary for building Red.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget http://static.red-lang.org/tmp/rebol; chmod +x rebol; sudo mv ./rebol /usr/local/bin/rebol2; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget http://static.red-lang.org/tmp/rebol-osx; chmod +x rebol-osx; sudo mv ./rebol-osx /usr/local/bin/rebol2; fi
script:
- rebol2 -qws ${TEST_SUITE}/run-all.r --batch
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/f9318a4a24c9157f20d1
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false