.gitlab-ci.yml 569 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2
image: alpine:3.8

Eugen Rochko's avatar
Eugen Rochko committed
3
before_script:
Chris Hobbs's avatar
Chris Hobbs committed
4
  - apk -U upgrade && apk add build-base openssl-dev crystal shards llvm5-dev llvm5-static
Eugen Rochko's avatar
Eugen Rochko committed
5

Eugen Rochko's avatar
Eugen Rochko committed
6 7
build:
  script:
8 9 10
    - shards install --production
    - echo 'require "llvm/lib_llvm"; require "llvm/enums"; require "./src/server"' > hack_server.cr
    - echo 'require "llvm/lib_llvm"; require "llvm/enums"; require "./src/worker"' > hack_worker.cr
Chris Hobbs's avatar
Chris Hobbs committed
11
    - mkdir -p bin
12 13
    - crystal build hack_server.cr --static -o bin/server
    - crystal build hack_worker.cr --static -o bin/worker
Eugen Rochko's avatar
Eugen Rochko committed
14 15 16 17
  artifacts:
    paths:
      - bin
  only:
18
    - master