Commit graph

55 commits

Author SHA1 Message Date
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
Steven Danna
b979579e5f
Remove some platforms from travis config
We can run these platforms before the release, but running them on every
commit means we wait a long time for travis builders.
2016-08-05 18:16:55 +01:00
Christoph Hartmann
5d78324059 add fedora 23 & 24 to kitchen integration tests 2016-08-05 10:52:03 +02:00
Christoph Hartmann
93a068b8fa update kitchen container, activate all in travis 2016-08-05 10:52:03 +02:00
Steven Danna
185787fa74
Set environment variables via Travis config
Using the `env` feature of the matrix builds is a little hack so that
one can quickly see what tests failed when looking at the build summary
page.

Signed-off-by: Steven Danna <steve@chef.io>
2016-08-04 13:32:35 +01:00
Steven Danna
72333a08ec
Only test PRs and pushes to master
Without this, Travis often ends up running 2 CI jobs for updates to a
PR: 1 for the update to the PR, 1 for the push to the branch.

By adding this bit of config, travis will still run a job for any update
to a PR, but won't run a duplicate job for the push to the branch that
the PR is based off of. We use this in chef/chef and chef/chef-server
to reduce unnecessary use of TravisCI resource.
2016-08-02 11:55:06 +01:00
Christoph Hartmann
ba95e461d3 run integration tests in docker 2016-05-16 18:25:17 +02:00
Dominik Richter
890ce1921f release via travis + test via rubygems 2016-04-18 10:46:12 -04:00
Stephan Renatus
d297b3dc6f travis/Gemfile: use train from github 2016-04-18 11:53:30 +02:00
Dominik Richter
0e1be01c5f set 5 parallel workers for travis functional tests 2016-03-16 15:38:12 +01:00
Dominik Richter
e53d33bc98 add functional test types 2016-03-16 08:23:13 +01:00
Stephan Renatus
bcee367104 dedup Gemfiles 2016-02-08 14:34:35 +01:00
Christoph Hartmann
925e1a7c4f ensure bundler is installed on travis 2016-02-05 12:54:19 +01:00
Christoph Hartmann
dbf22e7d51 bugfix: pin net-ssh 2.9 in gem file, since bundler is not selecting the right version 2016-01-22 11:29:18 +01:00
Stephan Renatus
5e44ac0396 using travis-ci's services:docker 2015-12-03 15:48:08 +01:00
Stephan Renatus
cac222090e workaround travis-ci's gem version 2015-12-03 15:45:19 +01:00
Christoph Hartmann
af613a14da do not load maintenance gems during testing 2015-10-30 17:30:44 +01:00
Dominik Richter
27fb80f5ee fix travis builds for 1.9.3 2015-10-25 23:22:52 +01:00