c9ccc53282
Squashed commit of the following: commit 653544b98dc4d1b9a74e1509d0e6104b71bcdcb3 Author: Simon Zolin <s.zolin@adguard.com> Date: Wed Dec 11 17:34:41 2019 +0300 * DNS reconfigure: protect against delayed socket fd close commit 9e650f37dee7f771bf1d9d714c35f0a81788aa16 Author: Simon Zolin <s.zolin@adguard.com> Date: Wed Dec 11 15:28:33 2019 +0300 - fix race on startup commit 878fdb8fc4ebbc6fab683a65f5e4298e64c2073e Author: Simon Zolin <s.zolin@adguard.com> Date: Wed Dec 11 15:11:21 2019 +0300 * travis: don't run tests commit 1c4ab60684ee22d55e6d2a3350c0f24d9844255c Author: Simon Zolin <s.zolin@adguard.com> Date: Wed Dec 11 14:56:28 2019 +0300 * travis: 'release.sh' and then run tests commit e1f644b8d9a1f3b46990cdfb1b75fd81b3a49d33 Author: Simon Zolin <s.zolin@adguard.com> Date: Wed Dec 11 14:52:59 2019 +0300 * set BlockingMode: "null_ip" by default
77 lines
1.4 KiB
YAML
77 lines
1.4 KiB
YAML
language: go
|
|
sudo: false
|
|
|
|
go:
|
|
- 1.13.x
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_install:
|
|
- nvm install node
|
|
- npm install -g npm
|
|
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.19.1
|
|
|
|
install:
|
|
- npm --prefix client install
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/go-build
|
|
- $HOME/gopath/pkg/mod
|
|
- $HOME/Library/Caches/go-build
|
|
|
|
script:
|
|
- /bin/bash ci.sh
|
|
|
|
after_success:
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
notifications:
|
|
slack: performix:yXTihlSzsLFSZiqbXMNzvTSX
|
|
|
|
matrix:
|
|
include:
|
|
# Release build configuration
|
|
- name: release
|
|
go:
|
|
- 1.13.x
|
|
os:
|
|
- linux
|
|
|
|
script:
|
|
- node -v
|
|
- npm -v
|
|
# Prepare releases
|
|
- ./release.sh
|
|
- ls -l dist
|
|
|
|
deploy:
|
|
provider: releases
|
|
api_key: $GITHUB_TOKEN
|
|
file:
|
|
- dist/AdGuardHome_*
|
|
on:
|
|
repo: AdguardTeam/AdGuardHome
|
|
tags: true
|
|
draft: true
|
|
file_glob: true
|
|
skip_cleanup: true
|
|
|
|
- name: docker
|
|
if: type != pull_request AND (branch = master OR tag IS present)
|
|
go:
|
|
- 1.13.x
|
|
os:
|
|
- linux
|
|
services:
|
|
- docker
|
|
before_script:
|
|
- nvm install node
|
|
- npm install -g npm
|
|
script:
|
|
- docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
|
|
- ./build_docker.sh
|
|
after_script:
|
|
- docker images
|