-
Notifications
You must be signed in to change notification settings - Fork 179
Update CircleCI to run parallel Python jobs #668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b5ff448
3a4d2c3
cf4676d
ed7e207
ee4fce9
9f2c53b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
version: 2 | ||
jobs: | ||
py2: | ||
machine: true | ||
steps: | ||
- run: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get -y install gcc-arm-none-eabi=4.9.3.2015q3-1trusty1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we update this to GCC 6.x? Pretty sure Mbed OS doesn't recommend using 4.9.x anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Woah. You're right, but I'd prefer to change only what's needed for the topic at hand. Definitely going to need to submit another PR to get that updated. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updating GCC 6.x would only work for newer Mbed OS, but older cases will fail (like Morpheus). And the Morpheus routine is used for comprehensive multi-level dependencies handling, including removal of libraries etc. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That make sense, but we should be testing with the recommended toolchain for each Mbed OS release. So if that means installing two different versions of GCC then we may need to do that. |
||
|
||
- run: python --version | ||
- run: pip --version | ||
- run: pip install pytest future | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "mbed Test" | ||
- run: echo -e "[ui]\nusername = mbed Test <[email protected]>\n" > ~/.hgrc | ||
- checkout | ||
- run: pip install -e ./ | ||
|
||
- run: mbed --version | ||
- run: py.test test | ||
- run: mbed toolchain -G GCC_ARM | ||
- run: mbed target -G K64F | ||
- run: mbed config -G protocol ssh | ||
- run: mkdir .tests | ||
- run: cd .tests && mbed new new-test | ||
- run: cd .tests/new-test && mbed ls | ||
- run: cd .tests/new-test && mbed releases -r | ||
- run: cd .tests/new-test && mbed compile --source=. --source=mbed-os/TESTS/integration/basic -j 0 | ||
- run: cd .tests/new-test && mbed test --compile -n mbed-os-tests-integration-basic -j 0 | ||
- run: cd .tests && mbed import https://developer.mbed.org/teams/Morpheus/code/mbed-Client-Morpheus-hg hg-test | ||
- run: cd .tests/hg-test && mbed ls | ||
- run: cd .tests/hg-test && mbed releases -r | ||
- run: cd .tests/hg-test && mbed update b02527cafcde8612ff051fea57e9975aca598807 --clean | ||
- run: cd .tests/hg-test && mbed update --clean | ||
- run: cd .tests/hg-test && mbed compile -j 0 | ||
- run: cd .tests && mbed import https://developer.mbed.org/users/samux/code/USBSerial_HelloWorld bld-test | ||
- run: cd .tests/bld-test && mbed ls | ||
- run: cd .tests/bld-test && mbed releases -r | ||
- run: cd .tests/bld-test/mbed && mbed update 85 --clean | ||
- run: cd .tests/bld-test && mbed update --clean | ||
- run: cd .tests/bld-test && mbed compile -m LPC1768 -j 0 | ||
- run: cd .tests && mbed new supported-tests | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.6.0" | ||
mbed update --clean "mbed-os-5.6.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.5.0" | ||
mbed update --clean "mbed-os-5.5.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.4.0" | ||
mbed update --clean "mbed-os-5.4.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.3.0" | ||
mbed update --clean "mbed-os-5.3.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.2.0" | ||
mbed update --clean "mbed-os-5.2.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
- run: |- | ||
cd .tests/supported-tests | ||
echo "Testing mbed-os-5.1.0" | ||
mbed update --clean "mbed-os-5.1.0" | ||
mbed compile -S | ||
mbed toolchain -S | ||
mbed target -S | ||
mbed export -S | ||
|
||
py3: | ||
machine: true | ||
steps: | ||
- run: sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded | ||
- run: sudo apt-get -y update | ||
- run: sudo apt-get -y install gcc-arm-none-eabi=4.9.3.2015q3-1trusty1 | ||
- run: pyenv install 3.6.0 | ||
- run: pyenv global 3.6.0 | ||
|
||
- run: python --version | ||
- run: pip --version | ||
- run: pip install pytest future | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "mbed Test" | ||
- run: echo -e "[ui]\nusername = mbed Test <[email protected]>\n" > ~/.hgrc | ||
- checkout | ||
- run: pip install -e ./ | ||
|
||
- run: mbed --version | ||
- run: py.test test | ||
- run: mbed toolchain -G GCC_ARM | ||
- run: mbed target -G K64F | ||
- run: mbed config -G protocol ssh | ||
|
||
- run: mkdir .tests | ||
- run: cd .tests && mbed new new-test | ||
- run: |- | ||
cd .tests/new-test/mbed-os | ||
git checkout master | ||
- run: cd .tests/new-test && mbed ls | ||
- run: cd .tests/new-test && mbed releases -r | ||
- run: cd .tests/new-test && mbed compile --source=. --source=mbed-os/TESTS/integration/basic -j 0 | ||
- run: cd .tests/new-test && mbed test --compile -n mbed-os-tests-integration-basic -j 0 | ||
|
||
- run: cd .tests && mbed import https://developer.mbed.org/teams/Morpheus/code/mbed-Client-Morpheus-hg hg-test | ||
- run: cd .tests/hg-test && mbed ls | ||
- run: cd .tests/hg-test && mbed releases -r | ||
- run: cd .tests/hg-test && mbed update b02527cafcde8612ff051fea57e9975aca598807 --clean | ||
- run: cd .tests/hg-test && mbed update --clean | ||
- run: cd .tests/hg-test && mbed compile -j 0 | ||
|
||
- run: cd .tests && mbed import https://developer.mbed.org/users/samux/code/USBSerial_HelloWorld bld-test | ||
- run: cd .tests/bld-test && mbed ls | ||
- run: cd .tests/bld-test && mbed releases -r | ||
- run: cd .tests/bld-test/mbed && mbed update 85 --clean | ||
- run: cd .tests/bld-test && mbed update --clean | ||
- run: cd .tests/bld-test && mbed compile -m LPC1768 -j 0 | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- py2 | ||
#- py3 |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please update the
circle_tests.py
script which allows to run all commands from the circle.yml file and emulate circle CI test run?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now works across both versions!