summaryrefslogtreecommitdiff
path: root/.travis.yml
Commit message (Collapse)AuthorAge
* Fix apt directive for travisFlavio Castelli2018-02-19
|
* Travis: ensure libvirt development headers are installedFlavio Castelli2018-02-19
|
* Travis: fix errorFlavio Castelli2018-02-19
| | | | Fix linting error, ensure tests are actually run
* travis: do not run acceptance testsFlavio Castelli2018-02-19
| | | | | | | | Acceptance test have to be run inside of lxd, which is not working right now on travis. Let's fall back to regular tests until we have a better jenkins based infra.
* Simplify the wait_for_leases mechanismAlvaro Saurin2017-11-27
|
* init govet on travisDario Maiocchi2017-11-22
|
* golint on various filesDario Maiocchi2017-11-16
|
* don't use underscores in Go namesDario Maiocchi2017-11-16
|
* golint enablementDario Maiocchi2017-11-16
|
* add gofmt check for pkg(libvirt and main)MalloZup2017-11-07
|
* update Terraform and Go versionThomas Hipp2017-09-22
| | | | | | | | | | | | | | This updates Terraform to the latest version. Travis will build with go1.9 from now on, since Terraform > 0.10.2 doesn't support go1.8. Glide was run with `--strip-vendor` which removes a lot of unnecessary files. Tests and Docs regarding `ignition` have been updated. This resolves #194. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Fixing travis for forksDean Smith2017-09-18
| | | | Travis needs to checkout to a vanity path
* Fix broken testsFlavio Castelli2017-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests are failing because travis has an old version of libvirt that is not happy about the xml we generate. Unfortunately there's no way to get a more recent version of ubuntu on travis (it's stuck with trusty!!) and there are not libvirt 2.0 packages for trusty. This commit fixes the issues in the "inception" way: * travis provisions a ubuntu trusty VM as usual * the travis/host script does the following steps: * installs LXD * creates a system container based on the latest release of ubuntu * runs the container as privileged one * mount the git checkout into the container as read-only mount point (it easier than having a RW one) * runs the travis/guest script inside of the container: * install libvirt + go 1.8 * run the acceptance tests, save coverage to file * on the travis VM: * pull the coverage results file from the container * send it to coverall So far everything is working and is a miracle given the container, based on a more recent version of ubuntu, is using the kernel of the host, the old ubuntu trusty. This is just a termporary workaround until either travis updates its VMs to a more recent release of ubuntu or we switch the project to use Jenkins with an openSUSE worker. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* Fix travis: require latest stable release of GoFlavio Castelli2017-05-03
| | | | | The terraform code is taking advantage of features available only inside of go 1.8
* Update travis - do not use govendFlavio Castelli2017-05-03
| | | | | This is no longer needed now that all the deps are stored inside of the git repository.
* Increase code coverage by running TF acceptance testsEamonn O'Toole2017-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has required a number of changes, first of all to .travis.yml to allow the TF acceptance tests to run: 1. To avoid the need to build libvirt, we've added the Ubuntu "cloud-archive:mitaka" repo which contains more recent versions of libvirt than those that ship with 14.04. This also cuts a couple of minutes off the travis run-time. 2. We need to define and start a default storage pool, since one doesn't exist by default on 14.04. 3. We need to add the travis user to the libvirtd group, and then run both tests with "sg" to set the libvirtd group without requiring a log-out/log-in 4. We need to set a couple of global environment variables for the travis run: - TF_ACC to true to ensure that TF acceptance tests are run - LIBVIRT_DEFAULT_URI needs to be set, we set it to qemu://system. - We've added a new environment variable that can be used to set the domain type for test purposes. We need to set the domain type to "qemu" for travis CI. "test" doesn't implement all of the libvirt functions that are used, and "kvm" isn't yet available in travis. 5. We have to add "-v" to the test and goveralls command to ensure that TF acceptance tests are run. In addition, we had to make the following change to resource_libvirt_domain_test.go - The "br0" bridge doesn't exist by default, so instead we use the default network in resource_libvirt_domain_test.go With these changes the test coverage goes up to 44% as measured by goveralls. Because we're using qemu emulation, the tests take about 2 mins to run on travis. We might not need to run both the tests and goveralls; one might do.
* Try to enable Go code coverage on coverallsFlavio Castelli2017-03-02
|
* travis: fix build issueThomas Hipp2017-01-26
| | | | | | | | | When building with Go 1.6, the build fails due to the missing "context" package. Using Go 1.7 solves this issue. Beside that, Terraform requires Go 1.7. Signed-off-by: Thomas Hipp <thipp@suse.de>
* Keep track of all the dependenciesFlavio Castelli2016-07-01
| | | | | | | | | | | | | | | | Tracking all the dependencies makes builds reproducible and more robust. Some changes have been made to Travis too: - Overwrite the default testing script used by travis, this still executes the unit tests of the vendored code. - Build using vendored code - Do not run the tests of the vendored code, just focus on ours :) - Remove the `find` command, I guess it was there for debugging purposes and it makes travis go crazy when streaming the output. - Force usage of latest stable release of Go. Signed-off-by: Flavio Castelli <fcastelli@suse.com>
* travis: install custom libvirt as the one from Ubuntu 14.04 LTS is too old.Duncan Mac-Vicar P2016-05-22
|
* get test deps (just learned about go get -t)Duncan Mac-Vicar P2016-04-26
|
* as usual travis failing for stuff I can't reproduce locallyDuncan Mac-Vicar P2016-02-28
|
* go get ./...Duncan Mac-Vicar P2016-02-28
|
* gox not needed anymoreDuncan Mac-Vicar P2016-02-28
|
* use normal go build in travisDuncan Mac-Vicar P2016-02-28
|
* https://github.com/rgbkrk/libvirt-go tests on trustyDuncan Mac-Vicar P2016-02-28
|
* travis requires libvirt-devDuncan Mac-Vicar P2016-02-28
|
* add travis fileDuncan Mac-Vicar P2016-02-28