1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/.travis.yml

139 lines
3.4 KiB
YAML
Raw Normal View History

2019-07-13 16:14:22 +02:00
language: cpp
2019-07-14 13:09:04 +02:00
2019-07-15 22:01:55 +02:00
cache: ccache
2019-07-13 16:14:22 +02:00
2019-07-21 18:05:51 +02:00
matrix:
include:
- os: linux
dist: xenial
compiler: gcc
env: BUILD_TYPE=Debug IS_NOTIFICATION=1
2019-07-21 18:05:51 +02:00
- os: linux
dist: xenial
env: DOCKER_FILE=docker/router.Dockerfile
services: docker
2019-07-23 00:20:17 +02:00
- os: linux
dist: xenial
2019-07-29 01:31:07 +02:00
env: DOCKER_FILE=docker/alpine-windows.Dockerfile
services: docker
- os: linux
dist: xenial
env: DOCKER_FILE=docker/gcc-trunk.Dockerfile
services: docker
2019-07-23 00:20:17 +02:00
- os: linux
dist: xenial
compiler: gcc
env: BUILD_TYPE=Release
- os: linux
dist: xenial
compiler: clang
env: BUILD_TYPE=Debug
- os: linux
dist: xenial
compiler: clang
env: BUILD_TYPE=Release
- os: osx
osx_image: xcode10.2
compiler: gcc
env: BUILD_TYPE=Debug
- os: osx
osx_image: xcode10.2
compiler: gcc
env: BUILD_TYPE=Release
- os: osx
osx_image: xcode10.2
env: BUILD_TYPE=Debug PATH="/usr/local/opt/ccache/libexec:$PATH"
- os: osx
osx_image: xcode10.2
env: BUILD_TYPE=Release PATH="/usr/local/opt/ccache/libexec:$PATH"
- os: osx
osx_image: xcode11
env: BUILD_TYPE=Release PATH="/usr/local/opt/ccache/libexec:$PATH"
- os: osx
osx_image: xcode10.2
2019-07-30 23:54:08 +02:00
env: BUILD_TYPE=Debug ASAN=ON PATH="/usr/local/opt/ccache/libexec:$PATH" CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++
2019-07-23 00:20:17 +02:00
- os: windows
env: BUILD_TYPE=Debug
- os: windows
env: BUILD_TYPE=Release
allow_failures:
- os: linux
dist: xenial
env: DOCKER_FILE=docker/alpine-windows.Dockerfile
services: docker
- os: linux
dist: xenial
env: DOCKER_FILE=docker/gcc-trunk.Dockerfile
services: docker
2019-07-13 16:14:22 +02:00
2019-05-29 06:43:15 +02:00
env:
2019-07-13 22:36:10 +02:00
global:
2019-07-14 13:09:04 +02:00
- NINJA=ninja
2019-07-13 22:36:10 +02:00
- STATIC_LINK=OFF
2019-07-13 16:14:22 +02:00
addons:
apt:
packages:
2019-07-15 22:05:13 +02:00
- binutils-gold
2019-07-13 16:14:22 +02:00
- build-essential
- cmake
- curl
- docker-ce
2019-07-23 00:20:17 +02:00
- g++-mingw-w64
- g++-mingw-w64-x86-64
- gcc-mingw-w64-base
2019-07-13 16:14:22 +02:00
- git
- libcap-dev
- libuv1-dev
2019-07-23 00:20:17 +02:00
- mingw-w64 mingw-w64-common
2019-07-13 16:14:22 +02:00
- ninja-build
2019-07-14 13:09:04 +02:00
homebrew:
packages:
2019-07-15 22:01:55 +02:00
- ccache
2019-07-14 13:09:04 +02:00
- cmake
- libuv
- llvm
2019-07-14 13:09:04 +02:00
- ninja
2019-07-15 11:15:25 +02:00
- make
2019-07-13 16:14:22 +02:00
2019-07-16 02:10:13 +02:00
before_install:
2019-07-16 01:16:17 +02:00
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then
choco install make ninja;
2019-07-21 18:05:51 +02:00
choco upgrade cmake.install;
2019-07-16 01:52:51 +02:00
export CC="/c/Program Files/LLVM/bin/clang-cl";
export CXX="/c/Program Files/LLVM/bin/clang-cl";
2019-07-16 01:16:17 +02:00
fi
2019-07-16 02:10:13 +02:00
script:
2019-07-21 18:05:51 +02:00
- if [ "$TRAVIS_OS_NAME" == "windows" ]; then
travis_wait cmd.exe /C '"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64 && make test';
elif [[ ! -z $DOCKER_FILE ]]; then
travis_wait docker build -f $DOCKER_FILE .;
2019-07-21 18:05:51 +02:00
else
travis_wait make ${MAKE_TARGET:-test};
2019-07-21 18:05:51 +02:00
fi
2019-07-13 16:14:22 +02:00
2019-05-29 06:43:15 +02:00
after_script:
- echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- if [[ -z $IS_NOTIFICATION ]]; then ./send.sh success $WEBHOOK_URL; fi
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- if [[ ! -z $IS_NOTIFICATION ]]; then ./send.sh failure $WEBHOOK_URL; fi
2019-05-29 09:01:37 +02:00
notifications:
irc:
on_success: change
on_failure: change
channels:
- "chat.freenode.net#llarp"
nick: lokinet-ci
template:
- "%{result} | %{repository}#%{build_number} (%{commit} : %{author}) | Build details : %{build_url}"