ci no derby

This commit is contained in:
Fam Zheng 2025-03-01 14:44:15 +00:00
parent 86c33b8198
commit 52cc9417bb
2 changed files with 18 additions and 10 deletions

View File

@ -8,11 +8,14 @@ cache:
key: one-key-to-rule-them-all
paths:
- emtest/target
- venv
download-models:
stage: download-models
tags:
- emblem-dev
- derby
before_script:
- source scripts/dev-setup
script:
- make download-models
artifacts:
@ -30,10 +33,9 @@ test:
except:
- main
tags:
- emblem-dev
- derby
before_script:
- env
- pip3 install -r requirements.txt
- source scripts/dev-setup
script:
- make opencv -j$(nproc --ignore=2)
- make -C alg qrtool -j$(nproc --ignore=2)
@ -46,7 +48,7 @@ build-alg:
except:
- main
tags:
- emblem-dev
- derby
script:
- make opencv -j$(nproc --ignore=2)
- make build/alg/qrtool -j$(nproc --ignore=2)
@ -60,7 +62,7 @@ build-web:
except:
- main
tags:
- emblem-dev
- derby
before_script:
- (cd web; npm install)
script:
@ -74,7 +76,7 @@ build-docker:
except:
- main
tags:
- emblem-dev
- derby
script:
- make docker-build
- make docker-push
@ -90,7 +92,7 @@ deploy-dev:
except:
- main
tags:
- emblem-dev
- derby
only:
- dev
script:
@ -103,7 +105,7 @@ dev-smoke:
except:
- main
tags:
- emblem-dev
- derby
allow_failure: true
script:
- ./scripts/emcli --env dev activate 0074253255108
@ -113,7 +115,7 @@ dev-smoke:
deploy-prod:
stage: deploy
tags:
- emblem-dev
- derby
only:
- main
script:

6
scripts/dev-setup Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
if ! test -d venv; then
python3 -m venv venv
fi
source venv/bin/activate
pip3 install --upgrade -r requirements.txt