Skip to content

Commit c4ef698

Browse files
committed
chore(circle): Add circle.yml
1 parent 4b0a444 commit c4ef698

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

circle.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
machine:
2+
environment:
3+
CRYSTAL_VERSION: "0.20.1"
4+
PATH: "${PATH}:${HOME}/.crystal/bin"
5+
CRYSTAL_URL: "https://github.com/crystal-lang/crystal/releases/download/${CRYSTAL_VERSION}/crystal-${CRYSTAL_VERSION}-1-linux-x86_64.tar.gz"
6+
dependencies:
7+
cache_directories:
8+
- ".crystal"
9+
pre:
10+
- |
11+
if [[ ! -e .crystal/bin/crystal || $(crystal --version | grep -P -o '\d+\.\d+\.\d+') != "${CRYSTAL_VERSION}" ]]; then
12+
mkdir .crystal
13+
wget "${CRYSTAL_URL}" -O crystal.tar.gz &&\
14+
tar -zxvf crystal.tar.gz -C .crystal --strip-components=1
15+
fi
16+
override:
17+
- crystal deps
18+
test:
19+
override:
20+
- crystal spec

0 commit comments

Comments
 (0)