55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
stages:
|
|
- build
|
|
- pages
|
|
|
|
job_linux:
|
|
stage: build
|
|
before_script:
|
|
- apt-get update -qq && apt-get install -y -qq zip
|
|
- apt-get install -y -qq libsdl1.2-dev libpng-dev libsdl-ttf2.0-dev libsdl-image1.2-dev liblua5.2-dev
|
|
- apt-get install -y -qq libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev doxygen graphviz
|
|
script:
|
|
- "make -j3 && make ziprelease"
|
|
- "API=sdl2 make -j3 && API=sdl2 make ziprelease"
|
|
- "make docarchive"
|
|
artifacts:
|
|
paths:
|
|
- "*.zip"
|
|
- "grafx2*.tgz"
|
|
|
|
pages:
|
|
stage: pages
|
|
script:
|
|
- "NOLUA=1 API=x11 make htmldoc"
|
|
- "mkdir -p public/htmldoc && cp doc/html/* public/htmldoc/"
|
|
- "echo -e '<DOCTYPE html>\n<html><head><title>GrafX2</title></head>\n<body>\n<ul>\n<li><a href=\"doxygen/html/\">doxygen</a></li>\n<li><a href=\"htmldoc/\">htmldoc</a></li>\n</ul>\n</body>\n</html>\n' > public/index.html"
|
|
- "cd public && tar xzf ../grafx2*doxygen.tgz"
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|
|
- gitlab-pages
|
|
|
|
job_win32:
|
|
stage: build
|
|
before_script:
|
|
- apt-get update -qq && apt-get install -y -qq zip dos2unix
|
|
- apt-get install -y -qq gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools nsis
|
|
script:
|
|
- "WIN32CROSS=1 make 3rdparty -j2"
|
|
- "WIN32CROSS=1 make -j2"
|
|
- "WIN32CROSS=1 make ziprelease"
|
|
- "WIN32CROSS=1 make win32installer"
|
|
- "WIN32CROSS=1 API=win32 make -j2"
|
|
- "WIN32CROSS=1 API=win32 make ziprelease"
|
|
- "WIN32CROSS=1 API=win32 make win32installer"
|
|
- "WIN32CROSS=1 API=sdl2 make 3rdparty -j2"
|
|
- "WIN32CROSS=1 API=sdl2 make -j2"
|
|
- "WIN32CROSS=1 API=sdl2 make ziprelease"
|
|
- "WIN32CROSS=1 API=sdl2 make win32installer"
|
|
artifacts:
|
|
paths:
|
|
- "*.zip"
|
|
- "install/grafx2*.exe"
|