Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nightly Builds: Why should I do it? [closed]

Why should I do Nightly Builds?

like image 823
Daniel Silveira Avatar asked Oct 15 '08 12:10

Daniel Silveira


People also ask

Are nightly builds a good idea?

You should do nightly builds to ensure that your codebase stays healthy. A side effect of doing nightly builds is that it forces the team to create and maintain a fully automated build script. This helps to ensure that your build process is documented and repeatable.

What is the purpose of a nightly build?

A daily build or nightly build is the practice of completing a software build of the latest version of a program, on a daily basis. This is so it can first be compiled to ensure that all required dependencies are present, and possibly tested to show no bugs have been introduced.

What is nightly build release?

A nightly build is a neutral build that takes place automatically. These typically take place when no one is likely to be working in the office so that there are no changes to the source code during the build.

What is the difference between stable and nightly?

The stable releases are made every 6 weeks (with occasional point releases). Beta releases are the version that will appear in the next stable release. Nightly releases are made every night.


2 Answers

You should do nightly builds to ensure that your codebase stays healthy.

A side effect of doing nightly builds is that it forces the team to create and maintain a fully automated build script. This helps to ensure that your build process is documented and repeatable.

Automated builds are good at finding the following problems:

  • Somebody checked in something that breaks stuff.
  • Somebody forgot to check in a necessary file or change.
  • Your build scripts no longer work.
  • Your build machine is broken.

Doing this nightly ensures that you catch such problems within 24 hours of when they occur. That is preferable to finding all the problems 24 hours before you are supposed to deliver the software.

You should also, of course, have automated unit tests that are run for each nightly build.

like image 76
2 revs Avatar answered Sep 23 '22 04:09

2 revs


I've personally found continuous integration to be better than nightly builds:
http://en.wikipedia.org/wiki/Continuous_integration

I even use it on one man projects, it's amazing how fast you can expose issues and take care of them right there.

like image 27
Chris Roland Avatar answered Sep 23 '22 04:09

Chris Roland