This repository was archived by the owner on Jun 22, 2018. It is now read-only.

stoe/arduino-sample

Repository files navigation

Build Status

Arduino Due Sample CI/CD chain

🚧 Work in Progress

Set your BOARD_ID (e.g. due) as variable in Travis CI environment variable via

$ travis env set PIO_BOARD <BOARD_ID> -r <_USERNAME>/arduino-sample

Set your PIO_AGENT as variable in Travis CI environment variable via

$ travis env set PIO_AGENT <PIO_AGENT> -r <_USERNAME>/arduino-sample

ā„¹ļø http://docs.platformio.org/en/latest/userguide/remote/cmd_agent.html#platformio-remote-agent-start ā¬ see also 6. Monitor (optional)

To be able to use the PIO Remoteā„¢ Agent from script/cibuild and script/deploy, set your PIO_USERNAME and PIO_PASSWORD as variable in Travis CI environment variable via

$ travis env set PIO_USERNAME <PIO_USERNAME> -r <_USERNAME>/arduino-sample
$ travis env set PIO_PASSWORD <PIO_PASSWORD> -r <_USERNAME>/arduino-sample

ā„¹ļø http://docs.platformio.org/en/latest/userguide/account/cmd_login.html

Create a token with user and repo scopes to be used in script/deploy and set it as variable in Travis CI via

travis env set GH_TOKEN <_TOKEN> -r <_USERNAME>/arduino-sample

Now to allow Travis CI to run tests and deployments on the locally connected (USB programming port) board, we have to start the agent locally to accept connections

$ platformio remote agent start --share <YOUT_PIO_LOGIN>

ā„¹ļø http://docs.platformio.org/en/latest/userguide/remote/cmd_agent.html#platformio-remote-agent-start

If you don't have an account, you can create one with platformio account register.

We can run a serial port monitor locally, displaying information about what's going on.

<PIO_AGENT> has to be the same as in 2. PIO_AGENT to work correctly in the here described scenario

$ platformio remote -a <PIO_AGENT> device monitor

ā„¹ļø http://docs.platformio.org/en/latest/userguide/remote/cmd_device.html#platformio-remote-device-monitor

Push code to your PR, and see CI and CD in effect.

MIT © Stefan Stölzle

About

Arduino Due Sample CI/CD chain

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published