Epple-II/.travis.yml

65 lines
2.0 KiB
YAML
Raw Normal View History

2017-09-09 21:43:57 +00:00
language: cpp
2019-04-08 19:38:21 +00:00
env:
global:
- NAME=$(grep bin_PROGRAMS src/Makefile.am | cut -d= -f2)
matrix:
include:
- os: linux
dist: xenial
2019-06-30 19:10:20 +00:00
addons:
apt:
packages:
- build-essential
- xa65
- libsdl2-dev
2019-04-08 19:38:21 +00:00
before_script:
- ./bootstrap
script:
- ./configure
- make
2019-04-08 19:38:21 +00:00
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
- unzip -l $NAME-$TRAVIS_OS_NAME
2019-04-08 19:38:21 +00:00
- os: osx
install:
2019-04-11 00:41:39 +00:00
- HOMEBREW_NO_AUTO_UPDATE=1 brew install xa sdl2
2019-04-08 19:38:21 +00:00
before_script:
- ./bootstrap
script:
- ./configure
- make
2019-04-08 19:38:21 +00:00
- zip -j $NAME-$TRAVIS_OS_NAME src/$NAME
- unzip -l $NAME-$TRAVIS_OS_NAME
2019-04-11 20:14:55 +00:00
- os: linux # cross compile to windows
dist: xenial
2019-06-30 19:10:20 +00:00
addons:
apt:
packages:
- mingw-w64
- xa65
2019-04-11 00:41:39 +00:00
install:
2019-04-11 22:36:51 +00: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 20:14:55 +00:00
- cd SDL2-* && sudo make cross CROSS_PATH=/usr ARCHITECTURES=x86_64-w64-mingw32 && cd -
- 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-11 00:41:39 +00:00
script:
2019-04-11 22:36:51 +00:00
- make -f Makefile.mingw
- mkdir $NAME
- cp src/$NAME.exe /usr/x86_64-w64-mingw32/bin/SDL2.dll rom/*.a65 $NAME
2019-04-11 22:40:01 +00:00
- cp conf/$NAME.mingw $NAME/$NAME.conf
- unzip -d $NAME apple2sys && rm apple2sys.zip
- unzip -d $NAME apple2sysmas && rm apple2sysmas.zip
2019-04-11 20:30:04 +00:00
- zip -r $NAME-windows $NAME
2019-04-11 20:17:58 +00:00
- unzip -l $NAME-windows
2019-04-11 00:41:39 +00:00
deploy:
provider: releases
2019-04-11 20:30:04 +00:00
api_key:
secure: ShY9Zi+DTe2QdHa5aY0zzqyukP8+DVEOHG56LqiBCDQGrP6Mg8MNftlnFGA62Yc+C0RAD1smekKf5OKsQXJqVIbsq7SD0lw7TKw+0XED8i5TIUaQqM9IcQrua6ESNET2mqJRJkyddjcZMGkLKjHx0UbWyUxmnS4Myw2sbLRd414=
2019-04-11 00:41:39 +00:00
file_glob: true
file: "*.zip"
skip_cleanup: true
on:
tags: true