.... continue iteration...
@@ -18,9 +18,9 @@ build:
number: 0
script:
- pushd {{ pkg_src }}
- #- for /F "delims=" %%i in ('date.exe /t +%Y-%m-%dT%H:%M:%S%:z') DO set BUILT="%%i" # [win]
- - set BUILT="2019-08-14T00:00:00+00:00"
- - export BUILT=$(date -u +%Y-%m-%dT%H:%M:%S%:z) # [unix]
+ #- for /F "delims=" %%i in ('date.exe /t +%Y-%m-%dT%H:%M:%S%z') DO set BUILT="%%i" # [win]
+ - set BUILT="2019-08-14T00:00:00+0000" # [win]
+ - export BUILT=$(date -u +%Y-%m-%dT%H:%M:%S%z) # [unix]
{% set flags = dict(VERSION=version, REVISION="deadbeef", BRANCH=branch, BUILD="%BUILT%" if win else "$BUILT") %}
- go install -v -ldflags "{% for key,value in flags.items() %}-X {{ import_path }}/common.{{ key }}='{{ value }}' {% endfor %}" .
