2018-06-25 20:28:41 +00:00
|
|
|
language: cpp
|
2021-03-10 21:37:15 +00:00
|
|
|
dist: bionic
|
2018-06-27 01:55:19 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2018-06-26 02:26:48 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux GCC, make
|
2018-06-26 02:26:48 +00:00
|
|
|
compiler: gcc
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
|
|
|
TRAVIS_COMPILER_NAME=gcc
|
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux GCC, make, no libpng
|
|
|
|
compiler: gcc
|
2018-06-26 02:26:48 +00:00
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
2020-07-04 14:58:39 +00:00
|
|
|
TRAVIS_COMPILER_NAME=gcc
|
2018-06-26 02:26:48 +00:00
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
2020-07-04 14:58:39 +00:00
|
|
|
HYPERROGUE_USE_PNG=0
|
|
|
|
- os: linux # Linux GCC, make, Rogueviz
|
2018-06-26 02:26:48 +00:00
|
|
|
compiler: gcc
|
|
|
|
env: >-
|
2020-04-03 19:11:12 +00:00
|
|
|
TRAVIS_OS_NAME=linux
|
2018-06-26 02:26:48 +00:00
|
|
|
TRAVIS_COMPILER_NAME=gcc
|
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux Clang, make
|
2020-04-03 19:11:12 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux Clang, make, Rogueviz
|
2018-06-26 02:26:48 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
2020-07-04 14:58:39 +00:00
|
|
|
TRAVIS_OS_NAME=linux
|
2018-06-26 02:26:48 +00:00
|
|
|
TRAVIS_COMPILER_NAME=clang
|
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: osx # OSX, make
|
2021-03-10 21:37:15 +00:00
|
|
|
osx_image: xcode12u
|
2018-06-26 02:26:48 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=osx
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
2020-04-03 19:11:12 +00:00
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: osx # OSX, make, no libpng
|
2021-03-10 21:37:15 +00:00
|
|
|
osx_image: xcode11.6
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=osx
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
2020-07-04 14:58:39 +00:00
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
HYPERROGUE_USE_GLEW=1
|
2020-07-04 14:58:39 +00:00
|
|
|
HYPERROGUE_USE_PNG=0
|
|
|
|
- os: osx # OSX, make, Rogueviz
|
2021-03-10 21:37:15 +00:00
|
|
|
osx_image: xcode11.5
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=osx
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
2020-07-04 14:58:39 +00:00
|
|
|
TRAVIS_BUILD_SYSTEM=Makefile
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux GCC, mymake
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
compiler: gcc
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
|
|
|
TRAVIS_COMPILER_NAME=gcc
|
|
|
|
TRAVIS_BUILD_SYSTEM=mymake
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: linux # Linux GCC, mymake, Rogueviz
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
compiler: gcc
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
|
|
|
TRAVIS_COMPILER_NAME=gcc
|
|
|
|
TRAVIS_BUILD_SYSTEM=mymake
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=1
|
2020-07-04 14:58:39 +00:00
|
|
|
- os: osx # OSX, mymake
|
2021-03-10 21:37:15 +00:00
|
|
|
osx_image: xcode11.4
|
2020-07-04 14:58:39 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=osx
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
|
|
|
TRAVIS_BUILD_SYSTEM=mymake
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
- os: osx # OSX, mymake, Rogueviz
|
2021-03-10 21:37:15 +00:00
|
|
|
osx_image: xcode11.3
|
2020-07-04 14:58:39 +00:00
|
|
|
compiler: clang
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=osx
|
|
|
|
TRAVIS_COMPILER_NAME=clang
|
|
|
|
TRAVIS_BUILD_SYSTEM=mymake
|
|
|
|
HYPERROGUE_USE_GLEW=1
|
|
|
|
HYPERROGUE_USE_PNG=1
|
|
|
|
HYPERROGUE_USE_ROGUEVIZ=1
|
|
|
|
- os: linux # Emscripten
|
|
|
|
env: >-
|
|
|
|
TRAVIS_OS_NAME=linux
|
|
|
|
TRAVIS_COMPILER_NAME=emscripten
|
|
|
|
TRAVIS_BUILD_SYSTEM=emscripten
|
2018-06-26 02:26:48 +00:00
|
|
|
|
2018-07-01 00:57:28 +00:00
|
|
|
before_install:
|
2018-06-26 02:26:48 +00:00
|
|
|
- |-
|
|
|
|
# Install SDL
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo apt-get update -qq
|
|
|
|
sudo apt-get install -qq libsdl1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update
|
|
|
|
brew install sdl sdl_gfx sdl_mixer sdl_ttf
|
|
|
|
# work around https://stackoverflow.com/questions/51034399/ for now
|
|
|
|
(cd /usr/local/include && ln -sf SDL/SDL.h)
|
|
|
|
else
|
|
|
|
exit 'Unsupported OS'
|
|
|
|
fi
|
|
|
|
- |-
|
|
|
|
# Install GLEW if asked for
|
|
|
|
if [[ "$HYPERROGUE_USE_GLEW" == "1" ]]; then
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
sudo apt-get install -qq libglew-dev
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install glew
|
|
|
|
else
|
|
|
|
exit 'Unsupported OS'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
- |-
|
|
|
|
# Install libpng if asked for
|
|
|
|
if [[ "$HYPERROGUE_USE_PNG" == "1" ]]; then
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
|
|
|
echo 'libpng is installed by default'
|
|
|
|
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew install libpng
|
|
|
|
else
|
|
|
|
exit 'Unsupported OS'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2018-06-25 20:28:41 +00:00
|
|
|
script:
|
Add build steps to check the committed files against "make clean".
If "make clean" on a new checkout causes diffs, you accidentally committed
one of the build products currently listed in "make clean", and you
should `git rm` it again.
If "make clean" on a dirty/built checkout causes diffs, then either
(1) the "make" process modified some tracked file which is not removed
by "make clean", i.e. either (1A) it is a build product which needs to
be `git rm`ed AND added under "make clean", or (1B) the build process
is modifying some source file, which is highly weird and shouldn't happen;
or else (2) "make" created some untracked file which is not removed
by "make clean", i.e., you should add that build product to "make clean".
The Travis build that uses "mymake" now does the same "mv" trick as Github CI,
to avoid having the executable sometimes named "./hyperrogue" and sometimes
named "./hyper". Why are these filenames different, anyway?
2020-09-30 13:35:11 +00:00
|
|
|
- |-
|
2021-03-21 21:40:06 +00:00
|
|
|
make clean
|
Add build steps to check the committed files against "make clean".
If "make clean" on a new checkout causes diffs, you accidentally committed
one of the build products currently listed in "make clean", and you
should `git rm` it again.
If "make clean" on a dirty/built checkout causes diffs, then either
(1) the "make" process modified some tracked file which is not removed
by "make clean", i.e. either (1A) it is a build product which needs to
be `git rm`ed AND added under "make clean", or (1B) the build process
is modifying some source file, which is highly weird and shouldn't happen;
or else (2) "make" created some untracked file which is not removed
by "make clean", i.e., you should add that build product to "make clean".
The Travis build that uses "mymake" now does the same "mv" trick as Github CI,
to avoid having the executable sometimes named "./hyperrogue" and sometimes
named "./hyper". Why are these filenames different, anyway?
2020-09-30 13:35:11 +00:00
|
|
|
if [[ "$(git status --porcelain)" ]]; then
|
|
|
|
git status
|
|
|
|
exit 'A build artifact was committed; git rm it and try again'
|
|
|
|
fi
|
2018-07-01 00:57:28 +00:00
|
|
|
- |-
|
|
|
|
# Build hyperrogue.
|
2022-06-29 18:58:11 +00:00
|
|
|
export CXXFLAGS_EARLY=-Werror
|
2021-03-10 22:06:44 +00:00
|
|
|
if [[ "$TRAVIS_BUILD_SYSTEM" == "Makefile" ]]; then
|
2021-03-21 21:40:06 +00:00
|
|
|
make
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
elif [[ "$TRAVIS_BUILD_SYSTEM" == "mymake" ]]; then
|
2021-03-21 21:40:06 +00:00
|
|
|
make mymake
|
Make "mymake" work on OSX, and add it to Travis.
Fix a -Wformat bug exposed by compiling with Clang.
To preprocess C++11 code, you need `g++ -E -std=c++11`, not just
`g++ -E`. (The old code worked for GCC 6+ and Clang 6+ because they
changed the default mode from C++03 to C++14. But for GCC 5, we still
need `-std=c++11`. And regardless, it's a good idea.)
Add a "-mac" option to mymake, and cleanly factor out `set_mac`,
`set_linux`, and `set_win`. When you build mymake using
`make -f Makefile.simple mymake`, you get a mymake that knows what
platform it's on. This means you don't have to pass `mymake -mac`
on OSX, nor `mymake -win` on Windows.
The old code put `INCLUDE(___hyper-main.cpp)` into a C++ file that
would be preprocessed, which doesn't work because libSDL does
essentially `-Dmain=SDL_main`, which turns this into
`INCLUDE(___hyper-SDL_main.cpp)`, which gives us
a "file not found" error from mymake. The solution is to put
filenames into quotation marks, so that the string "main" never
appears as a token in the C++ file. (Alternatively, we could have
renamed "hyper-main.cpp" to "hypermain.cpp".)
Add several new "mymake" entries in the Travis build matrix,
and add the "mymake" builds' badge to the README.
2020-04-04 02:01:26 +00:00
|
|
|
if [[ "$HYPERROGUE_USE_ROGUEVIZ" == "1" ]]; then
|
|
|
|
./mymake -rv
|
|
|
|
else
|
|
|
|
./mymake
|
|
|
|
fi
|
Add build steps to check the committed files against "make clean".
If "make clean" on a new checkout causes diffs, you accidentally committed
one of the build products currently listed in "make clean", and you
should `git rm` it again.
If "make clean" on a dirty/built checkout causes diffs, then either
(1) the "make" process modified some tracked file which is not removed
by "make clean", i.e. either (1A) it is a build product which needs to
be `git rm`ed AND added under "make clean", or (1B) the build process
is modifying some source file, which is highly weird and shouldn't happen;
or else (2) "make" created some untracked file which is not removed
by "make clean", i.e., you should add that build product to "make clean".
The Travis build that uses "mymake" now does the same "mv" trick as Github CI,
to avoid having the executable sometimes named "./hyperrogue" and sometimes
named "./hyper". Why are these filenames different, anyway?
2020-09-30 13:35:11 +00:00
|
|
|
mv hyper hyperrogue
|
2018-06-27 01:55:19 +00:00
|
|
|
elif [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then
|
2021-03-21 21:40:06 +00:00
|
|
|
docker run --rm -v $(pwd):/src trzeci/emscripten make emscripten
|
2018-06-26 02:26:48 +00:00
|
|
|
else
|
|
|
|
exit 'Unsupported build system'
|
|
|
|
fi
|
2018-07-01 00:57:28 +00:00
|
|
|
- |-
|
|
|
|
# Test hyperrogue.
|
2018-06-27 01:55:19 +00:00
|
|
|
if [[ "$TRAVIS_BUILD_SYSTEM" == "emscripten" ]]; then
|
|
|
|
ls -lAF hyper.html hyper.js hyper.wasm
|
|
|
|
else
|
|
|
|
./hyperrogue --help
|
|
|
|
fi
|
Add build steps to check the committed files against "make clean".
If "make clean" on a new checkout causes diffs, you accidentally committed
one of the build products currently listed in "make clean", and you
should `git rm` it again.
If "make clean" on a dirty/built checkout causes diffs, then either
(1) the "make" process modified some tracked file which is not removed
by "make clean", i.e. either (1A) it is a build product which needs to
be `git rm`ed AND added under "make clean", or (1B) the build process
is modifying some source file, which is highly weird and shouldn't happen;
or else (2) "make" created some untracked file which is not removed
by "make clean", i.e., you should add that build product to "make clean".
The Travis build that uses "mymake" now does the same "mv" trick as Github CI,
to avoid having the executable sometimes named "./hyperrogue" and sometimes
named "./hyper". Why are these filenames different, anyway?
2020-09-30 13:35:11 +00:00
|
|
|
- |-
|
2021-03-21 21:40:06 +00:00
|
|
|
make clean
|
Add build steps to check the committed files against "make clean".
If "make clean" on a new checkout causes diffs, you accidentally committed
one of the build products currently listed in "make clean", and you
should `git rm` it again.
If "make clean" on a dirty/built checkout causes diffs, then either
(1) the "make" process modified some tracked file which is not removed
by "make clean", i.e. either (1A) it is a build product which needs to
be `git rm`ed AND added under "make clean", or (1B) the build process
is modifying some source file, which is highly weird and shouldn't happen;
or else (2) "make" created some untracked file which is not removed
by "make clean", i.e., you should add that build product to "make clean".
The Travis build that uses "mymake" now does the same "mv" trick as Github CI,
to avoid having the executable sometimes named "./hyperrogue" and sometimes
named "./hyper". Why are these filenames different, anyway?
2020-09-30 13:35:11 +00:00
|
|
|
if [[ "$(git status --porcelain)" ]]; then
|
|
|
|
git status
|
|
|
|
exit 'make clean did not return the repository to its pre-build state'
|
|
|
|
fi
|