2019-04-25 20:40:46 +03:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- dev
|
|
|
|
language: cpp
|
2019-06-23 01:23:59 +03:00
|
|
|
matrix:
|
|
|
|
include:
|
2019-10-05 11:32:10 +03:00
|
|
|
- name: "linux-x64"
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
2019-11-30 17:24:41 +03:00
|
|
|
env: EXTRA_FLAGS='target_cpu="x64"'
|
2019-11-02 19:41:19 +03:00
|
|
|
- name: "linux-x86"
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
|
|
|
env: EXTRA_FLAGS='target_cpu="x86"'
|
2019-10-05 11:32:10 +03:00
|
|
|
- name: "linux-arm64"
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
2019-10-31 17:16:56 +03:00
|
|
|
env: EXTRA_FLAGS='target_cpu="arm64"'
|
2019-10-05 11:32:10 +03:00
|
|
|
- name: "linux-arm"
|
|
|
|
os: linux
|
|
|
|
dist: bionic
|
2019-10-31 17:16:56 +03:00
|
|
|
env: EXTRA_FLAGS='target_cpu="arm"'
|
2019-11-30 22:02:59 +03:00
|
|
|
- name: "openwrt-mipsel_24kc"
|
2019-11-28 18:47:32 +03:00
|
|
|
os: linux
|
|
|
|
dist: bionic
|
2019-12-02 13:30:19 +03:00
|
|
|
env: EXTRA_FLAGS='target_cpu="mipsel" mips_arch_variant="r2" mips_float_abi="soft" mips_tune="24kc" use_allocator="none" use_allocator_shim=false is_openwrt=true ldso_path="/lib/ld-musl-mipsel-sf.so.1" use_lld=false use_gold=false' OPENWRT_FLAGS='arch=mipsel_24kc release=19.07.0-rc1 gcc_ver=7.4.0 target=ramips subtarget=rt305x'
|
2019-10-05 11:32:10 +03:00
|
|
|
- name: "osx"
|
|
|
|
os: osx
|
2019-06-23 01:23:59 +03:00
|
|
|
osx_image: xcode10.2
|
2019-04-25 20:40:46 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
2019-10-05 11:32:10 +03:00
|
|
|
- ninja-build
|
2019-04-25 20:40:46 +03:00
|
|
|
- pkg-config
|
|
|
|
- libnss3-dev
|
2019-10-05 11:32:10 +03:00
|
|
|
- qemu-user
|
2019-04-25 20:40:46 +03:00
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- ninja
|
|
|
|
- ccache
|
2019-11-30 22:02:59 +03:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.ccache
|
|
|
|
- src/out/sysroot-build/openwrt
|
2019-04-25 20:40:46 +03:00
|
|
|
script:
|
|
|
|
- ./tools/import-upstream.sh
|
|
|
|
- ( cd src; ./get-clang.sh )
|
|
|
|
- ccache -s
|
|
|
|
- ( cd src; ./build.sh )
|
|
|
|
- ccache -s
|
|
|
|
- ./tests/basic.sh src/out/Release/naive
|
2019-10-05 11:32:10 +03:00
|
|
|
- export BUILD_NAME="naiveproxy-$TRAVIS_BRANCH-$TRAVIS_JOB_NAME"
|
2019-04-25 20:40:46 +03:00
|
|
|
- mkdir $BUILD_NAME
|
|
|
|
- cp src/out/Release/naive src/config.json LICENSE USAGE.txt $BUILD_NAME
|
|
|
|
- tar cJf $BUILD_NAME.tar.xz $BUILD_NAME
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: hZ+M3GvNpPPMri0u7HkeDM8qCNSzCP2kBxL/68XgF3uvMDkJRX5/gyq27EoQMHyRxni759LlwHttRn6nHSg/CwNgK4fD4WPZWU99XIWKdlI+P1AQkHThjNtABv3P7JOq1HxyuwrcaBPybnDjsQTFE6HG5zsIhXZlUTCHbndCBpYPuDnaqKJJUv4/WzoEjXAlBSkAsBGhEQv+HZhaupw5vSkDkulNgXZrXOoO6uzAtAiR5St38dV7cWXgk6UwoyrVaV8cO0cltveyEPkGYMXJh6YkopJjSVrkYlI8vWsA8CgwdhXwAkYoG1uaIDUdNdlrBXNuA0BOFcU3iEo3D9H/z1/WQUnCuAOVCkYC/QhkTCsioQ5vaNA56+3uY8KOSDNo8XxxBzRIUSwul2lwHCNl6+cf1EhO9brI3Q8q/ZPZLmNIqYDXAI29/MMC13g/ql8UUcy2TwGrx2OE73SIzVBm2hVYI6FFs2hjJzMkknV83K0kr515gXrI+p7ANqnA9vdRBx7zMdOT1etFeuD06wjbLGLmHTS4ykhDYl6wn26fJHm3/OkqNyWllghc8DZnpAHh5AAYrrTIQPlSgtyqGL2qCoCPHbb2WgWewSVhqY+p7JMPchAc6myW3H2c7yL+TDMdRcr9I7DDOpvvfMoGx527Lji54mxGdZmdEpSGxi9Rx3g=
|
|
|
|
file: $BUILD_NAME.tar.xz
|
|
|
|
skip_cleanup: true
|
|
|
|
name: $TRAVIS_BRANCH
|
|
|
|
prerelease: true
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
all_branches: true
|