forked from nesbox/TIC-80
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (40 loc) · 1.25 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
language: c
script:
- cmake -DCMAKE_BUILD_TYPE=MinSizeRel .
- make -j4
matrix:
include:
- os: osx
osx_image: xcode9.3
env:
- OS_FOLDER=mac
- EXE_FILE=tic80.app
- os: linux
addons:
apt:
packages:
- libgtk-3-dev
- libasound2-dev
env:
- OS_FOLDER=linux
- EXE_FILE=tic80
- os: linux
env:
- OS_FOLDER=wasm
- EXE_FILE="tic80.js tic80.wasm"
sudo: required
services:
- docker
before_install:
- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
script:
- cmake -DBUILD_SDL=Off -DBUILD_SOKOL=Off .
- make generate_demo_carts
- git clean -xdf -e *.tic.dat
- git submodule foreach --recursive git clean -xfd
- docker exec -it emscripten emcmake cmake -DBUILD_SOKOL=Off -DBUILD_LIBRETRO=Off -DCMAKE_BUILD_TYPE=MinSizeRel .
- docker exec -it emscripten make -j4
after_success:
- BUILDS_SERVER_PATH=${BUILD_SERVER}/files/$TRAVIS_BRANCH/$(date +%Y.%m.%d)/$OS_FOLDER
- tar -cvzf tic80.tar.gz --directory=$HOME/build/nesbox/TIC-80/bin $EXE_FILE
- curl --retry 3 --ftp-create-dirs -T tic80.tar.gz $BUILDS_SERVER_PATH/