summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaymala Sinha <jsinha@chef.io>2019-10-10 14:51:02 -0400
committerJaymala Sinha <jsinha@chef.io>2019-10-10 15:14:57 -0400
commit5460919d0313a53c8eb36aa7c98c9c87431f89ba (patch)
treecfe022082b127fa4e7d16d3ece4324bb570e3e0b
parent95ee05bb6dca6788ecd6d3663e15a442abfe40ba (diff)
downloadffi-yajl-5460919d0313a53c8eb36aa7c98c9c87431f89ba.tar.gz
Fix verification tests
Signed-off-by: Jaymala Sinha <jsinha@chef.io>
-rw-r--r--.expeditor/buildkite/verify.ps16
-rw-r--r--.expeditor/config.yml3
-rw-r--r--.expeditor/verify.pipeline.yml36
-rw-r--r--Gemfile5
4 files changed, 42 insertions, 8 deletions
diff --git a/.expeditor/buildkite/verify.ps1 b/.expeditor/buildkite/verify.ps1
index cb4e5c8..4e94454 100644
--- a/.expeditor/buildkite/verify.ps1
+++ b/.expeditor/buildkite/verify.ps1
@@ -4,7 +4,7 @@ Get-CimInstance Win32_OperatingSystem | Select-Object $Properties | Format-Table
# Set-Item -Path Env:Path -Value ($Env:Path + ";C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin")
$Env:Path="C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\ruby26\bin;C:\ci-studio-common\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Users\ContainerAdministrator\AppData\Local\Microsoft\WindowsApps;C:\Go\bin;C:\Users\ContainerAdministrator\go\bin"
-
+$Env:RUBY_PLATFORM="windows"
ruby -v
bundle --version
@@ -16,8 +16,10 @@ bundle install --jobs=7 --retry=3 --without docs debug
echo "--- bundle env"
bundle env
-echo "+++ bundle exec rake"
+echo "+++ bundle exec rake compile"
bundle exec rake compile
+
+echo "+++ bundle exec rake compile"
bundle exec rake spec
exit $LASTEXITCODE \ No newline at end of file
diff --git a/.expeditor/config.yml b/.expeditor/config.yml
index ac559df..ae7f111 100644
--- a/.expeditor/config.yml
+++ b/.expeditor/config.yml
@@ -7,6 +7,7 @@ slack:
# This publish is triggered by the `built_in:publish_rubygems` artifact_action.
rubygems:
- ffi-yajl
+ - ffi-yajl-universla-java
github:
# This deletes the GitHub PR branch after successfully merged into the release branch
@@ -44,4 +45,4 @@ promote:
pipelines:
- verify:
description: Pull Request validation tests
- public: true
+ public: true \ No newline at end of file
diff --git a/.expeditor/verify.pipeline.yml b/.expeditor/verify.pipeline.yml
index 825e2a1..8237b99 100644
--- a/.expeditor/verify.pipeline.yml
+++ b/.expeditor/verify.pipeline.yml
@@ -1,31 +1,54 @@
steps:
-- label: run-lint-and-specs-ruby-2.4
+- label: ":ruby: 2.4"
command:
+ - ruby --version
+ - bundle --version
+ - gem update --system
- bundle install --jobs=7 --retry=3 --without docs development
- bundle exec rake
expeditor:
executor:
docker:
- image: ruby:2.4-stretch
- privileged: true
+ image: ruby:2.4
environment:
- BUNDLE_GEMFILE=/workdir/Gemfile
-- label: run-lint-and-specs-ruby-2.6
+- label: ":ruby: 2.5"
command:
+ - ruby --version
+ - bundle --version
+ - gem update --system
- bundle install --jobs=7 --retry=3 --without docs development
- bundle exec rake
expeditor:
executor:
docker:
- image: ruby:2.6-stretch
+ image: ruby:2.5
+ environment:
+ - BUNDLE_GEMFILE=/workdir/Gemfile
+
+- label: ":ruby: 2.6"
+ command:
+ - ruby --version
+ - bundle --version
+ - gem update --system
+ - bundle install --jobs=7 --retry=3 --without docs development
+ - bundle exec rake
+ expeditor:
+ executor:
+ docker:
+ image: ruby:2.6
privileged: true
environment:
- BUNDLE_GEMFILE=/workdir/Gemfile
- label: run-lint-and-specs-jruby
command:
+ - ruby --version
+ - bundle --version
+ - gem update --system
+ - apt-get update -y && apt-get install -y git
- bundle install --jobs=7 --retry=3 --without docs development
- bundle exec rake
expeditor:
@@ -35,6 +58,7 @@ steps:
privileged: true
environment:
- BUNDLE_GEMFILE=/workdir/Gemfile
+ - RUBY_PLATFORM="jruby"
- label: run-specs-windows
command:
@@ -43,4 +67,6 @@ steps:
executor:
docker:
host_os: windows
+ environment:
+ - RUBY_PLATFORM="windows"
shell: ["powershell", "-Command"]
diff --git a/Gemfile b/Gemfile
index eb1dc6c..d0a7640 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,6 +2,11 @@ source "https://rubygems.org"
gemspec name: "ffi-yajl"
+group :test do
+ gem "rspec"
+ gem "rake-compiler"
+end
+
platforms :rbx do
gem "rubysl", "~> 2.0"
end