-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 973 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
language: generic
dist: xenial
branches:
only:
- master
- develop
before_script:
- CRYSTAL_VERSION=0.29.0
- echo CRYSTAL_VERSION=${CRYSTAL_VERSION}
script:
- wget -q https://github.com/crystal-lang/crystal/releases/download/${CRYSTAL_VERSION}/crystal-${CRYSTAL_VERSION}-1-linux-x86_64.tar.gz
- tar xf crystal-${CRYSTAL_VERSION}-1-linux-x86_64.tar.gz
- sudo cp crystal-${CRYSTAL_VERSION}-1/bin/crystal /usr/local/bin/
- sudo cp crystal-${CRYSTAL_VERSION}-1/bin/shards /usr/local/bin/
- sudo mv crystal-${CRYSTAL_VERSION}-1 /usr/local/lib/crystal
- sudo apt-get -qq update && sudo apt-get -qq install -y libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev libevent-dev
- export CRYSTAL_PATH="/usr/local/lib/crystal/share/crystal/src:lib" && shards update
- export CRYSTAL_PATH="/usr/local/lib/crystal/share/crystal/src:lib" && crystal tool format spec src --check
- make && make secure_check
cache:
directories:
- .shards