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:
|
2016-04-22 12:24:15 +00:00
|
|
|
- sudo apt-get update -qq && sudo apt-get install -y -qq g++ libpcap0.8-dev libx11-dev libxext-dev
|
2016-02-06 15:19:32 +00:00
|
|
|
- cd src
|
|
|
|
- ln -s vars_x86linux_x11 vars
|
|
|
|
- make clean ; make
|
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:
|
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-03-03 21:25:24 +00:00
|
|
|
- cd src
|
|
|
|
- ln -s vars_x86linux_sdl2 vars
|
|
|
|
- make clean ; make
|
2018-08-01 14:20:13 +00:00
|
|
|
- mv ../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
|
|
|
|
- mv gsplus-ubuntu-sdl.bin $PACKAGE_DIR/gsplus
|
|
|
|
- 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
|
|
|
|
deploy-ubuntu:
|
|
|
|
tags:
|
|
|
|
- ubuntu
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
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-07-17 20:47:44 +00:00
|
|
|
|
|
|
|
|
2016-03-03 21:25:24 +00:00
|
|
|
|
2016-02-06 15:19:32 +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:
|
|
|
|
- cd src
|
|
|
|
- ln -s vars_osx_sdl2 vars
|
|
|
|
- make clean ; make
|
2017-01-24 14:29:39 +00:00
|
|
|
- mv ../gsplus ../gsplus-osx
|
2016-10-14 18:27:53 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2017-01-24 03:26:56 +00:00
|
|
|
- gsplus-osx
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 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
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: WIN32 WIN API UNDER CYGWIN
|
2016-04-24 14:50:51 +00:00
|
|
|
build-win32:
|
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: build
|
|
|
|
script:
|
2017-10-16 18:26:55 +00:00
|
|
|
- bash -c "cd src; ln -s vars_win32 vars; make clean ; make"
|
2016-10-14 20:18:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2016-10-19 05:01:19 +00:00
|
|
|
- gsplus32.exe
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2016-10-14 20:18:07 +00:00
|
|
|
|
|
|
|
package-win32:
|
2016-10-19 05:01:19 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: package
|
2016-10-28 04:11:14 +00:00
|
|
|
script:
|
|
|
|
- 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 13:59:06 +00:00
|
|
|
- cp /bin/cyggcc_s-1.dll .
|
|
|
|
- cp /bin/cygstdc++-6.dll .
|
|
|
|
- cp /bin/cygwin1.dll .
|
2016-11-08 04:53:48 +00:00
|
|
|
- cp /bin/cygfreetype-6.dll .
|
2017-01-22 00:52:08 +00:00
|
|
|
|
2016-10-19 05:01:19 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gsplus32.exe
|
2016-10-28 04:11:14 +00:00
|
|
|
- config.txt
|
|
|
|
- doc/gsplusmanual.pdf
|
2016-11-03 03:40:06 +00:00
|
|
|
- doc/README.txt
|
2018-07-17 20:47:44 +00:00
|
|
|
- doc/LICENSE.txt
|
2016-10-28 13:59:06 +00:00
|
|
|
- cyggcc_s-1.dll
|
|
|
|
- cygstdc++-6.dll
|
|
|
|
- cygwin1.dll
|
2017-01-22 00:52:08 +00:00
|
|
|
- cygfreetype-6.dll
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
|
|
|
only:
|
|
|
|
- master
|
2016-10-19 05:01:19 +00:00
|
|
|
|
2018-07-17 20:47:44 +00:00
|
|
|
|
2018-08-01 14:20:13 +00:00
|
|
|
# TARGET SYSTEM: WIN32 SDL2 UNDER CYGWIN W MINGW64 SDL2 LIBS
|
2018-07-17 20:47:44 +00:00
|
|
|
build-win-sdl2:
|
2016-10-19 05:01:19 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- cd src
|
2018-07-17 20:47:44 +00:00
|
|
|
- ln -s vars_win32_sdl2 vars
|
2016-10-19 05:01:19 +00:00
|
|
|
- make clean
|
|
|
|
- make
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gsplus.exe
|
2018-08-01 14:20:13 +00:00
|
|
|
expire_in: 10 minutes
|
2018-07-17 20:47:44 +00:00
|
|
|
|
|
|
|
package-win-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
|
|
|
|
PACKAGE_DIR: gsplus-win-sdl
|
2016-10-28 04:11:14 +00:00
|
|
|
script:
|
2018-08-01 14:20:13 +00:00
|
|
|
- mkdir %PACKAGE_DIR%
|
|
|
|
- cp gsplus.exe %PACKAGE_DIR%
|
|
|
|
- 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%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygbz2-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygfreetype-6.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cyggcc_s-1.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygjpeg-8.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygpng16-16.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygjpeg-8.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygstdc++-6.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygwin1.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/cygwin/bin/cygz.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/mingw/i686-w64-mingw32/bin/SDL2.dll %PACKAGE_DIR%
|
|
|
|
- cp /cygdrive/c/mingw/i686-w64-mingw32/bin/SDL2_image.dll %PACKAGE_DIR%
|
|
|
|
- cp gsplus.exe %PACKAGE_DIR%
|
|
|
|
- zip gsplus-win-sdl.zip -r %PACKAGE_DIR%
|
2016-10-14 20:18:07 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-08-01 14:20:13 +00:00
|
|
|
- gsplus-win-sdl.zip
|
|
|
|
expire_in: 10 minutes
|
|
|
|
deploy-win-sdl2:
|
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
stage: deploy
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
script:
|
|
|
|
- aws s3 cp gsplus-win-sdl.zip s3://%AWS_BUCKET%/%CI_TAG%/%CI_VERSION%/%CI_PIPELINE_ID%/win-sdl/%CI_BUILD_ID%/ --acl public-read
|
|
|
|
|
|
|
|
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
|
|
|
|
- aws s3 cp index_auto.html s3://$AWS_BUCKET/ --acl public-read
|