Commit Graph

24 Commits

Author SHA1 Message Date
Darragh Bailey
1ebfacf979
Adjust groups to reduce test dependencies (#1748)
Switch around the groups defined in the Gemfile to allow execution
without installing additional tools that are useful for development but
not needed for testing or packaging.
2023-08-15 11:19:09 +00:00
Darragh Bailey
4fe53477b2
Support running tests in parallel (#1667)
To allow for faster execution of the unit tests locally, allow running
them in parallel.
2022-11-08 16:28:32 +00:00
Darragh Bailey
0af8931c36
Facilitate profiling of tests (#1611)
Allow for optional installation of test profilers to help development
identify slow areas needing additional work.
2022-09-28 18:23:25 +00:00
a1346054
dbd2d3fdce
Fix typos 2022-08-08 22:44:45 +00:00
Darragh Bailey
4ffb63cd79
Switch to https from git for vagrant-spec (#1492)
Bundle now complains about cloning using the git protocol which is
insecure by default. Switching to https urls resolves.
2022-05-06 20:25:50 +01:00
Darragh Bailey
380b3c2096
Make simplecov a source development dependency only (#1418)
Remove the need for downstream packaging to either require or patch
out simplecov from existing files by making it an optional development
dependency.
2021-12-03 12:50:02 +00:00
Darragh Bailey
d752138d10
Remove duplicate gemspec (#1406)
Fix warning reported by bundler of duplicate gemspec
2021-11-22 10:52:24 +00:00
Darragh Bailey
32d1805583
Pin dependency to allow tests to run on older version (#1400)
Upstream transitive dependency has dropped support for older rubies
without updating the minimum ruby version required.

Pin the max version of the dependency for older rubies to allow the
tests to run until the upstream project resolves.
2021-11-16 12:53:16 +00:00
Darragh Bailey
90e89de969
Support dev setting vagrant-spec version from env (#1344)
Allow control of the reference or version of vagrant-spec to be used
from the dev environment where it is necessary to test with older
versions of the plugin which may depend on different versions of
dependencies compared to vagrant-spec.

In this case the latest vagrant-spec has rolled forward the rspec core
version to 3.10, which works with the latest vagrant-libvirt. However
previous versions of vagrant-libvirt require 3.5, which was the previous
minor version pinned.

Adding the option of VAGRANT_SPEC_VERSION that can be set as an
environment variable should help control this explicitly when needed in
the future the same as how VAGRANT_VERSION is handled.
2021-09-11 14:32:42 +01:00
Darragh Bailey
18ebb9d9ed
Enable frozen string across project (#1319)
Turn on frozen string support in all files by using a comment to avoid
enabling across dependencies where it may not work.

Fixes: #1177
2021-06-30 13:27:03 +01:00
Darragh Bailey
fbf026aeaa
Support testing against ruby 3.0 (#1243)
Retrieve vagrant and ruby-libvirt dependencies and modify as needed to
allow testing against ruby 3.0 until released versions support.

Use conditionals to skip steps when not needed.

Note that in order to use the locally built gem added to the cache
manually, need to disable checksums. However as all other ruby
versions will continue to use it, shouldn't be an issue as long as the
cache for ruby 3.0.0 is wiped clean before being used for anything such
as publishing.

Fixes: #1244
2021-04-07 19:41:28 +01:00
Darragh Bailey
66d394d42e
Switch from travis to github actions for unit tests (#1206)
Migrate to github actions as travis has switched to a process that will
require requesting minutes regularly for open source projects, and
current development is slow enough that this additional overhead is too
much.

Correct the generation of the line coverage following the example at
coverallsapp/github-action#29. Remove dependency on coveralls
gem as no longer needed if using the action.

Patch older versions of simplecov to contain a branch_coverage?
method to ensure working with simplecov-lcov.
2021-02-20 15:23:16 +00:00
Joey Korkames
6dfff8414f
Gemfile: update branch-name of 'vagrant-spec' (#1163)
fixes `bundle install` step from the README, currently broken by https://github.com/hashicorp/vagrant-spec/issues/41

```
~/src/vagrant-libvirt $ bundle install
....
Fetching git://github.com/hashicorp/vagrant-spec.git
fatal: Needed a single revision
Revision master does not exist in the repository git://github.com/hashicorp/vagrant-spec.git. Maybe you misspelled it?
```


Works fine now on my workstation with the new name:
```
Using vagrant-spec 0.0.1 from git://github.com/hashicorp/vagrant-spec.git (at main@b6b56c8)
Bundle complete! 10 Gemfile dependencies, 73 gems now installed.
```
2020-10-27 11:51:04 +00:00
Darragh Bailey
63f34432ad
Allow dev with latest vagrant to use newer vagrant-spec (#1098)
Latest vagrant depends on a vagrant-spec release containing a more
recent dependency on childprocess than is supported for earlier releases
of vagrant.

Adjust dependencies to pin to the specific release of vagrant-spec if
the request version of vagrant is 2.2.7 or older.

Does not attempt to handle the situation where a version is specified
that cannot be parsed.

While it would be useful to test against newer versions of 2.2.x, it
appears this encounters a bug in upstream vagrant when installing in
dev mode see https://github.com/hashicorp/vagrant#11293
Therefore limit latest 2.2.x released version tested against to 2.2.4.
2020-04-23 09:12:04 +01:00
Darragh Bailey
1c830dc4a5 Fix CI by pinning version of vagrant-spec for dev 2020-04-20 15:44:14 +01:00
Hugo Stijns
2f9ce15487 Vagrant moved to the hashicorp GitHub organization 2017-11-21 10:05:49 +01:00
Gerben Meijer
16a2a20388 Bring travis up to speed with latest vagrant
- Fix gemfile sourced twice issue: https://github.com/bundler/bundler/issues/5263
- Use latest vagrant-spec
- Fix travis gem issue "no implicit conversion of nil into String"
2017-08-03 18:31:31 +02:00
Gerben Meijer
1c8b94e029 Add coveralls to Gemfile 2016-11-26 23:57:07 +01:00
Darragh Bailey
afb53addb1 Add rudimentary spec test to WaitTillUp using vagrant-spec
Add some basic spec tests for the WaitTillUp action class to lay some
foundations. Utilize vagrant-spec pinned to a known working commit for
tests to pass consistently until they provide releases.

Requires updating some of the rspec libraries and includes
sharedcontext.rb from the jantman/vagrant-r10k project on github.
2016-01-27 18:21:25 +00:00
Darragh Bailey
4c7a0d5db0 Enable travis CI testing of github PRs
Add travis CI and support testing against a matrix of vagrant versions.
2015-07-29 17:44:23 +01:00
Romuald du Song
c5a6107ead change repo ref to https 2015-05-23 15:44:27 +02:00
dima
0e2c26a33f cleaning,tests preparation 2015-04-15 09:45:29 +02:00
Matthieu Coudron
f9aa5a8e76 Updated gemfile to let vagrant load plugin in the 1.5 fashion 2014-03-16 10:52:10 +01:00
pradels
810f0b31b9 Initial commit 2013-03-27 00:55:30 +01:00