Files
amnezia-client/.travis.yml
T

145 lines
5.1 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
2021-05-21 05:33:40 -07:00
osx_image: xcode12.5
2021-01-28 12:54:09 +03:00
2021-01-28 14:18:28 +03:00
env:
2021-05-21 05:33:40 -07:00
- QT_VERSION=5.15.2
2022-08-18 15:10:54 +03:00
- QIF_VERSION=4.4
2021-06-02 17:56:01 +03:00
- QT_BIN_DIR=$HOME/Qt/$QT_VERSION/clang_64/bin
2021-06-02 19:05:26 +03:00
- QIF_BIN_DIR=$QT_BIN_DIR/../../../Tools/QtInstallerFramework/$QIF_VERSION/bin
2021-02-08 12:42:48 -08:00
2021-01-27 00:57:02 +03:00
script:
- |
2021-01-28 14:18:28 +03:00
if [ ! -f $HOME/Qt/$QT_VERSION/clang_64/bin/qmake ]; then \
2021-01-27 00:57:02 +03:00
brew install p7zip && \
2021-06-02 18:41:08 +03:00
python3 -m pip install --upgrade pip && \
pip install -U aqtinstall requests py7zr && \
pip show aqtinstall && \
2022-08-18 15:10:54 +03:00
aqt install-qt windows desktop $QT_VERSION win64_msvc2019_64 -m all -O $HOME/Qt \
aqt install-tool macos desktop tools_ifw -O /C/Qt \
2021-01-27 00:57:02 +03:00
fi
2021-01-28 12:54:09 +03:00
- bash deploy/build_macos.sh
deploy:
provider: releases
token: $GH_TOKEN
2021-01-28 13:26:43 +03:00
skip_cleanup: true
2021-01-28 12:54:09 +03:00
file:
2021-02-10 06:57:26 -08:00
- "AmneziaVPN_unsigned.dmg"
2021-01-28 12:54:09 +03:00
on:
tags: true
branch: master
2021-06-02 01:32:25 +03:00
- name: Windows_x64
2021-01-27 00:57:02 +03:00
os: windows
env:
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
2022-08-18 15:10:54 +03:00
- QT_VERSION=5.15.2
- QIF_VERSION=4.4
- QT_BIN_DIR="c:\\Qt\\$QT_VERSION\\msvc2019_64\\bin"
2021-06-02 19:24:50 +03:00
- QIF_BIN_DIR="c:\\Qt\\Tools\\QtInstallerFramework\\${QIF_VERSION}\\bin"
2021-06-02 18:41:08 +03:00
- BUILD_ARCH=64
2021-01-27 00:57:02 +03:00
before_install:
2021-06-02 00:49:42 +03:00
- if [ ! -f /C/Qt/$QT_VERSION/msvc2017_64/bin/qmake ]; then choco install python --version 3.9.1; fi
2021-01-27 00:57:02 +03:00
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"
- |
2021-06-02 00:49:42 +03:00
if [ ! -f /C/Qt/$QT_VERSION/msvc2017_64/bin/qmake ]; then \
2021-06-02 18:41:08 +03:00
python -m pip install --upgrade pip && \
pip3 install -U aqtinstall requests py7zr && \
pip3 show aqtinstall && \
2022-08-18 15:10:54 +03:00
aqt install-qt windows desktop $QT_VERSION win64_msvc2019_64 -m all -O /C/Qt \
aqt install-tool windows desktop tools_ifw -O /C/Qt \
2021-01-27 00:57:02 +03:00
fi
2021-06-02 22:34:29 +03:00
- echo set BUILD_ARCH=$BUILD_ARCH > winbuild.bat
2021-06-02 20:25:00 +03:00
- echo set QT_BIN_DIR="$QT_BIN_DIR" >> winbuild.bat
- echo set QIF_BIN_DIR="$QIF_BIN_DIR" >> winbuild.bat
2021-06-02 22:34:29 +03:00
- echo call \""C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build\\vcvars${BUILD_ARCH}.bat\"" >> winbuild.bat
2021-06-03 00:29:51 +03:00
- echo call \""C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64" >> winbuild.bat
2021-06-02 20:25:00 +03:00
- echo set WIN_CERT_PW=$WIN_CERT_PW >> winbuild.bat
- echo call deploy\\build_windows.bat >> winbuild.bat
2021-06-02 20:46:59 +03:00
- cmd //c winbuild.bat
2021-06-02 18:54:39 +03:00
2021-01-27 00:57:02 +03:00
2021-01-28 12:54:09 +03:00
deploy:
provider: releases
token: $GH_TOKEN
2021-01-28 13:26:43 +03:00
skip_cleanup: true
2021-01-28 12:54:09 +03:00
file:
2021-06-02 00:49:42 +03:00
- "AmneziaVPN_x64.exe"
2021-01-28 12:54:09 +03:00
on:
tags: true
branch: master
2021-01-28 13:26:43 +03:00
2021-06-02 01:32:25 +03:00
- name: Windows_x32
os: windows
2021-06-02 00:49:42 +03:00
2021-06-02 01:32:25 +03:00
env:
- PATH=/c/Python39:/c/Python39/Scripts:$PATH
2022-08-18 15:10:54 +03:00
- QT_VERSION=5.15.2
- QIF_VERSION=4.4
- QT_BIN_DIR="c:\\Qt\\${QT_VERSION}\\msvc2019\\bin"
2021-06-02 19:24:50 +03:00
- QIF_BIN_DIR="c:\\Qt\\Tools\\QtInstallerFramework\\${QIF_VERSION}\\bin"
2021-06-02 18:41:08 +03:00
- BUILD_ARCH=32
2021-06-02 00:49:42 +03:00
2021-06-02 01:32:25 +03:00
before_install:
- if [ ! -f /C/Qt/$QT_VERSION/msvc2017/bin/qmake ]; then choco install python --version 3.9.1; fi
2021-06-02 00:49:42 +03:00
2021-06-02 01:32:25 +03:00
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/$QT_VERSION/msvc2017/bin/qmake ]; then \
2021-06-02 18:41:08 +03:00
python -m pip install --upgrade pip && \
pip3 install -U aqtinstall requests py7zr && \
pip3 show aqtinstall && \
2022-08-18 15:10:54 +03:00
aqt install-qt windows desktop $QT_VERSION win64_msvc2019_32 -m all -O /C/Qt \
aqt install-tool windows desktop tools_ifw -O /C/Qt \
2021-06-02 01:32:25 +03:00
fi
2021-06-02 22:34:29 +03:00
- echo call \""C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat\"" > winbuild.bat
2021-06-02 20:25:00 +03:00
- echo set BUILD_ARCH=$BUILD_ARCH >> winbuild.bat
- echo set QT_BIN_DIR="$QT_BIN_DIR" >> winbuild.bat
- echo set QIF_BIN_DIR="$QIF_BIN_DIR" >> winbuild.bat
2021-06-02 22:34:29 +03:00
- echo call \""C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build\\vcvars${BUILD_ARCH}.bat\"" >> winbuild.bat
2021-06-02 20:25:00 +03:00
- echo set WIN_CERT_PW=$WIN_CERT_PW >> winbuild.bat
- echo call deploy\\build_windows.bat >> winbuild.bat
2021-06-02 18:54:39 +03:00
- cmd //c winbuild.bat
2021-06-02 00:49:42 +03:00
2021-06-02 01:32:25 +03:00
deploy:
provider: releases
token: $GH_TOKEN
skip_cleanup: true
file:
- "AmneziaVPN_x32.exe"
on:
tags: true
branch: master
2021-06-02 00:49:42 +03:00
2021-01-28 13:26:43 +03:00
deploy:
skip_cleanup: true
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
2021-02-08 12:42:48 -08:00
- $HOME/Library/Caches/Homebrew