Skip to content

Commit

Permalink
Merge pull request #8 from morganwillcock/travis-ci
Browse files Browse the repository at this point in the history
Travis-CI: Modify build dependencies and settings
  • Loading branch information
ivan-mogilko authored May 12, 2019
2 parents 51cf508 + 70aff3d commit 9ad1ef4
Showing 1 changed file with 31 additions and 15 deletions.
46 changes: 31 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,44 @@
language: c

compiler:
- gcc

addons:
apt:
packages:
- build-essential
- pkg-config
- cmake
- libfreetype6-dev
- libogg-dev
- libtheora-dev
- libvorbis-dev
- liballegro4-dev
- libaldmb1-dev
- cmake
- libasound2-dev
- libjack-dev
- libsdl2-dev

env:
- BUILD_TYPE=debug
SHARED=on
- BUILD_TYPE=debug
SHARED=off
- BUILD_TYPE=release
SHARED=on
- BUILD_TYPE=release
SHARED=off

before_script:
- |
filename=lib-allegro_$BUILD_TYPE
[ "$SHARED" = "off" ] && filename=${filename}_static
export filename
script:
- mkdir build-liballegro
- cd build-liballegro
- cmake -D SHARED=off -DCMAKE_BUILD_TYPE=Debug ..
- make
- tar -zcf lib-allegro.tar.gz include/ lib/
- mkdir build_$filename
- cd build_$filename
- cmake -DSHARED=$SHARED -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make
- tar -cvzf $filename.tar.gz include/ lib/

deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file: lib-allegro.tar.gz
file_glob: true
file: lib-allegro_*.tar.gz
on:
tags: true

0 comments on commit 9ad1ef4

Please sign in to comment.