Skip to content

Commit

Permalink
CI: Add MicroPython to Azure
Browse files Browse the repository at this point in the history
Relates to #81.
  • Loading branch information
bskinn committed Sep 10, 2019
1 parent ee7efe2 commit 0fe152c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,28 @@ jobs:
name: 'Downgrade pytest'
cmd: 'pip install "pytest<5"'

- job: micropython
pool:
vmImage: 'Ubuntu-16.04'
steps:
- script: sudo apt-get install -y build-essential libreadline-dev libffi-dev git pkg-config gcc-arm-none-eabi libnewlib-arm-none-eabi
displayName: Install micropython dependencies

- script: git clone --recurse-submodules https://github.com/micropython/micropython.git micropython
displayName: Clone micropython repo

- script: sh -c 'cd micropython/mpy-cross && make'
displayName: Make mpy-cross

- script: sh -c 'cd micropython/ports/unix && make axtls && make'
displayName: Make MicroPython

- script: micropython/ports/unix/micropython -c 'import upip; upip.install("pytest")'
displayName: Install pytest

- script: micropython/ports/unix/micropython -m pytest
displayName: Run tests

- job: flake8
pool:
vmImage: 'Ubuntu-16.04'
Expand Down

0 comments on commit 0fe152c

Please sign in to comment.