forked from ihhub/fheroes2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
148 lines (143 loc) · 5.9 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
sudo: required
git:
depth: false
language: cpp
# blocklist
branches:
except:
- /^fheroes2-windows-.*$/
- /^fheroes2-linux-.*$/
- /^fheroes2-osx-.*$/
matrix:
include:
- if: branch = master
os: linux
addons:
sonarcloud:
organization: "ihhub"
token:
secure: "N4AnvUibHnr/3fksAx/Hv9EIi5l8VDgrgXDFTwVXeVrTJh1X5fuk4lrcmYBBWIgyKemDrnBj8peDRMLgl/MDCJEJU/gm5YYJc7lynRLMiic2W9vCNjRzh3P2QnK9PCjEA7HaJR5ZIDs3+4O+ovPtreZcCiQowqk0r1dEgW5Dvqzns6tRMjLmaab1/9Y3xWuiaZQ9+11Wra/4wQeYbVLNH/4Q1e51ewZ4MIGDlH5Ei6Z+8FJfKsFqaoxmotJat/InbusmolyyS5FhMXqLj6XdwqJk2BVJ5iMly/d76Z4xTtxVsLnMxmHLKHueB+XjCdw8F5hnnYm0wHBxr/8zqUwIKwlHzvb43HwMSeidjU1+kXjqsfq7ZbibBjue2HaEhy+OIVgd4SIcga+sU2RoCjJJBJNYhPAkIAUAiv9B1C0xXorAMBzQLXYlMccMEsDUKtj5wfMZd09lBlqfAtX+Uu0AooJPBLbRl0fl3UR1wxyXvPL1brSQBZmmHnWvM8E45ZljlbMJ/MgZsaynZvd1lBed6Q0N1KsbNMiJcC8cMatAeL+BTIUL9uo9/NBq3meeDh/sG7ryvvk3CSkPdIBn6dg41FlDyhluUrNLGYz5+btrscoARQ786E01Vdx4w+A5RyG10MVnDgIDn+IxIIdfe1gI1Y33BusC1o3mKb2PDxLNqmk=" # encrypted value of your token
name: "SonarCloud analysis"
dist: trusty
before_install:
- sudo apt-get update
- sudo apt-get install -y libsdl1.2-dev
- sudo apt-get install -y libsdl-ttf2.0-dev
- sudo apt-get install -y libsdl-mixer1.2-dev
- sudo apt-get install -y libsdl-image1.2-dev
- sudo apt-get install -y gettext
- sudo apt-get install -y zip
script:
# Wraps the compilation with the Build Wrapper to generate configuration (used
# later by the SonarScanner) into the "bw-output" folder
- build-wrapper-linux-x86-64 --out-dir bw-output make -j 2
# And finally run the SonarCloud analysis - read the "sonar-project.properties"
# file to see the specific configuration
- sonar-scanner -Dsonar.cfamily.build-wrapper-output=bw-output
- os: linux
name: "Linux (Ubuntu) with SDL 1.2"
before_install:
- sudo apt-get update
- sudo apt-get install -y libsdl1.2-dev
- sudo apt-get install -y libsdl-ttf2.0-dev
- sudo apt-get install -y libsdl-mixer1.2-dev
- sudo apt-get install -y libsdl-image1.2-dev
before_deploy:
- cp doc/README.txt .
- zip fheroes2_linux_sdl1.zip fheroes2 LICENSE fheroes2.key script/linux/install_sdl_1.sh script/demo/demo_linux.sh changelog.txt README.txt
- export TRAVIS_TAG=fheroes2-linux-sdl1_dev
- git tag -f $TRAVIS_TAG
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "fheroes2_linux_sdl1.zip"
skip_cleanup: true
name: Linux (Ubuntu) build with SDL 1 support (latest commit)
body: Compiled version of $TRAVIS_COMMIT commit
prerelease: true
overwrite: true
on:
branch: master
- os: linux
name: "Linux (Ubuntu) with SDL 2.0"
before_install:
- sudo apt-get update
- sudo apt-get install -y libsdl2-dev
- sudo apt-get install -y libsdl2-ttf-dev
- sudo apt-get install -y libsdl2-mixer-dev
- sudo apt-get install -y libsdl2-image-dev
- export WITH_SDL2="ON"
before_deploy:
- cp doc/README.txt .
- zip fheroes2_linux_sdl2.zip fheroes2 LICENSE fheroes2.key script/linux/install_sdl_2.sh script/demo/demo_linux.sh changelog.txt README.txt
- export TRAVIS_TAG=fheroes2-linux-sdl2_dev
- git tag -f $TRAVIS_TAG
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "fheroes2_linux_sdl2.zip"
skip_cleanup: true
name: Linux (Ubuntu) build with SDL 2 support (latest commit)
body: Compiled version of $TRAVIS_COMMIT commit
prerelease: true
overwrite: true
on:
branch: master
- os: linux
arch: arm64
name: "Linux (Ubuntu) ARM with SDL 1.2"
before_install:
- sudo apt-get update
- sudo apt-get install -y libsdl1.2-dev
- sudo apt-get install -y libsdl-ttf2.0-dev
- sudo apt-get install -y libsdl-mixer1.2-dev
- sudo apt-get install -y libsdl-image1.2-dev
- sudo apt-get install -y gettext
- sudo apt-get install -y zip
before_deploy:
- cp doc/README.txt .
- zip fheroes2_linux_arm_sdl1.zip fheroes2 LICENSE fheroes2.key script/linux/install_sdl_1.sh script/demo/demo_linux.sh changelog.txt README.txt
- export TRAVIS_TAG=fheroes2-linux-arm-sdl1_dev
- git tag -f $TRAVIS_TAG
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "fheroes2_linux_arm_sdl1.zip"
skip_cleanup: true
name: Linux (Ubuntu) ARM build with SDL 1 support (latest commit)
body: Compiled version of $TRAVIS_COMMIT commit
prerelease: true
overwrite: true
on:
branch: master
- os: linux
arch: arm64
name: "Linux (Ubuntu) ARM with SDL 2.0"
before_install:
- sudo apt-get update
- sudo apt-get install -y libsdl2-dev
- sudo apt-get install -y libsdl2-ttf-dev
- sudo apt-get install -y libsdl2-mixer-dev
- sudo apt-get install -y libsdl2-image-dev
- sudo apt-get install -y gettext
- sudo apt-get install -y zip
- export WITH_SDL2="ON"
before_deploy:
- cp doc/README.txt .
- zip fheroes2_linux_arm_sdl2.zip fheroes2 LICENSE fheroes2.key script/linux/install_sdl_2.sh script/demo/demo_linux.sh changelog.txt README.txt
- export TRAVIS_TAG=fheroes2-linux-arm-sdl2_dev
- git tag -f $TRAVIS_TAG
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file: "fheroes2_linux_arm_sdl2.zip"
skip_cleanup: true
name: Linux (Ubuntu) ARM build with SDL 2 support (latest commit)
body: Compiled version of $TRAVIS_COMMIT commit
prerelease: true
overwrite: true
on:
branch: master
script:
- |
make -j 2