forked from crystal-lang/crystal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (50 loc) · 1.7 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
language: c
os:
- linux
- osx
before_install: |
case $TRAVIS_OS_NAME in
linux)
curl http://dist.crystal-lang.org/apt/setup.sh | sudo bash
sudo apt-get -q update
;;
osx)
brew update
brew tap manastech/crystal
;;
esac
install: |
case $TRAVIS_OS_NAME in
linux)
sudo apt-get install libgmp3-dev crystal
sudo sed -i -e 's/.*LIBRARY_PATH.*/export LIBRARY_PATH=\"$INSTALL_DIR\/embedded\/lib${LIBRARY_PATH:\+:$LIBRARY_PATH}\"/' /opt/crystal/bin/crystal
curl "http://crystal-lang.s3.amazonaws.com/llvm/llvm-3.5.0-1-linux-x86_64.tar.gz" | tar xz -C /tmp
curl "http://crystal-lang.s3.amazonaws.com/pcl/libpcl-1.12-1-linux-x86_64.tar.gz" | tar xz -C /tmp
export LIBRARY_PATH=/opt/crystal/embedded/lib:/tmp/libpcl-1.12-1/lib
;;
osx)
brew install gmp libevent crystal-lang
curl "http://crystal-lang.s3.amazonaws.com/llvm/llvm-3.5.0-1-darwin-x86_64.tar.gz" | tar xz -C /tmp
export LIBRARY_PATH=/usr/local/opt/crystal-lang/embedded/lib
;;
esac
export PATH=/tmp/llvm-3.5.0-1/bin:$PATH
export CRYSTAL_CONFIG_VERSION=ci
export CRYSTAL_CACHE_DIR=/tmp/crystal
script:
- make crystal spec
- find samples -name "*.cr" | xargs -L 1 ./bin/crystal build --no-codegen
notifications:
irc:
channels:
- "irc.freenode.net#crystal-lang"
use_notice: true
skip_join: true
template:
- "%{repository_slug}#%{commit} (%{branch} - %{commit_subject}): %{message} %{build_url}"
slack:
secure: Ng3nTqGWY+9p1pS6yjGqDhmRvdgbIZgTNpMWbO/ngwpCyicmD3jafZkShqqXbULZTJJr3OxIGzi6GHGusT0Ic/Pi9JCM3X3v/xuBruKIR+EnNyPo7IL4ZYAlwnXyJHlCHHDBq0gSHGvGJwsXn6IgZBPRfeIq+CCyQHVPyvc9EHE=
branches:
only:
- master
- gh-pages