2017-09-09 17:43:57 -04:00
|
|
|
language: cpp
|
2019-04-08 15:38:21 -04:00
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- NAME=$(grep bin_PROGRAMS src/Makefile.am | cut -d= -f2)
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
dist: xenial
|
2019-06-30 15:10:20 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- build-essential
|
|
|
|
- xa65
|
|
|
|
- libsdl2-dev
|
2019-04-08 15:38:21 -04:00
|
|
|
before_script:
|
|
|
|
- ./bootstrap
|
|
|
|
script:
|
2019-04-13 16:59:22 -04:00
|
|
|
- ./configure
|
|
|
|
- make
|
2019-04-08 15:38:21 -04:00
|
|
|
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
|
2019-04-13 16:59:22 -04:00
|
|
|
- unzip -l $NAME-$TRAVIS_OS_NAME
|
2019-04-08 15:38:21 -04:00
|
|
|
- os: osx
|
|
|
|
install:
|
2019-04-10 20:41:39 -04:00
|
|
|
- HOMEBREW_NO_AUTO_UPDATE=1 brew install xa sdl2
|
2019-04-08 15:38:21 -04:00
|
|
|
before_script:
|
|
|
|
- ./bootstrap
|
|
|
|
script:
|
2019-04-13 16:59:22 -04:00
|
|
|
- ./configure
|
|
|
|
- make
|
2019-04-08 15:38:21 -04:00
|
|
|
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
|
2019-04-13 16:59:22 -04:00
|
|
|
- unzip -l $NAME-$TRAVIS_OS_NAME
|
2019-04-11 16:14:55 -04:00
|
|
|
- os: linux # cross compile to windows
|
|
|
|
dist: xenial
|
2019-06-30 15:10:20 -04:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- mingw-w64
|
|
|
|
- xa65
|
2019-04-10 20:41:39 -04:00
|
|
|
install:
|
2019-04-11 18:36:51 -04:00
|
|
|
- curl -L https://www.libsdl.org/release/SDL2-devel-2.0.9-mingw.tar.gz >SDL2.tar.gz && tar xzf SDL2.tar.gz
|
2019-04-11 16:14:55 -04:00
|
|
|
- cd SDL2-* && sudo make cross CROSS_PATH=/usr ARCHITECTURES=x86_64-w64-mingw32 && cd -
|
2019-04-11 21:59:43 -04:00
|
|
|
- curl -LO https://github.com/cmosher01/Apple-II-System-Masters/releases/download/v1.1.0/apple2sysmas.zip
|
|
|
|
- curl -LO https://github.com/cmosher01/Apple-II-Source/releases/download/v1.1.2/apple2sys.zip
|
2019-04-10 20:41:39 -04:00
|
|
|
script:
|
2019-04-11 18:36:51 -04:00
|
|
|
- make -f Makefile.mingw
|
2019-04-11 21:59:43 -04:00
|
|
|
- mkdir $NAME
|
|
|
|
- cp src/$NAME.exe /usr/x86_64-w64-mingw32/bin/SDL2.dll rom/*.a65 $NAME
|
2019-04-11 18:40:01 -04:00
|
|
|
- cp conf/$NAME.mingw $NAME/$NAME.conf
|
2019-04-11 22:12:43 -04:00
|
|
|
- unzip -d $NAME apple2sys && rm apple2sys.zip
|
|
|
|
- unzip -d $NAME apple2sysmas && rm apple2sysmas.zip
|
2019-04-11 16:30:04 -04:00
|
|
|
- zip -r $NAME-windows $NAME
|
2019-04-11 16:17:58 -04:00
|
|
|
- unzip -l $NAME-windows
|
2019-04-10 20:41:39 -04:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
2019-04-11 16:30:04 -04:00
|
|
|
api_key:
|
|
|
|
secure: ShY9Zi+DTe2QdHa5aY0zzqyukP8+DVEOHG56LqiBCDQGrP6Mg8MNftlnFGA62Yc+C0RAD1smekKf5OKsQXJqVIbsq7SD0lw7TKw+0XED8i5TIUaQqM9IcQrua6ESNET2mqJRJkyddjcZMGkLKjHx0UbWyUxmnS4Myw2sbLRd414=
|
2019-04-10 20:41:39 -04:00
|
|
|
file_glob: true
|
|
|
|
file: "*.zip"
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|