-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (57 loc) · 1.4 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
language: cpp
addons:
apt:
packages:
- libsdl2-dev
- libjpeg-turbo8-dev
- zlib1g-dev
- libpng12-dev
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --verbose libpng sdl2; fi
script:
- ./tools/travis-build.sh "${host:-native}" "${flavour:-Release}" $opts
matrix:
include:
- os: linux
dist: xenial
sudo: required
compiler: gcc
- os: linux
dist: trusty
sudo: required
compiler: clang
- os: osx
osx_image: xcode11
compiler: clang
before_deploy:
- export DEPLOY_FILE_NAME=jkgalaxies_$TRAVIS_OS_NAME-$CC.zip
- echo "zipping into $DEPLOY_FILE_NAME"
- cd $(pwd)/build/install
- zip -r $DEPLOY_FILE_NAME . -i \*
- echo "deploying $DEPLOY_FILE_NAME to GitHub"
deploy:
provider: releases
api_key: $GITHUB_KEY
overwrite: true
file: "$DEPLOY_FILE_NAME"
skip_cleanup: true
on:
tags: true
#dist: trusty
#install:
# - ./tools/travis-install.sh "${host:-native}" "${flavour:-Release}" $opts
#script:
# - ./tools/travis-build.sh "${host:-native}" "${flavour:-Release}" $opts
#compiler: gcc
#env:
# - ""
# - flavour=Debug
# - host=i686-linux-gnu
# - host=i686-w64-mingw32
# - host=x86_64-w64-mingw32
# One extra build with clang, its warnings are often better
#matrix:
# include:
# - compiler: clang
# env: ""