AppVeyor: Cleanup, minor changes

Ignore commits to README.md, and /.github;
 This is future proofing for GitHub Actions, new issue template, etc.
Capitalize Ubuntu.
Change configuration to Release Optimized.
Proper multi-command formatting.
Use env matrix instead of shell to seperate steps for Windows and Linux.
Add LICENSE to artifacts.
Remove artifact type since it's unneeded.
Windows:
 Use AppVeyor's build thing.
 Remove build verbosity since normal is the default.
 Remove build\bin crap from the zip.
Linux:
 Make apt-get into one step.
 Speed up build by using -j.
 cd into APPVEYOR_BUILD_FOLDER to avoid problems.
This commit is contained in:
Margen67 2020-03-08 12:07:21 -07:00 committed by GitHub
parent 67dcae090d
commit fcdf6d2b93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,14 +2,20 @@ version: 0.0.{build}
skip_tags: true
image:
- Visual Studio 2017
- ubuntu1804
skip_commits:
files:
- .github/*
- .github/*/*
- README.md
image:
- Visual Studio 2017
- Ubuntu1804
configuration: Release Optimized
configuration: Release
platform: x64
# environment
for:
-
matrix:
@ -21,35 +27,38 @@ for:
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
cc: VS2017
QTDIR: C:\Qt\5.12\msvc2017_64
build:
parallel: true
project: DobieStation\DobieStation.sln
after_build:
- 7z a -xr!*.lib DobieStation.zip .\build\bin\* LICENSE
-
matrix:
only:
- image: ubuntu1804
- image: Ubuntu1804
environment:
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu1804
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu1804
cc: gcc
install:
- sh: sudo apt-get update -qq
- sh: sudo apt-get install -qq qt5-default qtmultimedia5-dev
- sh: sudo apt-get install -qq libglu1-mesa-dev
install:
- |-
sudo apt-get update -qq
sudo apt-get install -qq qt5-default qtmultimedia5-dev libglu1-mesa-dev
before_build:
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %arch%
build_script:
- |-
qmake -v
cd DobieStation
qmake DobieStation.pro
make -j$(nproc)
cd $APPVEYOR_BUILD_FOLDER
build_script:
- sh: qmake -v
- sh: cd DobieStation
- sh: qmake DobieStation.pro
- sh: make
- cmd: msbuild "C:\projects\dobiestation\DobieStation\DobieStation.sln" /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cmd: 7z a -xr!*.lib DobieStation.zip build/bin/
- sh: 7z a ../DobieStation.zip DobieStation
after_build:
- 7z a DobieStation.zip ./DobieStation/DobieStation LICENSE
test: off
artifacts:
- path: DobieStation.zip
type: WebDeployPackage
- path: DobieStation.zip