Questions tagged [version-control]

Version control refers to the management of changes made over time to a code base. Use this tag for questions about managing software and libraries.

5 questions
92
votes
7 answers

How to organize my Arduino projects' structure for easy source control?

It's been a long time I've been looking for a good answer to this question. Typically, any Arduino project but the simplest one will include: The main source code file MyProject.ino Libraries specific to the project (MyProjectLibrary1.h,…
jfpoilpret
  • 9,162
  • 7
  • 38
  • 54
18
votes
6 answers

How can Arduino source code be tested automatically (continuous integration)?

I'd like manage my Arduino source code (projects and libraries) under source control with continuous testing. How can I automatically compile the code with continuous integration tools, to make sure each version compiles cleanly? In the best case…
Jakob
  • 283
  • 2
  • 7
13
votes
3 answers

Hiding WLAN password when pushing to GitHub

I have started to use GitHub to store Arduino code. However some of my code uses the SSID and password for my WLAN which I don’t want published. A common way of handling this in non-embedded programming is to use a configuration file, but that…
Andrew Doble
  • 143
  • 1
  • 5
4
votes
7 answers

Include Git tag (or SVN revision) in Arduino sketch?

Is there any way to get the current Git tag/commit identifier into an Arduino sketch binary? For normal desktop program development, you can pull some tricks with the Makefile (as pointed out in this StackExchange answer). However, there is no…
DAVe3283
  • 43
  • 1
  • 4
1
vote
1 answer

Firmware backup and restore

I need to have the firmware stored somewhere on the board in order to get back to it after flashing a new firmware. Is there a way to store a backup of the firmware somewhere, and use a button to erase a newer firmware and get back to the old one,…