summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Allow chefstyle dependencies in windows verify testsChristopher A. Snapp2020-05-222-2/+2
| | | | Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
* Refactor verify pipeline to use Ruby 2.7 in WindowsChristopher A. Snapp2020-05-222-84/+15
| | | | Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
* Switch Ruby functional test on Windows to Ruby 2.7windows_ruby27Tim Smith2020-05-131-2/+2
| | | | | | Test on what we ship Signed-off-by: Tim Smith <tsmith@chef.io>
* Deduplicate the bk windows scriptsBryan McLellan2020-05-134-60/+29
| | | | Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Update rubyinstaller-devkit-2.6.6-1-x64.exe SHAChristopher A. Snapp2020-05-121-1/+1
| | | | Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
* Try upgrading to Ruby 2.6.6stop_upgrading_gemsTim Smith2020-05-101-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Stop updating rubygems in our test scriptsTim Smith2020-05-105-41/+7
| | | | | | | Rubygems is built into ruby and we're not updating it anymore in our builds. We get the version that ships in Ruby Signed-off-by: Tim Smith <tsmith@chef.io>
* Try removing asdf entirely and just use omnibus-toolchaintestingTim Smith2020-05-071-13/+2
| | | | | | It seems odd that we install ruby over ruby Signed-off-by: Tim Smith <tsmith@chef.io>
* Don't update rubygems / bundler in the kitchen testsTim Smith2020-05-061-2/+0
| | | | | | There's no need to do this Signed-off-by: Tim Smith <tsmith@chef.io>
* Cache the gems during the Test Kitchen testsTim Smith2020-05-061-1/+1
| | | | | | We need to cache them in the project root not the TK root Signed-off-by: Tim Smith <tsmith@chef.io>
* Get timing on the ruby installTim Smith2020-05-061-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* improve required hab version detectionRobb Kidd2020-04-281-3/+2
| | | | | | | | The original implementation--written by me--was incredibly naive in only testing the minor version. This is much better in using a Version class that knows how to compare actual version numbers. Signed-off-by: Robb Kidd <robb@thekidds.org>
* add exitstatus checks after bare commands in PowerShell scriptsRobb Kidd2020-04-274-11/+24
| | | | | | | Need these so the PowerShell scripts will exit when bare commands fail. Otherwise the build just keeps truckin' and the errors just pile up. Signed-off-by: Robb Kidd <robb@thekidds.org>
* Run Test Kitchen tests on Ruby 2.7ruby27_testingTim Smith2020-04-251-3/+3
| | | | | | Let's see all the warnings Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #9607 from chef/cache_gemsTim Smith2020-04-072-11/+16
|\ | | | | Cache gems in the verify pipeline to speed up tests
| * Move all the config version stuff to it's own sectionTim Smith2020-04-051-9/+11
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
| * Improve folding and don't install gem docsTim Smith2020-04-052-3/+6
| | | | | | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* | Download and verify the Ruby installer, then move into placeBryan McLellan2020-04-061-14/+33
| | | | | | | | | | | | | | This should reduce or remove race conditions while downloading the same file on multiple container instances. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* | Improved Ruby download/install for functional testsBryan McLellan2020-04-051-9/+55
|/ | | | | | | | | | Adds more error checking and avoids trying to download Ruby if for some reason it already exists on disk and matches the SHA256 hash. The primary issue discovered when troubleshooting this script was that aws.exe was running asynchronous. That was 'fixed' with '| Out-Null'. Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Use $env:temp instead of c:/btm/fix-windows-func-testBryan McLellan2020-04-031-3/+3
| | | | | | The drive root has more restrictive permissions Signed-off-by: Bryan McLellan <btm@loftninjas.org>
* Update Ruby to 2.7.1 / bundler to 2.1.4Tim Smith2020-04-011-3/+3
| | | | | | | | This resolves 2 CVEs in Ruby https://www.ruby-lang.org/en/news/2020/03/31/ruby-2-7-1-released/ Signed-off-by: Tim Smith <tsmith@chef.io>
* If we can't remove the Ruby installer in windows tests that's coolfail_less_windowsTim Smith2020-03-201-1/+1
| | | | | | | We're failing a lot when we try to remove this file. Just move on with life. Signed-off-by: Tim Smith <tsmith@chef.io>
* Trying to get buildkite output more readable / navigable.Ryan Davis2020-03-161-5/+3
| | | | Signed-off-by: Ryan Davis <zenspider@chef.io>
* Add more folding to the windows functional testsTim Smith2020-03-091-5/+3
| | | | | | Make this easier to debug in the future Signed-off-by: Tim Smith <tsmith@chef.io>
* Merge pull request #9466 from chef/faster_specsTim Smith2020-03-091-0/+4
|\ | | | | Set env vars in the container setup script
| * Set env vars in the container setup scriptfaster_specsTim Smith2020-03-061-0/+4
| | | | | | | | | | | | We're setting the same env vars in each job. Seems entirely pointless. Signed-off-by: Tim Smith <tsmith@chef.io>
* | Use the aws cli to download ruby in the windows testsTim Smith2020-03-091-2/+1
|/ | | | | | This should fix our busted windows tests Signed-off-by: Tim Smith <tsmith@chef.io>
* Only run apt-get update when we need toTim Smith2020-03-061-2/+0
| | | | | | This shaves 5 seconds off the non-functional / berkshelf times Signed-off-by: Tim Smith <tsmith@chef.io>
* More foldingTim Smith2020-03-061-1/+3
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Add logging / log folding to BKTim Smith2020-03-062-0/+5
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Refresh the apt cache thoughTim Smith2020-03-061-0/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Stop installing packages on our constainers that are already thereTim Smith2020-03-061-3/+0
| | | | | | We have these baked into the containers now Signed-off-by: Tim Smith <tsmith@chef.io>
* Pull the windows Ruby installer from S3 for testsTim Smith2020-02-051-1/+1
| | | | | | | This should prevent failures when we get throttled pulling it from Github Signed-off-by: Tim Smith <tsmith@chef.io>
* Add ruby 2.7 testingLamont Granquist2020-01-284-4/+67
| | | | | | bumps to bundler 2.1.2 and rubygems 3.1.2 because ruby 2.7 comes with those Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* move minimum hab check/install to a reusable scriptRobb Kidd2019-11-052-10/+11
| | | | | | | | | | | | | | | | And use it in both the verify/habitat and habitat/test pipelines. verify/habitat needs hab >= 0.85 to both build with environment variables that don't include the studio path[1] and to binlink the runtime with stubs that include the package and system environment.[2] habitat/test needs hab >= 0.85 to binlink the runtime with stubs that include the package and system environment. [1] https://github.com/habitat-sh/habitat/pull/6850 [2] https://github.com/habitat-sh/habitat/pull/6826 Signed-off-by: Robb Kidd <robb@thekidds.org>
* add more error checks to hab package testsRobb Kidd2019-11-051-0/+1
| | | | | | | | The PowerShell scripts calling PowerShell scripts was apparently swallowing the errors being thrown from inner layers. Check the error level of those scripts and throw another error if need be. Signed-off-by: Robb Kidd <robb@thekidds.org>
* only install hab 0.85 if not already installedhabiwindochefRobb Kidd2019-11-011-3/+10
| | | | Signed-off-by: Robb Kidd <robb@thekidds.org>
* add tests for the Windows habitat planRobb Kidd2019-11-011-0/+37
| | | | | | | | | | | | | | | | | | Adds a test PowersShell script to habitat/tests/ to run some simple tests on executable version output and then run the functional specs suite like the omnibus_test script does. scripts/ci/verify-plan.ps1 will perform a throwaway build of the plan under a "ci" origin and then run the test script upon the built package. The habitat/verify pipeline was updated to run the verify-plan.ps1 script. Signed-off-by: Robb Kidd <robb@thekidds.org> add Windows plan verification to verify-hab pipeline Signed-off-by: Robb Kidd <robb@thekidds.org>
* Bump Ruby to 2.6.5 to address CVEs #8951Christopher A. Snapp2019-10-022-6/+6
| | | | Signed-off-by: Christopher A. Snapp <csnapp@chef.io>
* Avoid rake failures in the test kitchen testsTim Smith2019-09-301-4/+4
| | | | | | Also skip the docs installs here to speed things up Signed-off-by: Tim Smith <tsmith@chef.io>
* Fix Windows Integration and Functional tests for BKJaymala Sinha2019-09-273-2/+49
| | | | | | | | | * Use default windows 2019 image * Skip 8dot3name tests as default disabled on 2019 * Use windows privileged executor for functional tests * Use windows docker image for chocolatey tests Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* Run windows verification in powershellJaymala Sinha2019-09-053-0/+40
| | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* Don't create interfaces.d anymoreTim Smith2019-06-091-1/+0
| | | | | | It's in the container now Signed-off-by: Tim Smith <tsmith@chef.io>
* Don't install net-tools on opensuseTim Smith2019-06-081-1/+1
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Make sure we have the interfaces.d directory on UbuntuTim Smith2019-06-081-3/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Remove package install that's in the container nowTim Smith2019-06-081-5/+0
| | | | | | This should speed things up a bit Signed-off-by: Tim Smith <tsmith@chef.io>
* Add tests for CentOS & SUSETim Smith2019-06-083-46/+26
| | | | | | Cross your fingers Signed-off-by: Tim Smith <tsmith@chef.io>
* Enable All BK verification testsJaymala Sinha2019-06-043-0/+82
| | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* Add more verification testsJaymala Sinha2019-04-121-1/+0
| | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io>
* Add Verification tests in Buildkitejsinha/migrate_verify_bkJaymala Sinha2019-04-111-0/+10
| | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io>