mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
More Azure CI updates
This commit is contained in:
parent
e983346e85
commit
f5b9487c8b
4 changed files with 39 additions and 8 deletions
|
@ -1,13 +1,17 @@
|
|||
parameters:
|
||||
osName: 'linux'
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
- bash: |
|
||||
./.ci/install.sh
|
||||
export PATH=/usr/local/bin:${PATH}
|
||||
- bash: |
|
||||
export TRAVIS_OS_NAME=${{ osName }}
|
||||
export CXX=${CXX_COMPILER}
|
||||
export CC=${C_COMPILER}
|
||||
# Use TRAVIS_TAG if defined, or the short commit SHA otherwise
|
||||
export VERSION=${TRAVIS_TAG:-$(git rev-parse --short HEAD)}
|
||||
- script: |
|
||||
- bash: |
|
||||
./.ci/script.sh
|
||||
sed -i -e "s/VERSION_NAME_VALUE/${VERSION}/g" ./.ci/bintray-release.json || true
|
||||
cp ./.ci/bintray-release.json .
|
||||
- script: |
|
||||
./.ci/install.sh
|
||||
export PATH=/usr/local/bin:${PATH}
|
|
@ -37,6 +37,9 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|||
cd libsodium-1.0.16/
|
||||
./configure && make && make check && sudo make install )
|
||||
|
||||
curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
echo "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main" | sudo tee /etc/apt/sources.list.d/llvm.list
|
||||
|
||||
sudo add-apt-repository -y ppa:beineri/opt-qt${QT_VERSION}-trusty
|
||||
# needed for git-lfs, otherwise the follow apt update fails.
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157
|
||||
|
@ -44,8 +47,12 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|||
# needed for mongodb repository: https://github.com/travis-ci/travis-ci/issues/9037
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
|
||||
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
|
||||
sudo apt update -qq
|
||||
sudo apt install -qq -y \
|
||||
g++-8 \
|
||||
ninja-build \
|
||||
qt${QT_PKG}base \
|
||||
qt${QT_PKG}tools \
|
||||
qt${QT_PKG}svg \
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
set -ex
|
||||
|
||||
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
||||
|
||||
export CC=${C_COMPILER}
|
||||
export CXX=${CXX_COMPILER}
|
||||
# make build use all available cores
|
||||
|
|
|
@ -18,14 +18,31 @@ stages:
|
|||
pool:
|
||||
vmImage: 'ubuntu-16.04'
|
||||
|
||||
variables:
|
||||
CXX_COMPILER: 'clang++-5.0'
|
||||
C_COMPILER: 'clang-5.0'
|
||||
QT_VERSION: '592'
|
||||
QT_PKG: '59'
|
||||
USE_BUNDLED_BOOST: '1'
|
||||
USE_BUNDLED_CMARK: '1'
|
||||
USE_BUNDLED_JSON: '1'
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
||||
parameters:
|
||||
osName: 'linux'
|
||||
|
||||
- job: macOS
|
||||
pool:
|
||||
vmImage: 'macOS-10.13'
|
||||
variables:
|
||||
DEPLOYMENT: '1'
|
||||
USE_BUNDLED_BOOST: '0'
|
||||
USE_BUNDLED_CMARK: '0'
|
||||
USE_BUNDLED_JSON: '0'
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
||||
parameters:
|
||||
osName: 'osx'
|
||||
|
||||
- job: Windows
|
||||
pool:
|
||||
|
@ -33,3 +50,5 @@ stages:
|
|||
|
||||
steps:
|
||||
- template: .ci/azure-build.yml
|
||||
parameters:
|
||||
osName: 'windows'
|
Loading…
Reference in a new issue