forked from edo9300/edopro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
75 lines (75 loc) · 1.98 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: cpp
sudo: required
dist: bionic
git:
depth: 1
env:
global:
- BUILD_CONFIG=release
- DEPLOY_BRANCH=travis-$TRAVIS_OS_NAME
- MSBUILD_PATH="/c/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin"
addons:
apt:
update: true
packages:
- p7zip-full
- libfreetype6-dev
- libirrlicht-dev
- libgl1-mesa-dev
- libglu-dev
homebrew:
update: true
packages:
- dylibbundler
- gpatch
- p7zip
- libevent
- freetype
- sqlite
- curl
- libgit2
- fmt
- nlohmann-json
matrix:
include:
- name: "Windows 10"
os: windows
env:
- VCPKG_ROOT=/c/vcpkg
- VCPKG_DEFAULT_TRIPLET=x86-windows-static
- VCPKG_LIBS="libevent lua[cpp] sqlite3 fmt curl libgit2 nlohmann-json bzip2 libjpeg-turbo libpng zlib"
- VCPKG_CACHE_ZIP_URL=https://github.com/kevinlul/edopro-vcpkg-cache/raw/master/installed.zip
- DXSDK_DIR=/c/d3d9sdk/
- DEPLOY_DIR=deploy
- name: "Bionic GCC7"
os: linux
compiler: gcc
env:
- VCPKG_ROOT=./vcpkg
- VCPKG_LIBS="libevent sqlite3 fmt nlohmann-json curl libgit2"
- VCPKG_CACHE_7Z_URL=https://github.com/kevinlul/edopro-vcpkg-cache/raw/master/installed-linux.7z
- name: "Mojave"
os: osx
osx_image: xcode10.3
env:
- MACOSX_DEPLOYMENT_TARGET=10.11
- SDKROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk"
- CACHE_7Z_URL=https://github.com/kevinlul/edopro-vcpkg-cache/raw/master/dependencies-osx.7z
before_install: ./travis/install-premake5.sh
install: ./travis/dependencies.sh
script: ./travis/build.sh
before_deploy: ./travis/predeploy.sh
deploy:
- provider: script
skip_cleanup: true
script: bash ./ocgcore/travis/deploy-windows.sh
on:
condition: "$TRAVIS_OS_NAME == windows"
- provider: pages
skip_cleanup: true
local_dir: deploy
github_token: $DEPLOY_TOKEN
repo: $DEPLOY_REPO
target_branch: $DEPLOY_BRANCH
on:
condition: "$TRAVIS_OS_NAME != windows"