cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Devel > Automatic Build HOWTO

Setup Your Machine to Autobuild from CVS

[Build Log] [CVS History] [Stats] [Details] [Missing] [ignored warnings]

Get a Fresh Check-out from CVS

First, run these commands:

  $ mkdir someplacenice
  $ cd someplacenice
  $ cvs -d :pserver:anonymous@cool.haxx.se:/cvsroot/curl login
    [enter return when prompted for password ]
  $ cvs -d :pserver:anonymous@cool.haxx.se:/cvsroot/curl checkout curl
  $ ./curl/tests/testcurl.pl

The first time to run testcurl.pl, it'll prompt you for some info. That info is then stored in the file named 'setup' in the current directory and will be used when this script is subsequently run. The format is easily manually edited using a text editor.

You'll now see a full compile, build and test perform. Make sure everything works out fine.

Then, in a cron job do:

 $ cd someplacenice
 $ ./curl/tests/testcurl.pl | mail -s "autobuild" curl-autocompile@haxx.se

Note: It is important that you do include the word 'autobuild' in the subject of the mail, as mails to this receiver without it will be sent to /dev/null with no questions asked.

If mailing the info is not suitable for you, but you have a working curl version installed, you can upload the file with curl self:

 $ ./curl/tests/testcurl.pl | curl -s -F file=@- http://curl.haxx.se/auto/upload.cgi

You can also use this upload form "manually".

Other platforms than Unix

On Unix/Linux testcurl.pl assumes a GNU-like build with configure; on Win32 the MSVC build is default. The testcurl.pl can now take an option '--target=[your_os]' so you can specify to build targets for other platforms. With this option it should now be very easy to add other autobuilds for platforms not able to use GNU-like build systems.

Build from daily tarballs

If you can't checkout or update the sources from CVS easily, another approach to automated testing of the latest sources is made by getting the latest daily tarballs automaticly instead.

This is easily done with the use of the autocurl shell script, written by Ralph Mitchell.

Make more tests run

The number of tests run on some tests are not the maximum amount, but instead numerous ones are "skipped".

This is because some of the tests require specal conditions that are not enabled everywhere. You can improve this situation by using the configure's --enable-debug option (which enables much more thorough memory and netrc debugging) and to make sure that you have stunnel installed (which enables HTTPS tests to run).

Build Table Updates

The tables are rebuilt every 20 minutes if there has been a new build log mailed in since the previous table was built.

We automatically remove build logs older than 10 - 12 days to reduce the amount of data and used disk space.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET