2016-07-23 06:43:05 +00:00
|
|
|
variables:
|
2016-08-21 11:45:36 +00:00
|
|
|
SW_MAJOR: "0"
|
2016-09-21 14:46:27 +00:00
|
|
|
SW_MINOR: "2"
|
2016-08-21 11:45:36 +00:00
|
|
|
APP: "engine_control"
|
2016-07-23 06:43:05 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "echo $CI_BUILD_ID"
|
|
|
|
- "echo $CI_BUILD_REF_NAME"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
2016-08-21 11:45:36 +00:00
|
|
|
- deploy
|
2016-07-23 06:43:05 +00:00
|
|
|
|
|
|
|
build_job:
|
|
|
|
script:
|
2016-08-21 11:16:45 +00:00
|
|
|
- "make all BOARD=stm32f4-discovery"
|
2016-07-23 06:43:05 +00:00
|
|
|
stage: build
|
|
|
|
except:
|
|
|
|
- /^release/.*$/
|
|
|
|
|
2016-08-21 11:45:36 +00:00
|
|
|
deploy_job:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- "source/scripts/release_number.py"
|
|
|
|
- "make deploy BOARD=stm32f4-discovery"
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- ./*.xz
|
|
|
|
only:
|
|
|
|
- tags
|
2016-07-23 06:43:05 +00:00
|
|
|
|