2019-01-15 07:45:52 +03:00
|
|
|
branches:
|
|
|
|
except:
|
|
|
|
- dev
|
2019-01-11 16:09:54 +03:00
|
|
|
version: '{build}'
|
|
|
|
image: Visual Studio 2017
|
|
|
|
install:
|
|
|
|
- cinst ninja
|
|
|
|
cache:
|
|
|
|
- '%USERPROFILE%\.cargo\bin'
|
|
|
|
- '%LOCALAPPDATA%\Mozilla\sccache'
|
|
|
|
build_script:
|
|
|
|
- bash ./tools/import-upstream.sh
|
2019-01-15 06:13:26 +03:00
|
|
|
- bash -c 'cd src; ./get-clang.sh'
|
2019-01-11 16:09:54 +03:00
|
|
|
- bash -c '~/.cargo/bin/sccache -s'
|
2019-01-15 06:13:26 +03:00
|
|
|
- bash -c 'cd src; ./build.sh'
|
2019-01-11 16:09:54 +03:00
|
|
|
- bash -c '~/.cargo/bin/sccache -s'
|
2019-01-15 07:45:52 +03:00
|
|
|
- ps: $env:BUILD_NAME="naiveproxy-$env:APPVEYOR_REPO_TAG_NAME-win64"
|
|
|
|
- bash -c 'mkdir $BUILD_NAME'
|
|
|
|
- bash -c 'cp src/out/Release/naive.exe src/config.json LICENSE $BUILD_NAME'
|
|
|
|
- bash -c '7z a $BUILD_NAME.zip $BUILD_NAME'
|
|
|
|
test_script:
|
|
|
|
- bash -c './tests/basic.sh src/out/Release/naive'
|
2019-01-11 16:09:54 +03:00
|
|
|
artifacts:
|
2019-01-15 07:45:52 +03:00
|
|
|
- path: $(BUILD_NAME).zip
|
2019-01-11 16:09:54 +03:00
|
|
|
deploy:
|
|
|
|
- provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: h+qwIoof/3ET7LOldWwlb6XQLmpxYPuaZL4YcFQ8QyclfBrnywzwzDaSqdE2unPg
|
2019-01-15 07:45:52 +03:00
|
|
|
artifact: $(BUILD_NAME).zip
|
2019-01-11 16:09:54 +03:00
|
|
|
prerelease: true
|
|
|
|
force_update: true
|
|
|
|
on:
|
|
|
|
APPVEYOR_REPO_TAG: true
|