2016-07-23 06:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
variables:
|
2016-07-23 09:58:29 +00:00
|
|
|
# PRODUCT_NAME: "AG"
|
2016-07-23 06:43:05 +00:00
|
|
|
# PRODUCT_VARIANT: "NA"
|
2016-07-23 09:58:29 +00:00
|
|
|
# PRODUCT_VARIANT: "EU"
|
2016-07-23 06:43:05 +00:00
|
|
|
# PRODUCT_VARIANT: "CN"
|
2016-07-23 09:58:29 +00:00
|
|
|
# PROJECT_VERSION: "10"
|
|
|
|
# SW_MAJOR: "1"
|
|
|
|
# SW_MINOR: "3"
|
2016-07-23 06:43:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "echo $CI_BUILD_ID"
|
|
|
|
- "echo $CI_BUILD_REF_NAME"
|
|
|
|
|
|
|
|
stages:
|
2016-07-23 09:58:29 +00:00
|
|
|
- check
|
2016-07-23 06:43:05 +00:00
|
|
|
- build
|
2016-07-26 20:35:44 +00:00
|
|
|
- test
|
2016-07-23 06:43:05 +00:00
|
|
|
# - deploy
|
|
|
|
|
|
|
|
build_job:
|
|
|
|
script:
|
|
|
|
- "cd source"
|
2016-07-23 09:58:29 +00:00
|
|
|
- "make build APP=test BOARD=stm32f4-discovery"
|
2016-07-23 06:43:05 +00:00
|
|
|
stage: build
|
|
|
|
except:
|
|
|
|
- /^release/.*$/
|
|
|
|
|
2016-07-23 09:58:29 +00:00
|
|
|
check_job:
|
|
|
|
script:
|
|
|
|
- "cd source"
|
|
|
|
- "make check APP=test BOARD=stm32f4-discovery"
|
|
|
|
stage: check
|
2016-07-23 06:43:05 +00:00
|
|
|
|
2016-07-26 20:35:44 +00:00
|
|
|
test_job:
|
|
|
|
script:
|
|
|
|
- "cd source"
|
|
|
|
- "make install APP=test BOARD=stm32f4-discovery"
|
|
|
|
stage: test
|
2016-07-23 06:43:05 +00:00
|
|
|
|
|
|
|
#int_release_job:
|
|
|
|
# script:
|
|
|
|
# - "cd top_agricola/core"
|
|
|
|
# - "./generate_ci_makefile.py"
|
|
|
|
# - "make -f Makefile_ci.gen all"
|
|
|
|
# - "cd ci"
|
|
|
|
# - "./deploy_release.py -t rc"
|
|
|
|
# stage: deploy
|
|
|
|
# only:
|
|
|
|
# - /^release/.*$/
|
|
|
|
# except:
|
|
|
|
# - tags
|
|
|
|
|
|
|
|
#ext_release_job:
|
|
|
|
# script:
|
|
|
|
# - "cd top_agricola/core"
|
|
|
|
# - "./generate_ci_makefile.py"
|
|
|
|
# - "make -f Makefile_ci.gen all"
|
|
|
|
# - "cd ci"
|
|
|
|
# - "./deploy_release.py -t r"
|
|
|
|
# stage: deploy
|
|
|
|
# only:
|
|
|
|
# - /^release/174_AG.*$/
|
|
|
|
# except:
|
|
|
|
# - branches
|
|
|
|
|
|
|
|
|