summaryrefslogtreecommitdiff
path: root/script/cibuild.sh
Commit message (Collapse)AuthorAgeFilesLines
* ci: remove unused old ci scriptsEdward Thomson2018-07-281-27/+0
|
* travis: enable -Werror in the script instead of using the matrixEtienne Samson2018-06-061-1/+1
|
* scripts: remove extraneous semicolonsEtienne Samson2018-06-061-4/+3
|
* travis: let cmake perform the build & install stepEtienne Samson2018-06-061-1/+1
| | | | The goal is to let cmake manage the parallelism
* travis: split testing from buildingEtienne Samson2018-06-061-74/+0
|
* tests: create new test target for all SSH-based testsPatrick Steinhardt2018-01-031-7/+4
| | | | | | | | Some tests shall be run against our own SSH server we spin up in Travis. As those need to be run separate from our previous tests which run against git-daemon, we have to do this in a separate step. Instead of bundling all that knowledge in the CI script, move it into the test build instructions by creating a new test target.
* tests: online::clone: inline creds-test with nonexistent URLPatrick Steinhardt2018-01-031-7/+0
| | | | | | | | Right now, we test our credential callback code twice, once via SSH on localhost and once via a non-existent GitHub repository. While the first URL makes sense to be configurable, it does not make sense to hard-code the non-existing repository, which requires us to call tests multiple times. Instead, we can just inline the URL into another set of tests.
* tests: online::clone: construct credential-URL from environmentPatrick Steinhardt2018-01-031-9/+5
| | | | | | | | | | | | | We support two types of passing credentials to the proxy, either via the URL or explicitly by specifying user and password. We test these types by modifying the proxy URL and executing the tests twice, which is in fact unnecessary and requires us to maintain the list of environment variables and test executions across multiple CI infrastructures. To fix the situation, we can just always pass the host, port, user and password to the tests. The tests can then assemble the complete URL either with or without included credentials, allowing us to test both cases in-process.
* travis: let's try a 5GB ramdiskcmn/macos-ramdiskCarlos Martín Nieto2017-10-311-2/+2
|
* travis: put clar's sandbox in a ramdisk on macOSCarlos Martín Nieto2017-10-311-0/+9
| | | | | The macOS tests are by far the slowest right now. This attempts to remedy the situation somewhat by asking clar to put its test data on a ramdisk.
* travis: only kill our own sshdEdward Thomson2017-07-241-1/+2
|
* travis: cibuild: set up our own sshd serverPatrick Steinhardt2017-06-211-8/+26
| | | | | | | | | | | | | | Some tests of ours require to be running against an SSH server. Currently, we simply run against the SSH server provided and started by Travis itself. As our Linux tests run in a sudo-less environment, we have no control over its configuration and startup/shutdown procedure. While this has been no problem until now, it will become a problem as soon as we migrate over to newer Precise images, as the SSH server does not have any host keys set up. Luckily, we can simply set up our own unpriviledged SSH server. This has the benefit of us being able to modify its configuration even in a sudo-less environment. This commit sets up the unpriviledged SSH server on port 2222.
* script: cibuild: build examplesPatrick Steinhardt2016-10-101-1/+1
|
* travis: take the newer ssh-keygen format into accountcmn/osx-ssh-keyCarlos Martín Nieto2016-10-051-2/+7
| | | | | | The Mac machines have updated their SSH version and so the ssh-keygen format has changed. Ask it for MD5, which is the one that is output as hex.
* cibuild: set -xCarlos Martín Nieto2016-10-051-0/+2
| | | | | This lets us see the details of what we're doing instead of just seeing the output of unknown commands in the build output.
* ci: install homebrew's curl on macethomson/mac_buildEdward Thomson2016-07-241-1/+1
|
* ci: install homebrew's zlib on macEdward Thomson2016-07-221-0/+4
|
* CI: start the proxy before the build so it's readyCarlos Martín Nieto2016-04-191-7/+8
| | | | | | It takes a bit for the propxy to get ready to accept connections, so start it before the build so we can be reasonably sure that it's going to be ready in time.
* proxy: test proxy support on TravisCarlos Martín Nieto2016-04-191-0/+14
|
* tests: create a ctest target for cred_callbackcmn/auth-retryCarlos Martín Nieto2016-03-031-2/+2
|
* test: make sure we retry the auth callback on all platformsCarlos Martín Nieto2016-03-031-0/+4
| | | | | | | | | | We were missing this test on Windows, which meant we didn't notice that we never fixed the single authentication attempt it tries, nor its wrong return code. Enable this for the unix platforms as well over HTTP. We previously were doing it locally but disabled it on OS X due to issues with its sshd not accepting password authentication.
* Don't try to start ssh.Arthur Schreiber2015-06-261-2/+0
|
* travis: fail if we fail the push testsCarlos Martín Nieto2015-06-121-2/+2
| | | | | | These tests were not being taken into consideration for the failure of the test. They've been failing for a while now, but we hadn't noticed as Travis was reporting the builds successful.
* Win32: Enable WinHTTP for MinGWPhilip Kelley2015-03-161-5/+13
|
* Revert "Implement fail-fast for Travis as well"Edward Thomson2015-03-101-10/+0
| | | | This reverts commit ba6c53b91b1d9c9dc49b7c0d8e8efbd9842c31dc.
* Implement fail-fast for Travis as wellTony Kelman2015-03-041-0/+10
|
* Merge pull request #2710 from Therzok/shellcheckScriptsEdward Thomson2014-11-211-3/+4
|\ | | | | Run shell scripts through shellcheck
| * Run shell scripts through shellcheckUngureanu Marius2014-11-201-3/+4
| |
* | travis: disable the cert callback on OSXcmn/disable-ssh-checkCarlos Martín Nieto2014-11-201-1/+4
|/ | | | | | The sshd on OSX has stopped responding to the setting which this test assumes is there, so let's disable it until we can figure out what's happening.
* script: use a parallel build on TravisCarlos Martín Nieto2014-09-161-1/+1
|
* Merge remote-tracking branch 'upstream/master' into cmn/host-cert-infoCarlos Martín Nieto2014-09-161-2/+0
|\
| * travis: no need to clean out the test repositoryCarlos Martín Nieto2014-08-291-2/+0
| | | | | | | | | | This was added to avoid the remote's default branch to be considered to the be notes one which the first network test leaves behind.
* | ssh: add test for host keyCarlos Martín Nieto2014-09-161-1/+4
|/ | | | | Test that the certificate check callback gets the right fingerprint from the host we're connecting to.
* Merge remote-tracking branch 'upstream/master' into cmn/ssh-retryCarlos Martín Nieto2014-08-271-1/+4
|\
| * ssh: provide a factory function for setting ssh pathscmn/ssh-factory-for-pathsCarlos Martín Nieto2014-07-071-1/+4
| | | | | | | | | | | | | | | | | | git allows you to set which paths to use for the git server programs when connecting over ssh; and we want to provide something similar. We do this by providing a factory function which can be set as the remote's transport callback which will set the given paths upon creation.
* | travis: enable password authentication on OSXcmn/ssh-retryCarlos Martín Nieto2014-06-261-1/+7
| | | | | | | | | | | | | | | | Our ssh tests assume that the server supports password authentication in a few places. This is convenient as we're not testing authentication methods, but what happens around them. Tell sshd on OSX to accept this form of authentication.
* | ssh: request credentials again on authentication failureCarlos Martín Nieto2014-06-261-1/+1
|/ | | | | Instead of completely giving up on the first failure, ask for credentials as long as we fail to authenticate.
* ciscript: don't use an empty string as a numberCarlos Martín Nieto2014-04-301-1/+1
| | | | | | | An empty string is not a valid number, and some shells complain. Check instead if $COVERITY is non-empty, which is a common convention and what we're doing anyway.
* Only run clone-failure test on private repoBen Straub2014-02-051-1/+1
|
* Add coverity-scan scriptBen Straub2014-01-131-0/+6
|
* travis: exit on failure for anything related to buildingCarlos Martín Nieto2013-08-191-8/+3
|
* travis: really fail if the tests failCarlos Martín Nieto2013-08-191-0/+5
| | | | | | When implementing the ssh testing, the move to the script made it so the first test suite's exit code was ignored. Check whether the main tests fail and exit with an error in that case.
* Test SSH in travisCarlos Martín Nieto2013-08-141-0/+32
Set up the ssh credentials so we are able to talk to localhost and issue git commands. Move to use a script, as the command list is getting somewhat long. While here, delay installing valgrind until we need it, as it and its dependencies are by far the largest downloads and this allows us to start compiling (and failing) faster and we only incur this cost when the test suite runs successfully.