-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
51 lines (40 loc) · 1017 Bytes
/
.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
language: cpp
matrix:
include:
- env: BATTLESHIP_PLATFORM='linux64'
os: linux
dist: trusty
sudo: required
compiler: gcc
- env: BATTLESHIP_PLATFORM='windows32'
os: linux
dist: trusty
sudo: required
compiler: gcc
- env: BATTLESHIP_PLATFORM='windows64'
os: linux
dist: trusty
sudo: required
compiler: gcc
- env: BATTLESHIP_PLATFORM='macXX'
os: osx
osx_image: xcode7.2
compiler: clang
before_install:
- BATTLESHIP_TARGET="${BATTLESHIP_PLATFORM::${#BATTLESHIP_PLATFORM}-2}"
- ./build/${BATTLESHIP_TARGET}/requirements.sh
install:
- source ./build/${BATTLESHIP_TARGET}/build.sh
script:
- echo "Nothing."
before_deploy:
- source build-dir/package.sh
deploy:
provider: releases
api_key: "$GH_API_KEY"
file:
- "$(ls battleship_*_${BATTLESHIP_PLATFORM}.exe)"
- "$(ls battleship_*_*-portable.exe 2>/dev/null || echo build-dir/README.txt)"
skip_cleanup: true
on:
tags: true