William S Fulton
2015-04-04 11:12:26 UTC
I've added CI testing on Windows using Appveyor - http://appveyor.com which
works much like Travis. Like Travis, it integrates with Github and tests pull
requests and runs the tests after commits to the Github repo. Appveyor have
free accounts for open source projects and so I've set one up at
https://ci.appveyor.com/project/swig/swig where the latest builds will be
available.
It all works using the normal autotools on Cygwin but using the Microsoft
Visual C++ compiler for compiling SWIG and running the tests. C#, Java, Python
2 and Python 3 are currently working for both 32 bit and 64 bit Windows.
There is a time limit of 40 minutes for each build and running the entire
test-suite on Windows is much slower than on Linux and so it times out.
Instead I've set it up to run the partialcheck-test-suite for now. Breaking
the test-suite into two might workaround this problem. It currently takes
three and a half hours to run, so I'm not quite sure how it will cope on busy
days.
Using Visual C++ requires the cccl script, which is a wrapper around the
visual C++ compiler to make it accept Unix cc/gcc command line arguments. The
original cccl project at Sourceforge has been inactive for 12 years and so I
found various forks of it and merged them in with my local changes and made it
available under the SWIG organization at https://github.com/swig/cccl. I'm
hoping by putting it on Githbub it can thrive properly as a modern open source
project.
I probably won't add any more languages myself i the near future. It
might be good
to add php though at some point as php is built quite differently on Windows.
William
works much like Travis. Like Travis, it integrates with Github and tests pull
requests and runs the tests after commits to the Github repo. Appveyor have
free accounts for open source projects and so I've set one up at
https://ci.appveyor.com/project/swig/swig where the latest builds will be
available.
It all works using the normal autotools on Cygwin but using the Microsoft
Visual C++ compiler for compiling SWIG and running the tests. C#, Java, Python
2 and Python 3 are currently working for both 32 bit and 64 bit Windows.
There is a time limit of 40 minutes for each build and running the entire
test-suite on Windows is much slower than on Linux and so it times out.
Instead I've set it up to run the partialcheck-test-suite for now. Breaking
the test-suite into two might workaround this problem. It currently takes
three and a half hours to run, so I'm not quite sure how it will cope on busy
days.
Using Visual C++ requires the cccl script, which is a wrapper around the
visual C++ compiler to make it accept Unix cc/gcc command line arguments. The
original cccl project at Sourceforge has been inactive for 12 years and so I
found various forks of it and merged them in with my local changes and made it
available under the SWIG organization at https://github.com/swig/cccl. I'm
hoping by putting it on Githbub it can thrive properly as a modern open source
project.
I probably won't add any more languages myself i the near future. It
might be good
to add php though at some point as php is built quite differently on Windows.
William