forked from toolshed/abra
		
	Adventurous xgettext-go automation
This commit is contained in:
		
							
								
								
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								.drone.yml
									
									
									
									
									
								
							| @ -19,6 +19,25 @@ steps: | |||||||
|     depends_on: |     depends_on: | ||||||
|       - make check |       - make check | ||||||
|  |  | ||||||
|  |   - name: xgettext-go | ||||||
|  |     image: git.coopcloud.tech/toolshed/drone-xgettext-go:latest | ||||||
|  |     settings: | ||||||
|  |       keyword: i18n.G | ||||||
|  |       out: pkg/i18n/locales/abra.pot | ||||||
|  |     depends_on: | ||||||
|  |       - make test | ||||||
|  |  | ||||||
|  |   - name: xgettext-go status | ||||||
|  |     image: alpine:3.22 | ||||||
|  |     commands: | ||||||
|  |       - apk add patchutils git make | ||||||
|  |       - cd /drone/src | ||||||
|  |       - sed -i "s/charset=CHARSET/charset=UTF-8/g" pkg/i18n/locales/abra.pot | ||||||
|  |       - git diff pkg/i18n/locales/abra.pot | grepdiff --output-matching=hunk POT-Creation-Date | git apply --reverse | ||||||
|  |       - git diff-index --quiet --cached HEAD -- | ||||||
|  |     depends_on: | ||||||
|  |       - xgettext-go | ||||||
|  |  | ||||||
|   - name: fetch |   - name: fetch | ||||||
|     image: docker:git |     image: docker:git | ||||||
|     commands: |     commands: | ||||||
| @ -26,6 +45,7 @@ steps: | |||||||
|     depends_on: |     depends_on: | ||||||
|       - make check |       - make check | ||||||
|       - make test |       - make test | ||||||
|  |       - xgettext-go status | ||||||
|     when: |     when: | ||||||
|       event: tag |       event: tag | ||||||
|  |  | ||||||
| @ -60,6 +80,7 @@ steps: | |||||||
|     depends_on: |     depends_on: | ||||||
|       - make check |       - make check | ||||||
|       - make test |       - make test | ||||||
|  |       - xgettext-go status | ||||||
|  |  | ||||||
|   - name: on-demand integration test |   - name: on-demand integration test | ||||||
|     image: appleboy/drone-ssh |     image: appleboy/drone-ssh | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user