Skip to content

Instantly share code, notes, and snippets.

@splattael
Created December 13, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save splattael/71ace5a673a27f5cf28d63c9a1570e2a to your computer and use it in GitHub Desktop.
Save splattael/71ace5a673a27f5cf28d63c9a1570e2a to your computer and use it in GitHub Desktop.
Testing Crystal on GitLab CI
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