From 55e1024c52d48098f460dfe36426df13dc54a918 Mon Sep 17 00:00:00 2001 From: Valerii Koval Date: Mon, 25 May 2020 11:55:29 +0300 Subject: [PATCH] Switch to Github Actions as the main CI platform --- .github/workflows/examples.yml | 46 ++++++++++++++++++++++++++++++++++ .travis.yml | 39 ---------------------------- README.md | 4 +-- appveyor.yml | 41 ------------------------------ 4 files changed, 48 insertions(+), 82 deletions(-) create mode 100644 .github/workflows/examples.yml delete mode 100644 .travis.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 0000000..a21c872 --- /dev/null +++ b/.github/workflows/examples.yml @@ -0,0 +1,46 @@ +name: Examples + +on: [push] + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-16.04, windows-latest, macos-latest] + python-version: [2.7, 3.7] + example: + - "examples/arduino-blink" + - "examples/arduino-briki-internal-libs" + - "examples/arduino-wifiscan" + - "examples/espidf-arduino-blink" + - "examples/espidf-arduino-wifiscan" + - "examples/espidf-aws-iot" + - "examples/espidf-ble-eddystone" + - "examples/espidf-coap-server" + - "examples/espidf-exceptions" + - "examples/espidf-hello-world" + - "examples/espidf-http-request" + - "examples/espidf-peripherals-uart" + - "examples/espidf-storage-sdcard" + - "examples/espidf-ulp-adc" + - "examples/espidf-ulp-pulse" + - "examples/pumbaa-blink" + - "examples/simba-blink" + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + submodules: "recursive" + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -U https://github.com/platformio/platformio/archive/develop.zip + platformio platform install file://. + - name: Build examples + run: | + platformio run -d ${{ matrix.example }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5524d9c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: python -python: - - "2.7" - - "3.6" - -env: - - PLATFORMIO_PROJECT_DIR=examples/arduino-blink - - PLATFORMIO_PROJECT_DIR=examples/arduino-briki-internal-libs - - PLATFORMIO_PROJECT_DIR=examples/arduino-wifiscan - - PLATFORMIO_PROJECT_DIR=examples/espidf-arduino-blink - - PLATFORMIO_PROJECT_DIR=examples/espidf-arduino-wifiscan - - PLATFORMIO_PROJECT_DIR=examples/espidf-aws-iot - - PLATFORMIO_PROJECT_DIR=examples/espidf-ble-eddystone - - PLATFORMIO_PROJECT_DIR=examples/espidf-coap-server - - PLATFORMIO_PROJECT_DIR=examples/espidf-exceptions - - PLATFORMIO_PROJECT_DIR=examples/espidf-hello-world - - PLATFORMIO_PROJECT_DIR=examples/espidf-http-request - - PLATFORMIO_PROJECT_DIR=examples/espidf-peripherals-uart - - PLATFORMIO_PROJECT_DIR=examples/espidf-storage-sdcard - - PLATFORMIO_PROJECT_DIR=examples/espidf-ulp-adc - - PLATFORMIO_PROJECT_DIR=examples/espidf-ulp-pulse - - PLATFORMIO_PROJECT_DIR=examples/pumbaa-blink - - PLATFORMIO_PROJECT_DIR=examples/simba-blink - -install: - - pip install -U https://github.com/platformio/platformio/archive/develop.zip - - platformio platform install file://. - -script: - - platformio run -d $PLATFORMIO_PROJECT_DIR - -notifications: - email: false - - slack: - rooms: - secure: EkXAtWoUQtgtFeiOobnNZmaUgPw7evpo60Tam5jQiKbVK02bCbBODELTSFsGfIj05oAzNm4s1xBTRD3x9bsvPqvfThHwIHZ2M2BlrT06iINsfFXoXM5yCuBAIi8FF61UKmiZn+Pm+IK6OeUFmzXoP5BcpS2LRB0eSoCj0nsF5cj/H+oA6BnCn/5AXhbSQSiHxOPfq/0khQb5dalmf3B9NHq08MEiOLJR5J9zPglKMfE2HR8PS98irN0x1t9+aReMfUJSZrxfqwvWKz/Sb38/2H37A4GOXpsnRDagZXkfw/MSckSxRFtW8p/0LUBQqeaxdC5Z9qIuyDCAeHPm8d0AIArR7Ylz6BjlNVJVdCTAZaNTp7PUV4n1cN7gZPq8NhWnuGG3wdWiYlJEyHmmRjr9adDYTshCl3gf2GOjB5YJIjoNrixkoJwHM2gJLvwuOw7mgo0hLbqW84XSgV6KeSU12AYk9d2nz3AhWVsb4DiKrN+EqnhBVnCygAxYGlNxfZOPG0FIYai2DUsl6PXd3OBmxeNEWG+x7BivG+maaQEyC4SeFaNFIBR1L4F+C0fHW1VxiCvJCb6vB7fOk7fU5UDhpYnrRmSuyAVYR86aZ+3VnZjbjpGac6hfN7Qxg5WeC5Yd6eR2lrNag9lG5zASylZ1nsdlOZloPs8ilGe43mDpAkg= - on_failure: always - on_success: change diff --git a/README.md b/README.md index 26d28d9..ffcbdd3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Espressif 32: development platform for [PlatformIO](http://platformio.org) -[![Build Status](https://travis-ci.org/platformio/platform-espressif32.svg?branch=develop)](https://travis-ci.org/platformio/platform-espressif32) -[![Build status](https://ci.appveyor.com/api/projects/status/nl087sumhneumse3/branch/develop?svg=true)](https://ci.appveyor.com/project/ivankravets/platform-espressif32/branch/develop) + +![alt text](https://github.com/platformio/platform-espressif32/workflows/Examples/badge.svg "Espressif 32 development platform") Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 5bb5301..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,41 +0,0 @@ -build: off -environment: - - matrix: - - PLATFORMIO_PROJECT_DIR: "examples/arduino-blink" - - PLATFORMIO_PROJECT_DIR: "examples/arduino-briki-internal-libs" - - PLATFORMIO_PROJECT_DIR: "examples/arduino-wifiscan" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-arduino-blink" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-arduino-wifiscan" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-aws-iot" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-ble-eddystone" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-coap-server" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-exceptions" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-hello-world" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-http-request" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-peripherals-uart" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-storage-sdcard" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-ulp-adc" - - PLATFORMIO_PROJECT_DIR: "examples/espidf-ulp-pulse" - - PLATFORMIO_PROJECT_DIR: "examples/pumbaa-blink" - - PLATFORMIO_PROJECT_DIR: "examples/simba-blink" - -platform: - - x64 - -install: -- cmd: git submodule update --init --recursive -- cmd: SET PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH% -- cmd: pip3 install -U https://github.com/platformio/platformio/archive/develop.zip -- cmd: platformio platform install file://. - -test_script: -- cmd: platformio run -d %PLATFORMIO_PROJECT_DIR% - -notifications: - - provider: Slack - incoming_webhook: - secure: E9H0SU0Ju7WLDvgxsV8cs3J62T3nTTX7QkEjsczN0Sto/c9hWkVfhc5gGWUkxhlD975cokHByKGJIdwYwCewqOI+7BrcT8U+nlga4Uau7J8= - on_build_success: false - on_build_failure: true - on_build_status_changed: true