dobrograd-13-06-2022/.gitlab-ci.yml

27 lines
511 B
YAML
Raw Normal View History

2023-11-16 15:01:19 +05:00
image: 'octoteam/gmod-test:latest'
services:
- mariadb:latest
variables:
GIT_SUBMODULE_STRATEGY: recursive
MYSQL_DATABASE: gmod_dbg_dev
MYSQL_ROOT_PASSWORD: octoteam ci/cd
stages:
- test
test:
stage: test
script:
# copy repo into gmod server
- cp -R * /opt/server
# move ci configs
- cd /opt/server
- cp config.ci.ts config.ts
- cp server.ci.cfg garrysmod/cfg/server.cfg
# run octolib scripts
- cd octolib && npm i
- npm run setup
- npm run test server