Created
December 13, 2016 15:20
-
-
Save splattael/71ace5a673a27f5cf28d63c9a1570e2a to your computer and use it in GitHub Desktop.
Testing Crystal on GitLab CI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
DEBIAN_FRONTEND: noninteractive | |
APT_PACKAGES: libgc-dev libpcre3-dev libevent-dev | |
cache: | |
key: "crystal" | |
paths: | |
- .crystal | |
.test-crystal: &test-crystal | |
before_script: | |
- apt-get -yq update && apt-get install -yq $APT_PACKAGES | |
script: | |
- uname -m | |
- make std_spec clean | |
- make crystal spec doc | |
- find samples -name "*.cr" | xargs -L 1 ./bin/crystal build --no-codegen | |
- ./bin/crystal tool format --check samples spec src | |
x86_64: | |
<<: *test-crystal | |
image: jhass/crystal-build-x86_64 | |
i386: | |
<<: *test-crystal | |
image: jhass/crystal-build-i386 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment