We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0a444 commit c4ef698Copy full SHA for c4ef698
circle.yml
@@ -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
20
+ - crystal spec
0 commit comments