Commit 20d81057 authored by gggg's avatar gggg

add gitlab ci

parent 11cddfa4
Pipeline #34781 passed with stage
in 39 seconds
stages:
- check
variables:
GIT_DEPTH: "1"
redtext:
stage: check
dependencies: []
tags:
- linux
image: git-registry.mycard.moe/nanahira/srvpro:lite
variables:
DATABASE_FILE: expansions/7cgl.cdb
script:
- apt update && apt -y install sqlite3
- mv /ygopro-server/ygopro .
- cd ygopro
- rm -rf expansions
- ln -s ../expansions .
- sqlite3 $DATABASE_FILE "select id from datas where type != 0x11 and (type & 0x4000) = 0;" | xargs -I {} ./ygopro {} 2>&1 | tee ../redtext.txt
- cd ..
# if there are any lines in redtext.txt fail the job
- exit $(wc -l < redtext.txt)
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment