mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Use ninja on travis
This commit is contained in:
parent
de61663e42
commit
a3c162950c
2 changed files with 14 additions and 11 deletions
19
.travis.yml
19
.travis.yml
|
@ -10,6 +10,11 @@ matrix:
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode8
|
osx_image: xcode8
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
- os: osx
|
||||||
|
osx_image: xcode9
|
||||||
|
compiler: clang
|
||||||
|
env:
|
||||||
|
- DEPLOYMENT=1
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env:
|
env:
|
||||||
|
@ -18,8 +23,8 @@ matrix:
|
||||||
- DEPLOYMENT=1
|
- DEPLOYMENT=1
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test']
|
sources: ["ubuntu-toolchain-r-test"]
|
||||||
packages: ['g++-6']
|
packages: ["g++-6", "ninja-build"]
|
||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env:
|
env:
|
||||||
|
@ -27,15 +32,15 @@ matrix:
|
||||||
- C_COMPILER=clang-5.0
|
- C_COMPILER=clang-5.0
|
||||||
addons:
|
addons:
|
||||||
apt:
|
apt:
|
||||||
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-5.0']
|
sources: ["ubuntu-toolchain-r-test", "llvm-toolchain-trusty-5.0"]
|
||||||
packages: ['clang-5.0']
|
packages: ["clang-5.0", "ninja-build"]
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- export CXX=${CXX_COMPILER}
|
- export CXX=${CXX_COMPILER}
|
||||||
- export CC=${C_COMPILER}
|
- export CC=${C_COMPILER}
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5 lmdb clang-format; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew install qt5 lmdb clang-format ninja; fi
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then export CMAKE_PREFIX_PATH=/usr/local/opt/qt5; fi
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/install-deps.sh; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/install-deps.sh; fi
|
||||||
|
|
||||||
|
@ -43,7 +48,7 @@ before_script:
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then source /opt/qt59/bin/qt59-env.sh; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then source /opt/qt59/bin/qt59-env.sh; fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- make release
|
- make ci
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then make lint; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then make lint; fi
|
||||||
- if [ $TRAVIS_OS_NAME == osx ]; then ./.ci/macos/deploy.sh; fi
|
- if [ $TRAVIS_OS_NAME == osx ]; then ./.ci/macos/deploy.sh; fi
|
||||||
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/deploy.sh; fi
|
- if [ $TRAVIS_OS_NAME == linux ]; then ./.ci/linux/deploy.sh; fi
|
||||||
|
@ -66,6 +71,6 @@ deploy:
|
||||||
secure: oprXzESukFiXBeF2BXkXUlegsAQc95Ub4kc/OkoNFaYBvqpA+IGpWHmHCx5JPny/OT3Kc2Urpe2JUeGSWDHZ7UCKDjH+NzGP3uN82fHh/HiszG/Srw7+hWEHm1ve+gMK9GS8pr+yUsUrPP0UfVXlPoI4pBWa4zGi2Ndb/SqvjCgIHFLtGyoBo6CydKQ/AyWiXSMKDfJL+Dx4JLIPP4RTCBJy8ZrZ8m/a5Tgy4Ij6+djjrgYCZCEhGxSYw7xDIT/9SV8g9NkrbisqBDrILzAH8Yhe4XMRMXo88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5/rNJ+qXR8GU+/y7e1GKU=
|
||||||
file: nheko.dmg
|
file: nheko.dmg
|
||||||
on:
|
on:
|
||||||
condition: $TRAVIS_OS_NAME == osx
|
condition: $TRAVIS_OS_NAME == osx && $DEPLOYMENT == 1
|
||||||
repo: mujx/nheko
|
repo: mujx/nheko
|
||||||
tags: true
|
tags: true
|
||||||
|
|
6
Makefile
6
Makefile
|
@ -3,7 +3,7 @@ debug:
|
||||||
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
||||||
@cmake --build build
|
@cmake --build build
|
||||||
|
|
||||||
release-debug:
|
ci:
|
||||||
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
@cmake --build build
|
@cmake --build build
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ linux-appimage:
|
||||||
linux-install:
|
linux-install:
|
||||||
cp -f nheko*.AppImage ~/.local/bin
|
cp -f nheko*.AppImage ~/.local/bin
|
||||||
|
|
||||||
macos-app: release-debug
|
macos-app: release
|
||||||
@./.ci/macos/deploy.sh
|
@./.ci/macos/deploy.sh
|
||||||
|
|
||||||
macos-app-install:
|
macos-app-install:
|
||||||
|
@ -43,5 +43,3 @@ docker-app-image: image
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
.PHONY: build app dmg
|
|
||||||
|
|
Loading…
Reference in a new issue