I am trying to use Travis CI to test my firmware, so that I can have the neat little “build passing” badge on my repository.
I know that the Travis CI virtual machine will not be able to run the Particle tool chain, (or will it?), so I am trying to get Travis CI to compile using the Particle API. I can get Travis to download particle-cli, but it can not run the compile command, because particle-cli needs me to log into the Particle cloud.
Here is my current .travis.yml
install: - npm install -g particle-cli script: - particle compile photon firmware/
I checked the Docs, and I was not able to find a command for the REST API to compile and download binary from the cloud, not compile and flash to a device.
Is there a way to compile and download with the REST API, or is there a way to compile in particle-cli without logging in?
I do not want to have to put my account credentials into .travis.yml (that would be dumb), but I want to be able to compile within Travis CI.
I am fine with creating an access token for Travis to use, and I hope there is a solution for my problem.