-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Bedzior/feature/travis-build
Travis build
- Loading branch information
Showing
6 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
language: cpp | ||
|
||
git: | ||
depth: 1 | ||
|
||
services: | ||
- docker | ||
|
||
env: | ||
global: | ||
- _C=build | ||
- WORKDIR=/spelunky | ||
- BUILD_IMAGE=bedzior/spelunky-psp | ||
|
||
stages: | ||
- build | ||
- name: deploy | ||
if: tag is present | ||
|
||
install: | ||
- docker run -it -d --volume `pwd`:$WORKDIR --name $_C $BUILD_IMAGE /bin/bash | ||
- mkdir -p install | ||
|
||
jobs: | ||
include: | ||
- stage: build | ||
name: "Build PSP" | ||
script: | ||
- docker exec -w $WORKDIR $_C /bin/bash -c "./scripts/config-psp.sh ; ./scripts/build-psp.sh" | ||
- cp tmp/build-psp/SpelunkyPSP.PBP install/SpelunkyPSP.pbp | ||
- name: "Build Linux" | ||
script: | ||
- docker exec -w $WORKDIR $_C /bin/bash -c "./scripts/config-linux.sh ; ./scripts/build-linux.sh" | ||
- cp tmp/install-linux/Release/bin/Spelunky_PSP install/SpelunkyLinux | ||
|
||
deploy: | ||
provider: releases | ||
token: $GITHUB_TOKEN | ||
file_glob: true | ||
file: install/Spelunky* | ||
skip_cleanup: true | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM ubuntu:19.10 | ||
|
||
RUN apt-get update && apt-get upgrade -y | ||
# toolchain requirements | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
g++ \ | ||
build-essential \ | ||
autoconf \ | ||
automake \ | ||
cmake \ | ||
doxygen \ | ||
bison \ | ||
flex \ | ||
libncurses5-dev \ | ||
libsdl1.2-dev \ | ||
libreadline-dev \ | ||
libusb-dev \ | ||
texinfo \ | ||
libgmp3-dev \ | ||
libmpfr-dev \ | ||
libelf-dev \ | ||
libmpc-dev \ | ||
libfreetype6-dev \ | ||
zlib1g-dev \ | ||
libtool \ | ||
libtool-bin \ | ||
subversion \ | ||
git \ | ||
tcl \ | ||
unzip \ | ||
wget | ||
|
||
RUN git clone https://github.com/pspdev/psptoolchain.git --depth 1 | ||
|
||
WORKDIR psptoolchain | ||
|
||
RUN ./toolchain-sudo.sh && ./toolchain-sudo.sh clean | ||
|
||
RUN export PSPDEV=/usr/local/pspdev | ||
RUN export PATH=$PATH:$PSPDEV/bin | ||
ENV PSPDEV /usr/local/pspdev | ||
ENV PATH $PATH:$PSPDEV/bin | ||
# own requirements | ||
|
||
RUN apt-get install libglew-dev -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters