Commit graph

72 commits

Author SHA1 Message Date
Miah Johnson
4cde738f7a Remove a un-needed linux build, make coverage SLOW=1
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
2b022e30d2 Exclude osx coverage build
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
e494136f45 unsure if this works..
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
6a2dd21494 Must define the env at top level or it won't join matrix.
Also enable fast finish so we don't wait on allowed fails before
returning build status.

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
0eed0f04b2 Linux is default, but if its not listed in OS only osx will be tested.
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
a9db7e4fe6 Remove windows, it doesnt support ruby yet :(
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:41:57 -07:00
Miah Johnson
cfa4682983 Remove all old deploy stuff
Sort Ruby newest to oldest, this lets jobs in the matrix automatically
set the newest.
Add coverage job that is allowed to fail.
Add Mac and Windows testing. (curious)

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-06-06 13:40:53 -07:00
Ryan Davis
b3dccea4d5 Add maintainer branches to travis.
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-06-05 22:35:47 -07:00
Ryan Davis
ec803f07e0 Fixed syntax error in .travis.yml
Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-29 16:22:39 -07:00
Miah Johnson
546b1084f7 Cache the .rvm directory in travis
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-05-28 15:39:49 -07:00
Ryan Davis
84fd8af96a Added SLOW=1 env var to run slow installer tests, otherwise skipped
+ Added SLOW=1 to appveyor (I hope?) and travis.
+ Off by default.

Speeds up installer tests from ~5.5 seconds to ~0.5 seconds.

Once this is established, we can push this up to the main helper and
generalize if it works out for us.

Signed-off-by: Ryan Davis <zenspider@chef.io>
2019-05-17 02:26:07 -07:00
Tim Smith
9930e8d05d Test on Ruby 2.6.3 in Travis
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-05-15 14:51:08 -07:00
Tim Smith
02d2751971 Add Debian 10 testing to Kitchen / Travis
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-05-15 14:41:29 -07:00
Tim Smith
b095e2192e Make sure we test on Ruby 2.6
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-25 11:14:27 -04:00
Tim Smith
00ce6c02df Require Ruby 2.4 or later
Ruby 2.3 is no longer supported. Drop this release from InSpec and
instead support the 3 latest Ruby releases.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-04-16 21:19:40 -07:00
Clinton Wolfe
46f6513884 Also test 3-stable on Travis
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-10 13:23:51 -04:00
Clinton Wolfe
19cccf0c14 Add v4 to Travis temporarily
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2019-04-08 14:23:33 -04:00
Tim Smith
2fe299c4f8 Work around strange bundler failures on Ruby 2.3
We should be excluding the integration group but it's trying to install berkshelf no matter what. 🤷

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:59:18 -08:00
Tim Smith
0cbd8ce705 Move the issue template to the .github directory
No need for this in the root

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:50:30 -08:00
Tim Smith
d7b6e0a7f3 Name the test/lint tests in Travis
Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:44:51 -08:00
Tim Smith
34e105fb59 Shuffle around where we define the bundler args
The group exclusions weren't getting applied at the top level like one
might assume.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:19:26 -08:00
Tim Smith
8fcef84820 Actually disable 2.6 testing for now
It very much does not work atm

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 20:54:00 -08:00
Tim Smith
4628a12401 Switch the travis test to Xenial and add Ruby 2.6.1
We'll be shipping on Ruby 2.6.1 soon so we should test it.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 20:47:21 -08:00
Tim Smith
79a45d0f3b Swap Fedora 24 for Fedora 29 in Travis
Fedora 24 is way EOL

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 18:14:02 -08:00
Tim Smith
0a1fb48b4e Switch CentOS / Ubuntu to use the dokken-images containers
These are setup to look more like VMs and they are what should be used with dokken.

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 18:03:04 -08:00
Tim Smith
b5ff949059 Update Ruby versions used for testing; fix Travis CI issues (#3678)
Signed-off-by: Tim Smith <tsmith@chef.io>
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2018-12-20 22:17:07 -05:00
Jared Quick
39b3b7135e
Add audit-cookbook integration testing (#3431)
* Add audit integration testing.
* Add some docs and feedback changes.
* Updated integration task to use paramaters and clean it up.
* Fix unit test

Signed-off-by: Jared Quick <jquick@chef.io>
2018-09-25 15:53:26 -04:00
Jared Quick
4e54475cec
Fix tests for ruby 2.5 (#3125)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-06-11 11:25:16 -04:00
Julian C. Dunn
153fd7182d Now that release-2.0 has merged into master you don't need to test it anymore! (#2718)
Signed-off-by: Julian C. Dunn <jdunn@chef.io>
2018-02-21 16:45:29 -08:00
Miah Johnson
ecbede56fa Ruby 2.5.0 is released and stable we need to start testing (#2604)
Add Ruby 2.5.0 to test matrix

Signed-off-by: Miah Johnson <miah@chia-pet.org>
2018-02-13 12:39:47 -05:00
Jerry Aldrich
3fd25e2ac3 Add release-2.0 target branch to AppVeyor/Travis (#2510)
Signed-off-by: Jerry Aldrich <jerryaldrichiii@gmail.com>
2018-02-07 16:00:17 -05:00
Jared Quick
7d26674754 Remove the force uninstall bundler from travis. (#2533)
Signed-off-by: Jared Quick <jquick@chef.io>
2018-02-06 15:09:52 +01:00
Adam Leff
c1f57d9875 Bump Omnibus Ruby (and Travis Rubies) to 2.4.3 (#2452)
Addresses CVE-2017-17405.

Signed-off-by: Adam Leff <adam@leff.co>
2018-01-16 14:28:19 -08:00
Adam Leff
ff5dbb79cb
Fixing Travis tests due to rvm/bundle issues (#2421)
Signed-off-by: Adam Leff <adam@leff.co>
2017-12-21 22:36:22 -05:00
Adam Leff
9ca69787d5 Split unit tests from functional (#2391)
Functional tests can sometimes be picky. Moving them to their own
matrix item so they're smaller and faster to re-run if needed.

Signed-off-by: Adam Leff <adam@leff.co>
2017-12-12 17:28:46 +01:00
Adam Leff
f05e22ad33 Require Ruby 2.3 and later (#2293)
* Require Ruby 2.3 and later

Ruby 2.1 is EOL, and Ruby 2.2 is on security fixes only. This moves
InSpec to support the current "normal maintenance" versions of Ruby
like Chef does and also bumps the versions used in Travis tests.

Signed-off-by: Adam Leff <adam@leff.co>

* Remove Ruby 2.2 from appveyor

Signed-off-by: Adam Leff <adam@leff.co>
2017-11-16 22:02:35 +07:00
Adam Leff
8b8d240fe6 Remove test/resources directory, update README (#2124)
* Remove test/resources directory, update README

The test/resources directory is stale and no longer used. Rather, we
favor Test Kitchen-backed integration tests in test/integration.

This change removes the stale tests and updates the README accordingly.

Signed-off-by: Adam Leff <adam@leff.co>

* Remove resources tests from travis

Signed-off-by: Adam Leff <adam@leff.co>
2017-09-06 12:05:25 +02:00
Adam Leff
a8bc555214 Add slack notifications for Travis CI builds to master (#2092)
Signed-off-by: Adam Leff <adam@leff.co>
2017-08-21 23:40:36 +02:00
Dominik Richter
f3d182a2ed update minimum ruby from 2.1 -> 2.2, add 2.4 (#2029)
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
2017-07-24 11:19:53 -04:00
Adam Leff
631424d305
Fix travis config for web acceptance environment
I must've been dealing with some fun travis caching because
after my last change was merged, this travis job disappeared.
The .travis.yml config I used was wrong... this should do it.

Signed-off-by: Adam Leff <adam@leff.co>
2017-05-04 17:41:50 -04:00
Adam Leff
bcac449547
Ignore web acceptance travis errors
The website acceptance job in Travis will fail for non-chef-github
users because we use encrypted environment variables. This job
should never hold up an accepted PR, so I'm moving it to the
allowed_failures section.

Signed-off-by: Adam Leff <adam@leff.co>
2017-05-04 16:24:37 -04:00
Adam Leff
8693749eef Move CI scripts directory
Per PR feedback, moving the CI scripts directory from the repo root.

Signed-off-by: Adam Leff <adam@leff.co>
2017-04-12 10:10:36 -04:00
Adam Leff
a1b7e3167e [www] Adding a website acceptance environment
If changes are detected in the docs or www directory, a website
build will be generated that pushes up to Netlify. This will allow
teams to validate web changes without requiring pulling down the
branch and building locally.

Signed-off-by: Adam Leff <adam@leff.co>
2017-04-12 10:10:36 -04:00
Christoph Hartmann
efc8542320 drop ruby 1.9.3
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-01-03 11:06:01 +01:00
Victoria Jeffrey
4baf1ae99c move inquirer to deploy 2016-09-27 14:23:32 -04:00
John Keiser
75c15fd0b6 Add Ruby 2.3 to the test matrix, make it the primary test for most suites 2016-08-25 14:13:17 -04:00
John Keiser
2b37bd6586 Fix bundle install on Ruby 2.1.9 2016-08-25 14:16:16 +02:00
Christoph Hartmann
02158fbfe4 restructure test suites in travis 2016-08-24 10:50:02 +02:00
Christoph Hartmann
96968171f2 allowed failures for unit/functional tests until travis is fixed 2016-08-10 17:00:50 +02:00
Steven Danna
9346f5dd34
travis experiment: lower docker concurrency
Signed-off-by: Steven Danna <steve@chef.io>
2016-08-10 12:52:21 +01:00