gsplus/.gitlab-ci.yml

303 lines
7.4 KiB
YAML
Raw Normal View History

2016-02-07 16:38:04 +00:00
stages:
- build
- package
- deploy
- updatewebsite
2016-02-07 16:38:04 +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:
- 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
expire_in: 10 minutes
only:
- master
2016-10-28 01:55:22 +00:00
package-ubuntu-x:
tags:
- ubuntu
stage: package
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'
- cp LICENSE.txt doc/
2016-10-28 01:55:22 +00:00
artifacts:
paths:
- gsplusx
- config.txt
- doc/gsplusmanual.pdf
- doc/LICENSE.txt
expire_in: 10 minutes
only:
- master
# TARGET SYSTEM: DEPRECATED, UBUNTU SDL
2016-02-07 18:48:07 +00:00
build-ubuntu-sdl:
tags:
- ubuntu
stage: build
script:
- 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
only:
- master
2016-02-07 18:48:07 +00:00
2016-10-28 01:55:22 +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:
- 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
- mv ../gsplus ../gsplus-ubuntu-sdl.bin
2016-10-28 01:55:22 +00:00
artifacts:
paths:
- gsplus-ubuntu-sdl.bin
expire_in: 10 minutes
2016-10-28 01:55:22 +00:00
package-ubuntu-sdl2:
tags:
- ubuntu
stage: package
variables:
GIT_STRATEGY: fetch
PACKAGE_DIR: gsplus-ubuntu-sdl
script:
- mkdir $PACKAGE_DIR
- mkdir $PACKAGE_DIR/doc
2018-08-22 19:30:02 +00:00
- cp 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:
- gsplus-ubuntu-sdl.tar.bz2
expire_in: 10 minutes
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
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
- cp assets/control $PACKAGE_NAME/DEBIAN
2018-08-22 19:30:02 +00:00
- dpkg-deb --build $PACKAGE_NAME
artifacts:
paths:
2018-08-22 19:30:02 +00:00
- $PACKAGE_NAME.deb
expire_in: 10 minutes
deploy-ubuntu:
tags:
- ubuntu
stage: deploy
variables:
GIT_STRATEGY: none
2018-08-22 19:30:02 +00:00
PACKAGE_NAME: gsplus_$CI_VERSION-0
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
2016-03-03 21:25:24 +00:00
2016-02-06 15:19:32 +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
artifacts:
paths:
- gsplus-osx
expire_in: 10 minutes
2016-02-07 16:40:57 +00:00
package-osx:
tags:
2016-10-14 18:15:40 +00:00
- osx
stage: package
script:
- 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'
- 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
artifacts:
paths:
2016-11-03 02:28:16 +00:00
- GSplus-Install.dmg
expire_in: 10 minutes
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-02-07 16:40:57 +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:
- gsplus32.exe
expire_in: 10 minutes
only:
- master
2018-08-22 15:55:37 +00:00
- /^win.*/
2016-10-14 20:18:07 +00:00
package-win32:
tags:
- windows
stage: package
script:
- cp src/config.txt .
2017-01-23 21:15:59 +00:00
- 'echo "# CI_BUILD_ID: $CI_BUILD_ID" >> config.txt'
- cp LICENSE.txt doc/
- 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 .
variables:
GIT_STRATEGY: fetch
PACKAGE_DIR: gsplus-win32
script:
- mkdir %PACKAGE_DIR%
- cp gsplus32.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 /bin/cyggcc_s-1.dll %PACKAGE_DIR%
- cp /bin/cygstdc++-6.dll %PACKAGE_DIR%
- cp /bin/cygwin1.dll %PACKAGE_DIR%
- cp /bin/cygfreetype-6.dll %PACKAGE_DIR%
- zip gsplus-win32.zip -r %PACKAGE_DIR%
artifacts:
paths:
2018-08-22 16:46:51 +00:00
- gsplus-win32.zip
expire_in: 10 minutes
only:
- master
2018-08-22 15:55:37 +00:00
- /^win.*/
deploy-win32:
tags:
- windows
stage: deploy
variables:
GIT_STRATEGY: none
script:
- aws s3 cp gsplus-win32.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.*/
# TARGET SYSTEM: WIN32 SDL2 UNDER CYGWIN W MINGW64 SDL2 LIBS
build-win-sdl2:
tags:
- windows
stage: build
script:
- cd src
- ln -s vars_win32_sdl2 vars
- make clean
- make
artifacts:
paths:
- gsplus.exe
expire_in: 10 minutes
package-win-sdl2:
2016-10-14 20:18:07 +00:00
tags:
- windows
stage: package
variables:
GIT_STRATEGY: fetch
PACKAGE_DIR: gsplus-win-sdl
script:
- 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%
- zip gsplus-win-sdl.zip -r %PACKAGE_DIR%
2016-10-14 20:18:07 +00:00
artifacts:
paths:
- 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