2016-02-07 16:38:04 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2016-10-14 18:11:43 +00:00
|
|
|
- package
|
2018-08-01 14:20:13 +00:00
|
|
|
- deploy
|
|
|
|
- updatewebsite
|
2016-02-07 16:38:04 +00:00
|
|
|
|
2018-07-17 20:47:44 +00:00
|
|
|
|
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: UBUNTU X
|
2016-02-07 18:48:07 +00:00
|
|
|
build-ubuntu-x:
|
2016-02-07 16:38:04 +00:00
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: build
|
2016-02-06 15:19:32 +00:00
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- sudo apt-get update -qq && sudo apt-get install -y -qq g++ libpcap0.8-dev libx11-dev libxext-dev re2c cmake
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
2016-02-06 15:19:32 +00:00
|
|
|
- make clean ; make
|
2019-04-09 11:01:45 +00:00
|
|
|
- mv bin/GSplus ../gsplusx
|
2016-10-28 01:55:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gsplusx
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2016-10-28 01:55:22 +00:00
|
|
|
|
|
|
|
package-ubuntu-x:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: package
|
2016-10-28 02:44:51 +00:00
|
|
|
script:
|
2016-10-28 04:01:06 +00:00
|
|
|
- cp src/config.txt .
|
2017-01-23 21:15:59 +00:00
|
|
|
- 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> config.txt'
|
2018-07-17 20:47:44 +00:00
|
|
|
- cp LICENSE.txt doc/
|
2016-10-28 01:55:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gsplusx
|
2016-10-28 02:14:48 +00:00
|
|
|
- config.txt
|
2016-10-28 04:11:14 +00:00
|
|
|
- doc/gsplusmanual.pdf
|
2018-07-17 20:47:44 +00:00
|
|
|
- doc/LICENSE.txt
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2018-07-17 20:47:44 +00:00
|
|
|
|
2016-10-28 04:11:14 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: DEPRECATED, UBUNTU SDL
|
2016-02-07 18:48:07 +00:00
|
|
|
build-ubuntu-sdl:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: build
|
|
|
|
script:
|
2016-10-19 18:20:27 +00:00
|
|
|
- sudo apt-get update -qq && sudo apt-get install -y -qq g++ libpcap0.8-dev libx11-dev libsdl2-dev libfreetype6-dev libsdl2-image-dev
|
2016-02-07 18:48:07 +00:00
|
|
|
- cd src
|
|
|
|
- ln -s vars_x86linux_sdl vars
|
|
|
|
- make clean ; make
|
2018-08-01 14:20:13 +00:00
|
|
|
only:
|
|
|
|
- master
|
2016-02-07 18:48:07 +00:00
|
|
|
|
2016-10-28 01:55:22 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: REALLY ANY LINUX, BUT UBUNTU W SDL2
|
2016-03-03 21:25:24 +00:00
|
|
|
build-ubuntu-sdl2:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- sudo apt-get update -qq && sudo apt-get install -y -qq g++ libpcap0.8-dev libx11-dev libsdl2-dev libfreetype6-dev libsdl2-image-dev re2c cmake
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
|
|
|
- mv bin/GSplus ../gsplus-ubuntu-sdl.bin
|
2016-10-28 01:55:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-08-01 14:20:13 +00:00
|
|
|
- gsplus-ubuntu-sdl.bin
|
|
|
|
expire_in: 10 minutes
|
2016-10-28 01:55:22 +00:00
|
|
|
|
|
|
|
package-ubuntu-sdl2:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: package
|
2018-08-01 14:20:13 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
|
|
|
PACKAGE_DIR: gsplus-ubuntu-sdl
|
2016-10-28 04:11:14 +00:00
|
|
|
script:
|
2018-08-01 14:20:13 +00:00
|
|
|
- mkdir $PACKAGE_DIR
|
|
|
|
- mkdir $PACKAGE_DIR/doc
|
2018-08-22 19:30:02 +00:00
|
|
|
- cp gsplus-ubuntu-sdl.bin $PACKAGE_DIR/gsplus
|
2018-08-01 14:20:13 +00:00
|
|
|
- cp src/config.txt $PACKAGE_DIR
|
|
|
|
- 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> $PACKAGE_DIR/config.txt'
|
|
|
|
- cp src/parallel.rom %PACKAGE_DIR%
|
|
|
|
- cp LICENSE.txt $PACKAGE_DIR/doc/
|
|
|
|
- cp doc/gsplusmanual.pdf %PACKAGE_DIR%
|
|
|
|
- cp doc/README.txt %PACKAGE_DIR%
|
|
|
|
- tar -cvjf gsplus-ubuntu-sdl.tar.bz2 $PACKAGE_DIR
|
2016-10-28 01:55:22 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-08-01 14:20:13 +00:00
|
|
|
- gsplus-ubuntu-sdl.tar.bz2
|
|
|
|
expire_in: 10 minutes
|
2018-08-22 19:23:11 +00:00
|
|
|
|
|
|
|
package-ubuntu-sdl2-deb:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: package
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
2018-08-22 19:30:02 +00:00
|
|
|
PACKAGE_NAME: gsplus_$CI_VERSION-0
|
2018-08-22 19:23:11 +00:00
|
|
|
script:
|
|
|
|
- mkdir -p $PACKAGE_NAME/usr/local/bin
|
|
|
|
- mkdir -p $PACKAGE_NAME/DEBIAN
|
2018-08-22 19:30:02 +00:00
|
|
|
- cp gsplus-ubuntu-sdl.bin $PACKAGE_NAME/usr/local/bin/gsplus
|
2018-08-22 19:23:11 +00:00
|
|
|
- cp assets/control $PACKAGE_NAME/DEBIAN
|
2018-08-22 19:30:02 +00:00
|
|
|
- dpkg-deb --build $PACKAGE_NAME
|
2018-08-22 19:23:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-08-22 19:30:02 +00:00
|
|
|
- $PACKAGE_NAME.deb
|
2018-08-22 19:23:11 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
deploy-ubuntu:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2018-08-22 19:30:02 +00:00
|
|
|
PACKAGE_NAME: gsplus_$CI_VERSION-0
|
2018-08-22 19:23:11 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
script:
|
|
|
|
- aws s3 cp gsplus-ubuntu-sdl.tar.bz2 s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl/$CI_BUILD_ID/ --acl public-read
|
2018-08-22 19:30:02 +00:00
|
|
|
- aws s3 cp $PACKAGE_NAME.deb s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/ubuntu-sdl-deb/$CI_BUILD_ID/ --acl public-read
|
2018-07-17 20:47:44 +00:00
|
|
|
|
2016-03-03 21:25:24 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: OSX 10.SOMETHING
|
2016-02-07 16:40:57 +00:00
|
|
|
build-osx:
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ..
|
|
|
|
- make
|
2016-02-07 16:40:57 +00:00
|
|
|
- make clean ; make
|
2019-04-09 11:01:45 +00:00
|
|
|
- mv bin/GSplus.app/Contents/MacOS/GSplus ../gsplus-osx
|
2016-10-14 18:27:53 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-01-24 03:26:56 +00:00
|
|
|
- gsplus-osx
|
2019-04-09 11:01:45 +00:00
|
|
|
expire_in: 15 minutes
|
2016-02-07 16:40:57 +00:00
|
|
|
|
2016-10-14 18:11:43 +00:00
|
|
|
package-osx:
|
|
|
|
tags:
|
2016-10-14 18:15:40 +00:00
|
|
|
- osx
|
2016-10-14 18:11:43 +00:00
|
|
|
stage: package
|
|
|
|
script:
|
2017-01-24 03:26:56 +00:00
|
|
|
- mv gsplus-osx gsplus
|
2017-01-23 21:00:06 +00:00
|
|
|
- cp src/config.txt .
|
2017-01-23 21:15:59 +00:00
|
|
|
- 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> config.txt'
|
2016-10-14 19:44:58 +00:00
|
|
|
- chmod +x make_dist_mac.sh
|
|
|
|
- ./make_dist_mac.sh
|
2016-11-03 02:28:16 +00:00
|
|
|
- chmod +x make_dmg_mac.sh
|
|
|
|
- ./make_dmg_mac.sh
|
2016-10-14 18:11:43 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-11-03 02:28:16 +00:00
|
|
|
- GSplus-Install.dmg
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
2016-10-14 18:11:43 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
deploy-osx:
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
script:
|
|
|
|
- aws s3 cp GSplus-Install.dmg s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/osx/$CI_BUILD_ID/ --acl public-read
|
2016-10-14 18:11:43 +00:00
|
|
|
|
2016-02-07 16:40:57 +00:00
|
|
|
|
2019-04-09 11:01:45 +00:00
|
|
|
# TARGET SYSTEM: WIN32 GDI WIN API UNDER MSYS2
|
|
|
|
build-win32-gdi:
|
2016-04-24 14:50:51 +00:00
|
|
|
tags:
|
2019-04-09 11:01:45 +00:00
|
|
|
- windows,msys
|
2016-04-24 14:50:51 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- ls
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- cmake ../ -DDRIVER=WIN32 -DWITH_DEBUGGER=OFF -DWITH_STATIC=ON -G "Unix Makefiles"
|
|
|
|
- make VERBOSE=1 GSplus
|
|
|
|
- mv bin/GSplus.exe ../GSplus-win32-gdi.exe
|
2016-10-14 20:18:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-04-09 11:01:45 +00:00
|
|
|
- GSplus-win32-gdi.exe
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2018-08-22 15:55:37 +00:00
|
|
|
- /^win.*/
|
2019-04-09 11:01:45 +00:00
|
|
|
- /^ks.*/
|
2016-10-14 20:18:07 +00:00
|
|
|
|
2019-04-09 11:01:45 +00:00
|
|
|
package-win32-gdi:
|
2016-10-19 05:01:19 +00:00
|
|
|
tags:
|
2019-04-09 11:01:45 +00:00
|
|
|
- windows,msys
|
2018-08-22 15:52:12 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
2019-04-09 11:01:45 +00:00
|
|
|
PACKAGE_DIR: gsplus-win32-gdi
|
|
|
|
stage: package
|
2018-08-22 15:52:12 +00:00
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- ls
|
2018-08-22 15:52:12 +00:00
|
|
|
- mkdir %PACKAGE_DIR%
|
2019-04-09 11:01:45 +00:00
|
|
|
- cp src/config.txt %PACKAGE_DIR%
|
|
|
|
- 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> %PACKAGE_DIR%/config.txt'
|
|
|
|
- cp LICENSE.txt doc/
|
|
|
|
- cp GSplus-win32-gdi.exe %PACKAGE_DIR%/GSplus.exe
|
2018-08-22 15:52:12 +00:00
|
|
|
- cp LICENSE.txt %PACKAGE_DIR%
|
|
|
|
- cp src/config.txt %PACKAGE_DIR%
|
|
|
|
- cp src/parallel.rom %PACKAGE_DIR%
|
|
|
|
- cp doc/gsplusmanual.pdf %PACKAGE_DIR%
|
|
|
|
- cp doc/README.txt %PACKAGE_DIR%
|
2019-04-09 11:01:45 +00:00
|
|
|
- cp /mingw32/bin/libgcc_s_dw2-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libstdc++-6.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libwinpthread-1.dll %PACKAGE_DIR%
|
|
|
|
- zip gsplus-win32-gdi.zip -r %PACKAGE_DIR%
|
2016-10-19 05:01:19 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-04-09 11:01:45 +00:00
|
|
|
- gsplus-win32-gdi.zip
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2018-08-22 15:55:37 +00:00
|
|
|
- /^win.*/
|
2019-04-09 11:01:45 +00:00
|
|
|
- /^ks.*/
|
2016-10-19 05:01:19 +00:00
|
|
|
|
2019-04-09 11:01:45 +00:00
|
|
|
deploy-win32-gdi:
|
2018-08-22 15:52:12 +00:00
|
|
|
tags:
|
2019-04-09 11:01:45 +00:00
|
|
|
- osx
|
2018-08-22 15:52:12 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- aws s3 cp gsplus-win32-gdi.zip s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/win32/$CI_BUILD_ID/ --acl public-read
|
2018-08-22 15:55:37 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^win.*/
|
2019-04-09 11:01:45 +00:00
|
|
|
- /^ks.*/
|
2018-07-17 20:47:44 +00:00
|
|
|
|
2019-04-09 11:01:45 +00:00
|
|
|
# TARGET SYSTEM: MSYS2 MINGW32 SDL2
|
|
|
|
build-win32-sdl2:
|
2016-10-19 05:01:19 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: build
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- mkdir build
|
|
|
|
- cd build
|
|
|
|
- bash -l -c 'PATH=/mingw32/bin:$PATH ; MSYSTEM=MINGW32 MSYSTEM_PREFIX=/mingw32 /mingw32/bin/cmake ../ -DDRIVER=SDL2 -DWITH_DEBUGGER=OFF -DWITH_STATIC=ON -G "MSYS Makefiles"'
|
|
|
|
- bash -l -c 'PATH=/mingw32/bin:$PATH ;MSYSTEM=MINGW32 MSYSTEM_PREFIX=/mingw32 /mingw32/bin/mingw32-make VERBOSE=1 GSplus'
|
|
|
|
- mv bin/GSplus.exe ../GSplus-win32-sdl.exe
|
|
|
|
|
2016-10-19 05:01:19 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-04-09 11:01:45 +00:00
|
|
|
- GSplus-win32-sdl.exe
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
2019-04-09 11:01:45 +00:00
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^win.*/
|
|
|
|
- /^ks.*/
|
2018-07-17 20:47:44 +00:00
|
|
|
|
2019-04-09 11:01:45 +00:00
|
|
|
|
|
|
|
package-win32-sdl2:
|
2016-10-14 20:18:07 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: package
|
2018-08-01 14:20:13 +00:00
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: fetch
|
2019-04-09 11:01:45 +00:00
|
|
|
PACKAGE_DIR: gsplus-win32-sdl
|
2016-10-28 04:11:14 +00:00
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- ls
|
2018-08-01 14:20:13 +00:00
|
|
|
- mkdir %PACKAGE_DIR%
|
2019-04-09 11:01:45 +00:00
|
|
|
- cp GSplus-win32-sdl.exe %PACKAGE_DIR%/GSplus.exe
|
2018-08-01 14:20:13 +00:00
|
|
|
- cp LICENSE.txt %PACKAGE_DIR%
|
|
|
|
- cp src/config.txt %PACKAGE_DIR%
|
|
|
|
- cp src/parallel.rom %PACKAGE_DIR%
|
|
|
|
- cp doc/gsplusmanual.pdf %PACKAGE_DIR%
|
|
|
|
- cp doc/README.txt %PACKAGE_DIR%
|
2019-04-09 11:01:45 +00:00
|
|
|
- cp /mingw32/bin/libbz2-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libfreetype-6.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libgcc_s_dw2-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libglib-2.0-0.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libgraphite2.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libharfbuzz-0.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libiconv-2.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libintl-8.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libpcre-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libpng16-16.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libstdc++-6.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/libwinpthread-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/SDL2.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/SDL2_image.dll %PACKAGE_DIR%
|
|
|
|
- cp /mingw32/bin/zlib1.dll %PACKAGE_DIR%
|
|
|
|
- zip gsplus-win32-sdl.zip -r %PACKAGE_DIR%
|
2016-10-14 20:18:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2019-04-09 11:01:45 +00:00
|
|
|
- gsplus-win32-sdl.zip
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
2019-04-09 11:01:45 +00:00
|
|
|
|
|
|
|
deploy-win32-sdl2:
|
2018-08-01 14:20:13 +00:00
|
|
|
tags:
|
2019-04-09 11:01:45 +00:00
|
|
|
- osx
|
2018-08-01 14:20:13 +00:00
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
script:
|
2019-04-09 11:01:45 +00:00
|
|
|
- aws s3 cp gsplus-win32-sdl.zip s3://$AWS_BUCKET/$CI_TAG/$CI_VERSION/$CI_PIPELINE_ID/win-sdl/$CI_BUILD_ID/ --acl public-read
|
2018-08-01 14:20:13 +00:00
|
|
|
|
|
|
|
update-website-universal:
|
|
|
|
tags:
|
|
|
|
- osx
|
|
|
|
stage: updatewebsite
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
script:
|
|
|
|
- aws s3 ls gsplus-artifacts/ --recursive > s3artifacts.txt
|
|
|
|
- php assets/updatewebsite.php s3artifacts.txt public > index.html
|
|
|
|
- php assets/updatewebsite.php s3artifacts.txt auto > index_auto.html
|
|
|
|
- aws s3 cp index.html s3://$AWS_BUCKET/ --acl public-read
|