author | Wuzzy <Wuzzy2@mail.ru> |
Sat, 30 Nov 2019 02:54:49 +0100 | |
changeset 15514 | 6ddfde71ba6a |
parent 15465 | 421da44ff218 |
permissions | -rw-r--r-- |
12441
1ae6b6f10677
travis: move to trusty environment
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
12290
diff
changeset
|
1 |
sudo: required |
14929 | 2 |
dist: xenial |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
3 |
language: c |
11809 | 4 |
sudo: true |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
5 |
os: |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
6 |
- linux |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
7 |
- osx |
11753 | 8 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
9 |
branches: |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
10 |
only: |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
11 |
master |
11753 | 12 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
13 |
compiler: |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
14 |
- gcc |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
15 |
- clang |
11753 | 16 |
|
12290 | 17 |
matrix: |
18 |
exclude: |
|
19 |
- os: osx |
|
20 |
compiler: gcc |
|
21 |
||
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
22 |
env: |
9935 | 23 |
- BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release" |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
24 |
- BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug" |
11806 | 25 |
- BUILD_ARGS="-DNOSERVER=1 -DGL2=1 -DNOPNG=1" |
14929 | 26 |
- BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0" |
11753 | 27 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
28 |
matrix: |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
29 |
include: |
11754 | 30 |
- language: c |
31 |
os: linux |
|
32 |
compiler: clang |
|
33 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1" |
|
34 |
- language: c |
|
35 |
os: osx |
|
36 |
compiler: clang |
|
37 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1" |
|
11806 | 38 |
- language: c |
39 |
os: linux |
|
40 |
compiler: clang |
|
41 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1 -DGL2=1" |
|
42 |
- language: c |
|
43 |
os: osx |
|
44 |
compiler: clang |
|
45 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1 -DGL2=1" |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
46 |
- language: objective-c |
11753 | 47 |
sudo: required |
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
48 |
os: osx |
11753 | 49 |
compiler: clang |
50 |
env: TRAVIS_OS_NAME="ios" SDL_LIB_PATH="$TRAVIS_BUILD_DIR/../Library" |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
51 |
osx_image: xcode7.2 |
11753 | 52 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
53 |
before_install: | |
11753 | 54 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
15458
f28016c508c0
travis: refresh dependencies, use physfs from my ppa instead of build…
LocutusOfBorg
parents:
14929
diff
changeset
|
55 |
sudo add-apt-repository ppa:costamagnagianfranco/hedgewars-nightly -y |
11753 | 56 |
sudo apt-get update -qq |
57 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
|
14929 | 58 |
brew update |
11753 | 59 |
elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
60 |
hg clone http://hg.libsdl.org/SDL $SDL_LIB_PATH/SDL/ |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
61 |
hg clone http://hg.libsdl.org/SDL_image $SDL_LIB_PATH/SDL_image/ |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
62 |
hg clone http://hg.libsdl.org/SDL_net $SDL_LIB_PATH/SDL_net/ |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
63 |
hg clone http://hg.libsdl.org/SDL_ttf $SDL_LIB_PATH/SDL_ttf/ |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
64 |
hg clone http://hg.libsdl.org/SDL_mixer $SDL_LIB_PATH/SDL_mixer/ |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
65 |
fi |
11753 | 66 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
67 |
install: | |
11753 | 68 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
15458
f28016c508c0
travis: refresh dependencies, use physfs from my ppa instead of build…
LocutusOfBorg
parents:
14929
diff
changeset
|
69 |
sudo apt-get install -y cmake debhelper dpkg-dev fp-compiler fp-units-gfx fp-units-misc ghc libavcodec-dev libavformat-dev libghc-aeson-dev libghc-entropy-dev libghc-hslogger-dev libghc-mtl-dev libghc-network-dev libghc-parsec3-dev libghc-random-dev libghc-regex-tdfa-dev libghc-sandi-dev libghc-sha-dev libghc-text-dev libghc-utf8-string-dev libghc-vector-dev libghc-yaml-dev libghc-zlib-dev liblua5.1-dev libphysfs-dev libpng-dev libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-net-dev libsdl2-ttf-dev qtbase5-dev qtbase5-private-dev qttools5-dev qttools5-dev-tools |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
70 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
13301
fd857b7629ea
Update .travis.yml to include Qt5 stuff
Wuzzy <Wuzzy2@mail.ru>
parents:
13298
diff
changeset
|
71 |
brew install qt5 |
12821 | 72 |
brew install fpc glew physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install |
14929 | 73 |
brew install sdl2_mixer |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
74 |
# use cabal install haskell deps, pas2c ones are covered by server |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
75 |
if [[ "$BUILD_ARGS" != *"NOSERVER"* ]]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
76 |
cabal update |
15465
421da44ff218
Update cabal command syntax in .travis.yml
Wuzzy <Wuzzy2@mail.ru>
parents:
15458
diff
changeset
|
77 |
cabal install --only-dependencies --cabal-file=gameServer/hedgewars-server.cabal |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
78 |
fi |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
79 |
if [[ "$BUILD_ARGS" == *"BUILD_ENGINE_C"* ]]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
80 |
cabal update |
15465
421da44ff218
Update cabal command syntax in .travis.yml
Wuzzy <Wuzzy2@mail.ru>
parents:
15458
diff
changeset
|
81 |
cabal install --only-dependencies --cabal-file=tools/pas2c/pas2c.cabal |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
82 |
fi |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
83 |
# avoid installing Sparkle, add default unit path |
11753 | 84 |
export BUILD_ARGS="$BUILD_ARGS -DNOAUTOUPDATE=1" |
85 |
elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
|
86 |
# FPC 3.0.0 required for using FPC 3.0.1 which contains rtl for ios |
|
12443
664e2a221047
- Fix fpc download link for travis iOS build
antonc27 <antonc27@mail.ru>
parents:
12441
diff
changeset
|
87 |
sudo bash tools/dmg_pkg_install.sh ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.0/i386-macosx/fpc-3.0.0.intel-macosx.dmg |
664e2a221047
- Fix fpc download link for travis iOS build
antonc27 <antonc27@mail.ru>
parents:
12441
diff
changeset
|
88 |
sudo bash tools/dmg_pkg_install.sh ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.0/i386-macosx/fpc-3.0.1.intel-macosx.cross.ios.dmg |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
89 |
fi |
11753 | 90 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
91 |
before_script: | |
11753 | 92 |
if [ "$TRAVIS_OS_NAME" == "ios" ]; then |
93 |
# More or less stable hw iOS version can be compiled with FPC 3.1.1, |
|
94 |
# but there are no (easy?) way to build it from sources, |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
95 |
# so we just temporary switch Xcode project to use FPC 3.0.1 |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
96 |
git apply tools/fix_fpc_ios_build_patch.diff |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
97 |
xctool -project ./project_files/HedgewarsMobile/Hedgewars.xcodeproj -scheme UpdateDataFolder build |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
98 |
else |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
99 |
mkdir build && cd build && cmake $BUILD_ARGS .. |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
100 |
fi |
11753 | 101 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
102 |
script: | |
11753 | 103 |
if [ "$TRAVIS_OS_NAME" == "ios" ]; then |
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
104 |
xctool -project ./project_files/HedgewarsMobile/Hedgewars.xcodeproj -scheme Hedgewars -configuration Release build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
105 |
else |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
106 |
make VERBOSE=1 |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
107 |
fi |
11753 | 108 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
109 |
after_success: | |
11753 | 110 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
111 |
make test_verbose |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
112 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
113 |
make install |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
114 |
fi |
11753 | 115 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
116 |
notifications: |
10664
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
117 |
email: false |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
118 |
irc: |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
119 |
channels: |
9936 | 120 |
- "chat.freenode.net#hedgewars" |
9939 | 121 |
template: |
122 |
- "hw-build #%{build_number} (%{commit} by %{author}): %{message}" |
|
123 |
- "See details at %{build_url}" |
|
10664
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
124 |
on_success: change |
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
125 |
on_failure: always |
11509
df336149cc2b
travis: don't skip joins because that would require #hedgewars to allow messages from outside the channel
sheepluva
parents:
11415
diff
changeset
|
126 |
skip_join: false |