author | Wuzzy <almikes@aol.com> |
Thu, 27 Apr 2017 02:42:40 +0200 | |
changeset 12356 | 62b935bec899 |
parent 12290 | 3cdd664f6d0c |
child 12441 | 1ae6b6f10677 |
permissions | -rw-r--r-- |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
1 |
language: c |
11809 | 2 |
sudo: true |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
3 |
os: |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
4 |
- linux |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
5 |
- osx |
11753 | 6 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
7 |
branches: |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
8 |
only: |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
9 |
master |
11753 | 10 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
11 |
compiler: |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
12 |
- gcc |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
13 |
- clang |
11753 | 14 |
|
12290 | 15 |
matrix: |
16 |
exclude: |
|
17 |
- os: osx |
|
18 |
compiler: gcc |
|
19 |
||
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
20 |
env: |
9935 | 21 |
- BUILD_ARGS="-DCMAKE_BUILD_TYPE=Release" |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
22 |
- BUILD_ARGS="-DCMAKE_BUILD_TYPE=Debug" |
11806 | 23 |
- BUILD_ARGS="-DNOSERVER=1 -DGL2=1 -DNOPNG=1" |
11339
0bff27d8d18f
travis: Trim down the number of tests
Vittorio Giovara <vittorio.giovara@gmail.com>
parents:
10664
diff
changeset
|
24 |
- BUILD_ARGS="-DNOSERVER=1 -DLUA_SYSTEM=0 -DPHYSFS_SYSTEM=0" |
11753 | 25 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
26 |
matrix: |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
27 |
include: |
11754 | 28 |
- language: c |
29 |
os: linux |
|
30 |
compiler: clang |
|
31 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1" |
|
32 |
- language: c |
|
33 |
os: osx |
|
34 |
compiler: clang |
|
35 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1" |
|
11806 | 36 |
- language: c |
37 |
os: linux |
|
38 |
compiler: clang |
|
39 |
env: BUILD_ARGS="-DNOSERVER=1 -DBUILD_ENGINE_C=1 -DGL2=1" |
|
40 |
- language: c |
|
41 |
os: osx |
|
42 |
compiler: clang |
|
43 |
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
|
44 |
- language: objective-c |
11753 | 45 |
sudo: required |
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
46 |
os: osx |
11753 | 47 |
compiler: clang |
48 |
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
|
49 |
osx_image: xcode7.2 |
11753 | 50 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
51 |
before_install: | |
11753 | 52 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
53 |
sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots |
|
54 |
sudo apt-get update -qq |
|
55 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
|
56 |
brew update --all |
|
57 |
elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
58 |
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
|
59 |
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
|
60 |
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
|
61 |
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
|
62 |
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
|
63 |
fi |
11753 | 64 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
65 |
install: | |
11753 | 66 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
11866
8ba6b227f1dc
travis: also add libghc-regex-tdfa-dev to dependencies
sheepluva
parents:
11864
diff
changeset
|
67 |
sudo apt-get install debhelper cmake dpkg-dev libqt4-dev qt4-qmake libphysfs-dev libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev libsdl2-net-dev bzip2 ghc libghc-mtl-dev libghc-parsec3-dev libghc-vector-dev libghc-zlib-dev libghc-random-dev libghc-stm-dev libghc-network-dev libghc-sandi-dev libghc-hslogger-dev libghc-utf8-string-dev libghc-sha-dev libghc-entropy-dev libghc-regex-tdfa-dev liblua5.1-0-dev imagemagick fpc fp-compiler fp-units-misc libpng-dev fp-units-gfx libavcodec-dev libavformat-dev libglew1.6-dev |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
68 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
11667
97a4188fc99e
travis: Use correct vorbis flag in sdl2_mixer install
koda
parents:
11658
diff
changeset
|
69 |
brew install fpc glew qt physfs lua51 sdl2 sdl2_image sdl2_net sdl2_ttf ffmpeg ghc cabal-install |
97a4188fc99e
travis: Use correct vorbis flag in sdl2_mixer install
koda
parents:
11658
diff
changeset
|
70 |
brew install sdl2_mixer --with-libvorbis |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
71 |
# 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
|
72 |
if [[ "$BUILD_ARGS" != *"NOSERVER"* ]]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
73 |
cabal update |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
74 |
cabal install --only-dependencies gameServer/hedgewars-server.cabal |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
75 |
fi |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
76 |
if [[ "$BUILD_ARGS" == *"BUILD_ENGINE_C"* ]]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
77 |
cabal update |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
78 |
cabal install --only-dependencies tools/pas2c/pas2c.cabal |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
79 |
fi |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
80 |
# avoid installing Sparkle, add default unit path |
11753 | 81 |
export BUILD_ARGS="$BUILD_ARGS -DNOAUTOUPDATE=1" |
82 |
elif [ "$TRAVIS_OS_NAME" == "ios" ]; then |
|
83 |
# FPC 3.0.0 required for using FPC 3.0.1 which contains rtl for ios |
|
84 |
sudo bash tools/dmg_pkg_install.sh ftp://freepascal.stack.nl/pub/fpc/dist/3.0.0/i386-macosx/fpc-3.0.0.intel-macosx.dmg |
|
85 |
sudo bash tools/dmg_pkg_install.sh ftp://freepascal.stack.nl/pub/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
|
86 |
fi |
11753 | 87 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
88 |
before_script: | |
11753 | 89 |
if [ "$TRAVIS_OS_NAME" == "ios" ]; then |
90 |
# More or less stable hw iOS version can be compiled with FPC 3.1.1, |
|
91 |
# 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
|
92 |
# 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
|
93 |
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
|
94 |
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
|
95 |
else |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
96 |
mkdir build && cd build && cmake $BUILD_ARGS .. |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
97 |
fi |
11753 | 98 |
|
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
99 |
script: | |
11753 | 100 |
if [ "$TRAVIS_OS_NAME" == "ios" ]; then |
11592
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
101 |
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
|
102 |
else |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
103 |
make VERBOSE=1 |
cf83d9cb5590
- Enable CI builds with travis for hw iOS
antonc27 <antonc27@mail.ru>
parents:
11509
diff
changeset
|
104 |
fi |
11753 | 105 |
|
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
106 |
after_success: | |
11753 | 107 |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then |
11415
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
108 |
make test_verbose |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
109 |
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
110 |
make install |
1b9e183841e7
travis: Enable OSX tests
Vittorio Giovara <vittorio@vimeo.com>
parents:
11398
diff
changeset
|
111 |
fi |
11753 | 112 |
|
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
113 |
notifications: |
10664
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
114 |
email: false |
9915
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
115 |
irc: |
67c9bd84f941
Added simple travis file
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
diff
changeset
|
116 |
channels: |
9936 | 117 |
- "chat.freenode.net#hedgewars" |
9939 | 118 |
template: |
119 |
- "hw-build #%{build_number} (%{commit} by %{author}): %{message}" |
|
120 |
- "See details at %{build_url}" |
|
10664
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
121 |
on_success: change |
20ec6af4fb87
Use notice and skip join on irc
Gianfranco Costamagna <costamagnagianfranco@yahoo.it>
parents:
10559
diff
changeset
|
122 |
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
|
123 |
skip_join: false |