일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- Paper
- format
- DB
- GitLab
- CUDA
- Python
- AI
- enV
- Container
- Mac
- list
- Laravel
- file
- Windows
- numpy
- Converting
- Package
- docker
- Linux
- pandas
- TORCH
- Database
- pytorch
- Flask
- LLM
- evaluation
- judge
- git
- KAKAO
- PostgreSQL
Archives
- Today
- Total
Daily Develope
[GitLab] YAML 파일 작성 예시 (Maven, JUnit 수행) 본문
---
image : maven:latest
# 변수 설정
variables:
TARGET_DIR : "complete"
TESTRESULT_DIR : "target"
# 실행 될 스테이지 설정
stages :
- build
- test
- deploy
# 매크로 설정
.maven_configure_template : &mvn_conf
stage : build
artifacts:
paths:
- $TARGET_DIR
# 매크로 로딩 및 스크립트 수행
maven_compile :
<< : *mvn_conf
script :
- mvn -f $TARGET_DIR compile
maven_verify :
<< : *mvn_conf
script :
- mvn -f $TARGET_DIR verify
maven_test01 :
stage : test
script :
- ls $TARGET_DIR/$TESTRESULT_DIR
dependencies : # 같은 스테이지의 아티팩트를 구분하기 위해 job의 이름을 명시
- maven_compile
maven_test02 :
stage : test
script :
- ls $TARGET_DIR/$TESTRESULT_DIR
dependencies :
- maven_verify
'Git' 카테고리의 다른 글
[Git] add 응용/명령어 정리 (0) | 2022.06.29 |
---|---|
[Git] 오류 정리 (0) | 2022.01.07 |
[Git] .gitignore 작성 (0) | 2022.01.07 |
[Git] 기본 명령어 (init / Add / commit) (0) | 2022.01.07 |
[Git] Branch (조회 / 생성 / 삭제 / 변경 / 합병) (0) | 2022.01.07 |
Comments