Files
amnezia-client/.travis.yml
T

90 lines
3.0 KiB
YAML
Raw Normal View History

2021-01-27 00:57:02 +03:00
language: cpp
branches:
only:
- master
- dev
2021-01-27 01:18:09 +03:00
- /\d+\.\d+/
2021-01-27 00:57:02 +03:00
jobs:
include:
- name: MacOS
os: osx
osx_image: xcode12.2
2021-01-28 12:54:09 +03:00
before_install:
- export CERTIFICATE_P12=deploy/PrivacyTechAppleCert.p12
- export KEYCHAIN=build.keychain
- security create-keychain -p $MAC_CERT_PW $KEYCHAIN
- security default-keychain -s $KEYCHAIN
- security unlock-keychain -p $MAC_CERT_PW $KEYCHAIN
- security import $CERTIFICATE_P12 -k $KEYCHAIN -P $MAC_CERT_PW -T /usr/bin/codesign
2021-01-27 00:57:02 +03:00
script:
- |
if [ ! -f $HOME/Qt/5.14.2/clang_64/bin/qmake ]; then \
brew install p7zip && \
pip3 install aqtinstall requests py7zr && \
python3 -m aqt install --outputdir $HOME/Qt 5.14.2 mac desktop clang_64 -m qtbase && \
python3 -m aqt tool --outputdir $HOME/Qt mac tools_ifw 4.0.1 qt.tools.ifw.40;
fi
2021-01-28 12:54:09 +03:00
- bash deploy/build_macos.sh
deploy:
provider: releases
token: $GH_TOKEN
2021-01-28 13:11:10 +03:00
cleanup: false
2021-01-28 12:54:09 +03:00
file:
- "AmneziaVPN.dmg"
on:
tags: true
branch: master
2021-01-27 00:57:02 +03:00
- name: Windows
os: windows
env:
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
before_install:
- if [ ! -f /C/Qt/5.14.2/msvc2017/bin/qmake ]; then choco install python --version 3.9.1; fi
script:
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build"
- dir "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools"
- |
if [ ! -f /C/Qt/5.14.2/msvc2017/bin/qmake ]; then \
pip3 install aqtinstall requests py7zr && \
python -m aqt install --outputdir /C/Qt 5.14.2 windows desktop win32_msvc2017 -m qtbase && \
python -m aqt tool --outputdir /C/Qt windows tools_ifw 4.0.1 qt.tools.ifw.40; \
fi
- echo 'call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsDevCmd.bat"' > winbuild.bat
- echo -e "\r\n" >> winbuild.bat
- echo 'call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsamd64_x86.bat"' >> winbuild.bat
- echo -e "\r\n" >> winbuild.bat
2021-01-27 01:44:32 +03:00
- echo -e "set WIN_CERT_PW=$WIN_CERT_PW" >> winbuild.bat
- echo -e "\r\n" >> winbuild.bat
- echo -e "call deploy\\\build_windows.bat" >> winbuild.bat
2021-01-27 00:57:02 +03:00
- cmd //c winbuild.bat
2021-01-28 12:54:09 +03:00
deploy:
provider: releases
token: $GH_TOKEN
2021-01-28 13:11:10 +03:00
cleanup: false
2021-01-28 12:54:09 +03:00
file:
- "AmneziaVPN.exe"
on:
tags: true
branch: master
2021-01-27 00:57:02 +03:00
before_cache:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew cleanup; fi
# Cache only .git files under "/usr/local/Homebrew" so "brew update" does not take 5min every build
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then find /usr/local/Homebrew \! -regex ".+\.git.+" -delete; fi
cache:
directories:
- $HOME/Qt
- /C/Qt
- $HOME/Library/Caches/Homebrew