2016-08-22 10:19:08 +00:00
|
|
|
stages:
|
|
|
|
- build
|
2016-08-23 04:54:09 +00:00
|
|
|
- test
|
2016-08-22 10:19:08 +00:00
|
|
|
- deploy
|
|
|
|
|
2016-08-22 07:02:22 +00:00
|
|
|
build_template_app:
|
2016-08-22 10:19:08 +00:00
|
|
|
stage: build
|
2016-08-22 07:02:22 +00:00
|
|
|
image: espressif/esp32-ci-env
|
|
|
|
|
|
|
|
variables:
|
|
|
|
SDK_PATH: "$CI_PROJECT_DIR"
|
|
|
|
IDF_PATH: "$CI_PROJECT_DIR"
|
2016-08-22 10:19:08 +00:00
|
|
|
GIT_STRATEGY: clone
|
2016-08-22 07:02:22 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- git clone https://github.com/espressif/esp-idf-template.git
|
|
|
|
- cd esp-idf-template
|
2016-08-23 08:19:49 +00:00
|
|
|
- make defconfig
|
2016-08-22 07:02:22 +00:00
|
|
|
- make all
|
2016-08-22 10:19:08 +00:00
|
|
|
|
2016-08-23 04:54:09 +00:00
|
|
|
test_nvs_on_host:
|
|
|
|
stage: test
|
|
|
|
image: espressif/esp32-ci-env
|
|
|
|
script:
|
|
|
|
- cd components/nvs_flash/test
|
|
|
|
- make test
|
|
|
|
|
2016-08-24 04:16:26 +00:00
|
|
|
test_build_system:
|
|
|
|
stage: test
|
|
|
|
image: espressif/esp32-ci-env
|
2016-08-24 05:31:33 +00:00
|
|
|
variables:
|
|
|
|
IDF_PATH: "$CI_PROJECT_DIR"
|
2016-08-24 04:16:26 +00:00
|
|
|
script:
|
2016-08-25 03:55:47 +00:00
|
|
|
- ./make/test_build_system.sh
|
2016-08-24 04:16:26 +00:00
|
|
|
|
2016-08-22 10:19:08 +00:00
|
|
|
push_master_to_github:
|
|
|
|
stage: deploy
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
when: on_success
|
|
|
|
image: espressif/esp32-ci-env
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: clone
|
|
|
|
script:
|
|
|
|
- mkdir -p ~/.ssh
|
|
|
|
- chmod 700 ~/.ssh
|
|
|
|
- echo -n $GH_PUSH_KEY >> ~/.ssh/id_rsa_base64
|
|
|
|
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
|
|
|
|
- chmod 600 ~/.ssh/id_rsa
|
|
|
|
- echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
|
|
|
|
- git remote add github git@github.com:espressif/esp-idf.git
|
|
|
|
- git push github HEAD:master
|