Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
feat(yml): Modify CI script for support ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
lhespress committed Aug 12, 2019
1 parent a915935 commit df83251
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
stages:
# - build_esp8266
- build_esp8266
- build_esp32
- deploy

Expand All @@ -10,26 +10,26 @@ variables:
IDF_PATH: "$CI_PROJECT_DIR/esp-idf"
IDF_CI_BUILD: "1"

# build_esp8266_demo:
# stage: build_esp8266
# image: $CI_DOCKER_REGISTRY/esp8266-ci-env-new
# tags:
# - build
# script:
# # add gitlab ssh key
# - mkdir -p ~/.ssh
# - chmod 700 ~/.ssh
# - echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
# - base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
# - chmod 600 ~/.ssh/id_rsa
# - echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
# - git --version
# - git submodule update --init --recursive
# - git clone --branch release/v3.1 --depth 1 $GITLAB_SSH_SERVER/sdk/ESP8266_RTOS_SDK.git
# - export IDF_PATH=$CI_PROJECT_DIR/ESP8266_RTOS_SDK
# - cd examples/solutions/smart_light
# - make defconfig
# - make
build_esp8266_demo:
stage: build_esp8266
image: $CI_DOCKER_REGISTRY/esp8266-ci-env-new
tags:
- build
script:
# add gitlab ssh key
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -n $GITLAB_KEY > ~/.ssh/id_rsa_base64
- base64 --decode --ignore-garbage ~/.ssh/id_rsa_base64 > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- echo -e "Host gitlab.espressif.cn\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- git --version
- git submodule update --init --recursive
- git clone --branch release/v3.2 --depth 1 $GITLAB_SSH_SERVER/sdk/ESP8266_RTOS_SDK.git
- export IDF_PATH=$CI_PROJECT_DIR/ESP8266_RTOS_SDK
- cd examples/solutions/smart_light
- make chip=esp8266 defconfig
- make

build_esp32_demo:
stage: build_esp32
Expand Down

0 comments on commit df83251

Please sign in to comment.