summaryrefslogtreecommitdiff
path: root/.travis/linux-prepare.sh
Commit message (Collapse)AuthorAgeFilesLines
* travis: Fix 32-bit libunwind system build.William Tu2019-10-071-0/+6
| | | | | | | | | | | 32-bit and 64-bit libunwind can not be installed at the same time. For 32-bit build, this patch removes the 64-bit libunwind and install 32-bit version. Fixes: e2ed6fbeb18c ("fatal-signal: Catch SIGSEGV and print backtrace.") Signed-off-by: William Tu <u9012063@gmail.com> Acked-by: Ilya Maximets <i.maximets@ovn.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
* travis: Drop -MD related workaround for sparse.Ilya Maximets2019-09-261-5/+0
| | | | | | | | | | The issue was fixed in upstream sparse by the following commit: d90c0838c101 ("cgcc: fix wrong processing of -MD & -MMD") This patch is required to fix our travis build. Signed-off-by: Ilya Maximets <i.maximets@ovn.org> Acked-by: Ian Stokes <ian.stokes@intel.com>
* travis: Fix checks skipping by sparse.Ilya Maximets2019-04-241-1/+8
| | | | | | | | | | | | | | | | | Recent commit in "sparse" broke checking the OVS sources, because 'make' uses '-MD' flag to generate dependencies as a side effect within compilation commands, but "sparse" skips all the build commands that contains '-MD' and friends. Let's revert the bad commit as a workaround before installing "sparse" in TravisCI. Additionally fixed a false-positive: ./lib/bitmap.h:64:29: error: shift too big (64) for type unsigned long CC: Yi-Hung Wei <yihung.wei@gmail.com> Fixes: 879e8238dfdf ("travis: Update sparse git repo") Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* travis: Update sparse git repoYi-Hung Wei2019-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The old git tree git://git.kernel.org/pub/scm/devel/sparse/chrisl/sparse.git has not been updated since 2016, and that triggers the following build error on Ubuntu 18.04 host with 2.27-3 libc6-dev. So update the sparse git repo to the new one. $ .travis/linux-prepare.sh $ export PATH=$PATH:$HOME/bin $ .travis/linux-build.sh /usr/include/stdlib.h:140:17: error: Expected ; at end of declaration /usr/include/stdlib.h:140:17: error: got strtof32 /usr/include/stdlib.h:146:17: error: Expected ; at end of declaration /usr/include/stdlib.h:146:17: error: got strtof64 /usr/include/stdlib.h:158:18: error: Expected ; at end of declaration /usr/include/stdlib.h:158:18: error: got strtof32x /usr/include/stdlib.h:233:33: error: Expected ) in function declarator /usr/include/stdlib.h:233:33: error: got __f /usr/include/stdlib.h:239:33: error: Expected ) in function declarator /usr/include/stdlib.h:239:33: error: got __f /usr/include/stdlib.h:251:35: error: Expected ) in function declarator /usr/include/stdlib.h:251:35: error: got __f /usr/include/stdlib.h:316:17: error: Expected ; at end of declaration /usr/include/stdlib.h:316:17: error: got strtof32_l /usr/include/stdlib.h:323:17: error: Expected ; at end of declaration /usr/include/stdlib.h:323:17: error: got strtof64_l /usr/include/stdlib.h:337:18: error: Expected ; at end of declaration /usr/include/stdlib.h:337:18: error: got strtof32x_l Makefile:5288: recipe for target 'lib/aes128.lo' failed make[2]: *** [lib/aes128.lo] Error 1 ... Tested on Jarvis: https://travis-ci.org/YiHungWei/ovs/builds/521979625 Signed-off-by: Yi-Hung Wei <yihung.wei@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* travis: Use parallel jobs for DPDK and sparse builds.Ilya Maximets2019-02-111-1/+1
| | | | | | | This allows to save a few minutes. Signed-off-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
* travis: Fail the build if any of the Linux build preparations fail.Ben Pfaff2017-07-271-0/+2
| | | | | | | | | | | | We want the build to fail if we can't prepare properly for it, but linux-prepare.sh ignored errors. This fixes the problem. This would have made it more obvious where the problem fixed by the previous commit originated. (osx-prepare.sh already does the right thing.) Signed-off-by: Ben Pfaff <blp@ovn.org>
* travis: Explicitly disable LLVM for sparse build.Ben Pfaff2017-07-271-1/+6
| | | | | | | | | Newer travis environments claim to have LLVM support (llvm-config exists and works) but in reality don't, which prevents sparse from building and later parts of the build from succeeding. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
* travis: Fix build on Travis by installing new-enough docutils.Ben Pfaff2017-03-201-0/+1
| | | | | | | | | This yields a clean build: https://travis-ci.org/blp/ovs-reviews/builds/213085784 Suggested-by: Ilya Maximets <i.maximets@samsung.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Lance Richardson <lrichard@redhat.com>
* doc: Don't limit ourselves to flake8 2.xStephen Finucane2017-01-041-4/+1
| | | | | | | | | | | There was a bug when using hacking with flake8 3.x. This bug has since been resolved [1], meaning we no longer need to call out the need to use the older version of flake8. [1] https://review.openstack.org/#/c/335965/ Signed-off-by: Stephen Finucane <stephen@that.guru> Signed-off-by: Ben Pfaff <blp@ovn.org>
* travis: Fix flake8 failures from flake8 3.0.Russell Bryant2016-07-291-1/+5
| | | | | | | | | The "hacking" plugin for flake8 is not currently compatible with flake8 3.0. Ensure that we install flake8 2.x on travis-ci. Also update the docs to indicate this incompatibility. Signed-off-by: Russell Bryant <russell@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
* Travis: Added python plugins flake8 and hacking.William Townsend2016-07-021-1/+1
| | | | | | | | | Travis builds will now automatically run flake8 and hacking checks against Python code and generate warnings. Signed-off-by: William Townsend <wtownsen@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Flavio Fernandes <flavio@flaviof.com>
* travis: support OS X buildsLance Richardson2016-03-231-0/+5
Add support for travis-ci OS X builds: - Add linux- prefix to existing build/prepare scripts - Create new OS X flavored build/prepare scripts - Update .travis.yml for OS X At this time only one build job included in the matrix for OS X. Signed-off-by: Lance Richardson <lrichard@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>