Skip to content

Commit eab9ee9

Browse files
committed
2 parents ee0bfc9 + 0856018 commit eab9ee9

14 files changed

Lines changed: 1524 additions & 31 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: STM32 Core Continuous Integration
2+
on:
3+
push:
4+
paths-ignore:
5+
- '*.json'
6+
- '**.md'
7+
- keywords.txt
8+
- CI/**
9+
- tools/**
10+
pull_request:
11+
paths-ignore:
12+
- '*.json'
13+
- '**.md'
14+
- keywords.txt
15+
- CI/**
16+
- tools/**
17+
jobs:
18+
astyle_check:
19+
runs-on: ubuntu-latest
20+
name: AStyle check
21+
steps:
22+
# First of all, clone the repo using the checkout action.
23+
- name: Checkout
24+
uses: actions/checkout@master
25+
26+
- name: Astyle check
27+
id: Astyle
28+
uses: stm32duino/actions/astyle-check@master
29+
30+
# Use the output from the `Astyle` step
31+
- name: Astyle Errors
32+
if: failure()
33+
run: |
34+
cat ${{ steps.Astyle.outputs.astyle-result }}
35+
exit 1
36+
core_build:
37+
runs-on: ubuntu-latest
38+
name: Core compilation
39+
steps:
40+
# First of all, clone the repo using the checkout action.
41+
- name: Checkout
42+
uses: actions/checkout@master
43+
44+
- name: Compilation
45+
id: Compile
46+
uses: stm32duino/actions/compile-examples@master
47+
48+
# Use the output from the `Compile` step
49+
- name: Compilation Errors
50+
if: failure()
51+
run: |
52+
cat ${{ steps.Compile.outputs.compile-result }}
53+
exit 1

.travis.yml renamed to .travis.yml.old

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,29 @@ matrix:
3434
else
3535
echo "Coding style check OK";
3636
fi
37+
38+
#
39+
# PlatformIO test
40+
#
41+
- env:
42+
- NAME=PlatformIO
43+
- CMSIS_VERSION=5.5.1
44+
install:
45+
# Install PlatformIO
46+
- pip install -U platformio
47+
# Install the development version of ststm32 platform
48+
- platformio platform install https://github.com/platformio/platform-ststm32.git
49+
# Prepare framework for CI
50+
- python -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoststm32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"
51+
- sudo ln -sf $TRAVIS_BUILD_DIR ~/.platformio/packages/framework-arduinoststm32
52+
# Download and unpack CMSIS package
53+
- wget https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/CMSIS-$CMSIS_VERSION.tar.bz2
54+
- tar -xvjf CMSIS-$CMSIS_VERSION.tar.bz2
55+
before_script:
56+
- cd $TRAVIS_BUILD_DIR/CI/build/
57+
script:
58+
- python platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
59+
3760
#
3861
# Build test
3962
#

0 commit comments

Comments
 (0)