lokinet/.gitlab-ci.yml

77 lines
2.7 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
2019-06-26 02:34:00 +00:00
# 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
- apt-get update && apt-get install -y build-essential ca-certificates cmake curl git libcap-dev pkg-config wget xz-utils python3-pip
- pip3 install git-archive-all
script:
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DDOWNLOAD_CURL=ON -DDOWNLOAD_SODIUM=ON -DSTATIC_LINK_RUNTIME=ON && make
# 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
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
- make tarball
artifacts:
paths:
- lokinet-*.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:
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DDOWNLOAD_CURL=ON -DDOWNLOAD_SODIUM=ON -DSTATIC_LINK_RUNTIME=ON && make package
2019-06-13 20:58:10 +00:00
artifacts:
paths:
- build/daemon/lokinet
- build/daemon/lokinetctl
2019-12-19 01:47:21 +00:00
build:win32:
image: ubuntu:bionic
tags:
2020-04-02 16:42:36 +00:00
- linux
stage: build
before_script:
- apt-get update && apt-get install -y build-essential cmake nsis git g++-mingw-w64
script:
- mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../contrib/cross/mingw64.cmake -DSTATIC_LINK_RUNTIME=ON && make package
artifacts:
paths:
2020-04-02 16:23:14 +00:00
- build/lokinet-*.exe
build:macos:
tags:
- osx
stage: build
script:
2020-04-03 14:25:24 +00:00
- IS_NOTIFICATION=1 STATIC_LINK=ON DOWNLOAD_SODIUM=ON make mac
artifacts:
paths:
- build/*.pkg
- build/daemon/lokinet