Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Simplify and optimize Travis config
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandotcl committed Mar 25, 2019
1 parent 40db8a3 commit 0a9cf29
Showing 1 changed file with 29 additions and 43 deletions.
72 changes: 29 additions & 43 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,37 @@
language: c

services:
- docker

matrix:
include:

- os: linux
env: BUILD=linux
- os: linux
env: BUILD=linux-emscripten
- os: osx
env: BUILD=macos
- os: osx
env: BUILD=macos-ios
addons:
apt:
packages:
- libcurl4-openssl-dev
- libssl-dev
- libsdl2-dev
script:
- make

addons:
apt:
packages:
- libcurl4-openssl-dev
- libssl-dev
- libsdl2-dev
homebrew:
packages:
- openssl
- sdl2
- os: linux
services:
- docker
before_install:
- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
script:
- docker exec -it emscripten make -f Makefile.js

before_install:
- case "$BUILD" in
linux-emscripten)
docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
;;
esac
- os: osx
addons:
homebrew:
packages:
- openssl
- sdl2
script:
- make CFLAGS=-I$(brew --prefix)/opt/openssl/include CONFIG_MACOS=y

script:
- case "$BUILD" in
linux)
make
;;
linux-emscripten)
docker exec -it emscripten make -f Makefile.js
;;
macos)
make CFLAGS=-I$(brew --prefix)/opt/openssl/include CONFIG_MACOS=y
;;
macos-ios)
make CONFIG_IOS=y CONFIG_FS_NET= CONFIG_SDL= ;
make clean ;
make CONFIG_IOS_SIMULATOR=y CONFIG_FS_NET= CONFIG_SDL=
;;
esac
- os: osx
script:
- make CONFIG_IOS=y CONFIG_FS_NET= CONFIG_SDL=
- make clean
- make CONFIG_IOS_SIMULATOR=y CONFIG_FS_NET= CONFIG_SDL=

0 comments on commit 0a9cf29

Please sign in to comment.