oxen-core/.gitlab-ci.yml
sachaaaaa dc7323ff34 Fix designated initializers + add CD/CI badge (#100)
* add gitlab config file for CD/CI

* formatting

* Update readme to display CI badge

* Replace designated initializers with aggregate initializers

* CD/CI for mac

* use git fetch for cli instead of clone

* CD/CI for windows
2018-07-20 15:16:12 +10:00

54 lines
937 B
YAML

variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_STRATEGY: fetch
stages:
- build
- test
build:windows:
tags:
- windows
stage: build
script:
- cat /proc/version
- make release-static-win64
artifacts:
paths:
- "build/release/bin"
build:osx:
tags:
- osx
stage: build
script:
- sw_vers
- source ~/Builds/loki_env.sh
- make -j4 release-static-mac-x86_64
artifacts:
paths:
- "build/release/bin"
build:linux:
image: registry.gitlab.com/lokiproject/loki:latest
tags:
- ubuntu
stage: build
script:
# print our runner distro
- cat /proc/version
# print the current commit hash
- echo $CI_COMMIT_SHA
- make -j$THREAD_COUNT release-static
artifacts:
paths:
- "build/release/bin"
# disable cache to ensure reproducible builds
# cache:
# paths:
# - "build"
# test:
# stage: test
# script:
# - ./test/testall