Skip to content

Commit

Permalink
aibika test
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F authored Mar 17, 2024
1 parent fa67bac commit 259d9a7
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion packaging/pact-broker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
2 changes: 1 addition & 1 deletion packaging/pact-message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
4 changes: 2 additions & 2 deletions packaging/pact-mock-service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Pact::MockService::CLI.start unless defined?(Ocran)
Pact::MockService::CLI.start unless defined?(Aibika)
2 changes: 1 addition & 1 deletion packaging/pact-provider-verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
2 changes: 1 addition & 1 deletion packaging/pact-stub-service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
2 changes: 1 addition & 1 deletion packaging/pact.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
2 changes: 1 addition & 1 deletion packaging/pactflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def basename

# Ocran will allow use to include our own cert file at packaging time
# this points to the CA cert bundle take from traveling-ruby
if (ENV['OCRAN_EXECUTABLE'] || ENV['OCRAN_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
if (ENV['AIBIKA_EXECUTABLE'] || ENV['AIBIKA_EXECUTABLE'] != '') && ENV['SSL_CERT_FILE'].nil?
ENV['SSL_CERT_FILE'] = File.join(File.dirname($0), 'ca-bundle.crt')
end

Expand Down
16 changes: 8 additions & 8 deletions script/package-with-ocra.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash -e
set -e

gem install ocran
gem install aibika
mkdir -p pkg
cd packaging
unset GEM_HOME
bundle install

ocran pact-broker-app.rb config.ru ca-bundle.crt config \
aibika pact-broker-app.rb config.ru ca-bundle.crt config \
--verbose \
--output pact-broker-app.exe \
--gem-all \
Expand All @@ -22,7 +22,7 @@ ocran pact-broker-app.rb config.ru ca-bundle.crt config \
--chdir-first
gzip -c pact-broker-app.exe > ../pkg/pact-broker-app.exe.gz

ocran pact-broker.rb ca-bundle.crt --verbose --output pact-broker-cli.exe \
aibika pact-broker.rb ca-bundle.crt --verbose --output pact-broker-cli.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand All @@ -32,7 +32,7 @@ ocran pact-broker.rb ca-bundle.crt --verbose --output pact-broker-cli.exe \
--dll ruby_builtin_dlls/libcrypto-3-x64.dll

gzip -c pact-broker-cli.exe > ../pkg/pact-broker-cli.exe.gz
ocran pact.rb ca-bundle.crt --verbose --output pact-cli.exe \
aibika pact.rb ca-bundle.crt --verbose --output pact-cli.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand All @@ -42,7 +42,7 @@ ocran pact.rb ca-bundle.crt --verbose --output pact-cli.exe \
--dll ruby_builtin_dlls/libcrypto-3-x64.dll
gzip -c pact-cli.exe > ../pkg/pact-cli.exe.gz

ocran pact-message.rb ca-bundle.crt --verbose --output pact-message.exe \
aibika pact-message.rb ca-bundle.crt --verbose --output pact-message.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand All @@ -52,7 +52,7 @@ ocran pact-message.rb ca-bundle.crt --verbose --output pact-message.exe \
--dll ruby_builtin_dlls/libcrypto-3-x64.dll
gzip -c pact-message.exe > ../pkg/pact-message.exe.gz

ocran pact-mock-service.rb ca-bundle.crt --verbose --output pact-mock-service.exe \
aibika pact-mock-service.rb ca-bundle.crt --verbose --output pact-mock-service.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand All @@ -62,7 +62,7 @@ ocran pact-mock-service.rb ca-bundle.crt --verbose --output pact-mock-service.ex
--dll ruby_builtin_dlls/libcrypto-3-x64.dll
gzip -c pact-mock-service.exe > ../pkg/pact-mock-service.exe.gz

ocran pact-provider-verifier.rb ca-bundle.crt --verbose --output pact-provider-verifier.exe \
aibika pact-provider-verifier.rb ca-bundle.crt --verbose --output pact-provider-verifier.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand All @@ -72,7 +72,7 @@ ocran pact-provider-verifier.rb ca-bundle.crt --verbose --output pact-provider-v
--dll ruby_builtin_dlls/libcrypto-3-x64.dll
gzip -c pact-provider-verifier.exe > ../pkg/pact-provider-verifier.exe.gz

ocran pact-stub-service.rb ca-bundle.crt --verbose --output pact-stub-service.exe \
aibika pact-stub-service.rb ca-bundle.crt --verbose --output pact-stub-service.exe \
--gem-all \
--add-all-core \
--dll ruby_builtin_dlls/zlib1.dll \
Expand Down

0 comments on commit 259d9a7

Please sign in to comment.