lokinet/.gitlab-ci.yml

91 lines
2.9 KiB
YAML
Raw Normal View History

2018-08-23 13:30:29 +00:00
variables:
GIT_STRATEGY: fetch
2020-03-05 15:13:23 +00:00
GIT_SUBMODULE_STRATEGY: recursive
2018-08-23 13:30:29 +00:00
stages:
- build
- test
# disabled because gcc9 can't build net_if.hpp
2019-06-26 02:34:00 +00:00
#build:linux:
# image: alpine:latest
# tags:
# - linux
# stage: build
# before_script:
# - apk add --update g++ make cmake linux-headers libcap-dev libuv-dev curl-dev git
2019-06-26 02:34:00 +00:00
# script:
# - make STATIC_LINK=ON DOWNLOAD_SODIUM=ON
2019-06-26 02:34:00 +00:00
# artifacts:
# paths:
# - "lokinet"
# we'll just try our travis set up for now
build:linux_release:
image: ubuntu:xenial
tags:
- linux
stage: build
before_script:
- apt-get update && apt-get install -y apt-transport-https curl
- curl https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add -
- echo 'deb https://apt.kitware.com/ubuntu/ xenial main' >/etc/apt/sources.list.d/kitware.list
2020-01-17 03:50:01 +00:00
- apt-get update && apt-get install -y build-essential ca-certificates cmake curl git libcap-dev pkg-config wget xz-utils
script:
- make static DOWNLOAD_SODIUM=ON
# alternatively: git describe --tag
- LOKINET_VERSION=$(./lokinet-static --version|sed s/lokinet-//)
- echo lokinet-linux-x64-v$LOKINET_VERSION
- mkdir lokinet-linux-x64-v$LOKINET_VERSION
- cp lokinet-bootstrap lokinet-linux-x64-v$LOKINET_VERSION
- cp build/daemon/lokinet lokinet-linux-x64-v$LOKINET_VERSION
- cp build/daemon/lokinetctl lokinet-linux-x64-v$LOKINET_VERSION
2020-01-20 01:38:36 +00:00
- cp docs/linux-setcap-readme.txt lokinet-linux-x64-v$LOKINET_VERSION
2020-01-17 03:08:48 +00:00
- tar cJf lokinet-linux-x64-v$LOKINET_VERSION.tar.xz lokinet-linux-x64-v$LOKINET_VERSION
- echo "lokinet-linux-x64-v$LOKINET_VERSION.tar.xz should be ready"
artifacts:
paths:
- lokinet-linux-x64-v*.tar.xz
2018-08-23 13:30:29 +00:00
2019-12-19 01:47:21 +00:00
build:linux_debug:
image: ubuntu:xenial
2019-06-13 20:58:10 +00:00
tags:
2019-12-19 01:47:21 +00:00
- linux
2019-06-13 20:58:10 +00:00
stage: build
2019-12-19 01:47:21 +00:00
before_script:
- apt-get update && apt-get install -y apt-transport-https curl
- curl https://apt.kitware.com/keys/kitware-archive-latest.asc | apt-key add -
- echo 'deb https://apt.kitware.com/ubuntu/ xenial main' >/etc/apt/sources.list.d/kitware.list
2020-01-17 03:50:01 +00:00
- apt-get update && apt-get install -y build-essential ca-certificates cmake curl git libcap-dev libcurl4-openssl-dev libuv1-dev ninja-build
2019-06-13 20:58:10 +00:00
script:
- DOWNLOAD_SODIUM=ON IS_NOTIFICATION=1 STATIC_LINK=OFF make
2019-06-13 20:58:10 +00:00
artifacts:
paths:
- build/daemon/lokinet
- build/daemon/lokinetctl
2019-12-19 01:47:21 +00:00
# needs libuv and libcurl
2019-12-19 01:47:21 +00:00
#build:freebsd:
# tags:
# - freebsd
# stage: build
# script:
# - gmake DOWNLOAD_SODIUM=ON
2019-12-19 01:47:21 +00:00
# artifacts:
# paths:
# - "lokinet"
2019-06-13 20:58:10 +00:00
# need windows runner on lokiproject
2018-11-09 13:26:50 +00:00
#build:windows:
# tags:
# - windows
# stage: build
# script:
#- make static CC=gcc CXX=g++
# can't use STATIC because LTO doesn't work on cross-compiled targets
# -DSTATIC_LINK_RUNTIME=ON -DLIBUV_ROOT=libuv
# - cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=../contrib/cross/mingw[32].cmake -DDOWNLOAD_SODIUM=ON
2018-11-09 13:26:50 +00:00
# artifacts:
# paths:
# - "lokinet.exe"