1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-14 09:24:48 +00:00
This commit is contained in:
Zeno Rogue 2021-03-12 15:31:27 +01:00
commit eb6322b864
3 changed files with 25 additions and 1304 deletions

View File

@ -1,4 +1,5 @@
language: cpp language: cpp
dist: bionic
services: services:
- docker - docker
matrix: matrix:
@ -12,6 +13,7 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
- os: osx # OSX, autotools - os: osx # OSX, autotools
osx_image: xcode12.2
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -36,7 +38,6 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=0 HYPERROGUE_USE_PNG=0
- os: linux # Linux GCC, make, Rogueviz - os: linux # Linux GCC, make, Rogueviz
dist: bionic
compiler: gcc compiler: gcc
env: >- env: >-
TRAVIS_OS_NAME=linux TRAVIS_OS_NAME=linux
@ -63,6 +64,7 @@ matrix:
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
HYPERROGUE_USE_ROGUEVIZ=1 HYPERROGUE_USE_ROGUEVIZ=1
- os: osx # OSX, make - os: osx # OSX, make
osx_image: xcode12u
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -71,6 +73,7 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
- os: osx # OSX, make, no libpng - os: osx # OSX, make, no libpng
osx_image: xcode11.6
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -79,6 +82,7 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=0 HYPERROGUE_USE_PNG=0
- os: osx # OSX, make, Rogueviz - os: osx # OSX, make, Rogueviz
osx_image: xcode11.5
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -96,7 +100,6 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
- os: linux # Linux GCC, mymake, Rogueviz - os: linux # Linux GCC, mymake, Rogueviz
dist: bionic
compiler: gcc compiler: gcc
env: >- env: >-
TRAVIS_OS_NAME=linux TRAVIS_OS_NAME=linux
@ -106,6 +109,7 @@ matrix:
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
HYPERROGUE_USE_ROGUEVIZ=1 HYPERROGUE_USE_ROGUEVIZ=1
- os: osx # OSX, mymake - os: osx # OSX, mymake
osx_image: xcode11.4
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -114,6 +118,7 @@ matrix:
HYPERROGUE_USE_GLEW=1 HYPERROGUE_USE_GLEW=1
HYPERROGUE_USE_PNG=1 HYPERROGUE_USE_PNG=1
- os: osx # OSX, mymake, Rogueviz - os: osx # OSX, mymake, Rogueviz
osx_image: xcode11.3
compiler: clang compiler: clang
env: >- env: >-
TRAVIS_OS_NAME=osx TRAVIS_OS_NAME=osx
@ -177,6 +182,12 @@ before_install:
fi fi
script: script:
- |-
make -f Makefile.simple clean
if [[ "$(git status --porcelain)" ]]; then
git status
exit 'A build artifact was committed; git rm it and try again'
fi
- |- - |-
# Build hyperrogue. # Build hyperrogue.
if [[ "$TRAVIS_BUILD_SYSTEM" == "autotools" ]]; then if [[ "$TRAVIS_BUILD_SYSTEM" == "autotools" ]]; then
@ -192,6 +203,7 @@ script:
else else
./mymake ./mymake
fi fi
mv hyper hyperrogue
elif [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then elif [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then
docker run --rm -v $(pwd):/src trzeci/emscripten make -f Makefile.simple emscripten docker run --rm -v $(pwd):/src trzeci/emscripten make -f Makefile.simple emscripten
else else
@ -201,11 +213,19 @@ script:
# Test hyperrogue. # Test hyperrogue.
if [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then if [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then
ls -lAF hyper.html hyper.js hyper.wasm ls -lAF hyper.html hyper.js hyper.wasm
elif [[ "$TRAVIS_BUILD_SYSTEM" == "mymake" ]]; then
./hyper --help
else else
./hyperrogue --help ./hyperrogue --help
fi fi
- |-
if [[ "$TRAVIS_BUILD_SYSTEM" == "autotools" ]]; then
make clean
else
make -f Makefile.simple clean
fi
if [[ "$(git status --porcelain)" ]]; then
git status
exit 'make clean did not return the repository to its pre-build state'
fi
- |- - |-
# Test "make dist". ("make distcheck" is expected to fail.) # Test "make dist". ("make distcheck" is expected to fail.)
if [[ "$TRAVIS_BUILD_SYSTEM" == "autotools" ]]; then make dist; fi if [[ "$TRAVIS_BUILD_SYSTEM" == "autotools" ]]; then make dist; fi

View File

@ -21,6 +21,7 @@ langen_SOURCES = langen.cpp
langen_CXXFLAGS = -O0 -std=c++11 ${AM_CXXFLAGS} langen_CXXFLAGS = -O0 -std=c++11 ${AM_CXXFLAGS}
makeh_SOURCES = makeh.cpp makeh_SOURCES = makeh.cpp
BUILT_SOURCES = language-data.cpp autohdr.h BUILT_SOURCES = language-data.cpp autohdr.h
CLEANFILES = language-data.cpp autohdr.h
language-data.cpp: langen language-data.cpp: langen
./langen > language-data.cpp ./langen > language-data.cpp

1300
hyper.html

File diff suppressed because one or more lines are too long