Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update standalone to 1.88.91-rc4 #378

Merged
merged 9 commits into from
Jun 8, 2022
1 change: 0 additions & 1 deletion script/lib/download-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ download_standalone "pact-${STANDALONE_VERSION}-win32.zip" "win32-${S
if [ -z "${ONLY_DOWNLOAD_PACT_FOR_WINDOWS:-}" ]; then
download_standalone "pact-${STANDALONE_VERSION}-osx.tar.gz" "darwin-${STANDALONE_VERSION}.tar.gz"
download_standalone "pact-${STANDALONE_VERSION}-linux-x86_64.tar.gz" "linux-x64-${STANDALONE_VERSION}.tar.gz"
download_standalone "pact-${STANDALONE_VERSION}-linux-x86.tar.gz" "linux-ia32-${STANDALONE_VERSION}.tar.gz"
fi

# Write readme in the ffi folder
Expand Down
4 changes: 2 additions & 2 deletions script/lib/export-binary-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd)" # Figure out where the script is running
PROJECT_DIR="${LIB_DIR}"/../../

export STANDALONE_VERSION=$(grep "PACT_STANDALONE_VERSION = '" "$PROJECT_DIR"/standalone/install.ts | grep -E -o "([0-9][\.0-9]+[0-9])")
export FFI_VERSION=v$(grep "PACT_FFI_VERSION = '" "$PROJECT_DIR"/src/ffi/index.ts | grep -E -o "([0-9][\.0-9]+[0-9])")
export STANDALONE_VERSION=$(grep "PACT_STANDALONE_VERSION = '" "$PROJECT_DIR"/standalone/install.ts | grep -E -o "'(.*)'" | cut -d"'" -f2)
export FFI_VERSION=v$(grep "PACT_FFI_VERSION = '" "$PROJECT_DIR"/src/ffi/index.ts | grep -E -o "'(.*)'" | cut -d"'" -f2)
49 changes: 0 additions & 49 deletions src/pact-standalone.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,55 +87,6 @@ describe('Pact Standalone', function () {
});
});

describe('Linux ia32', () => {
beforeEach(() => (pact = standalone('linux', 'ia32')));

it('broker relative path', () => {
expect(fs.existsSync(path.resolve(basePath, pact.brokerPath))).to.be
.true;
});

it('broker full path', () => {
expect(fs.existsSync(pact.brokerFullPath)).to.be.true;
});

it('mock service relative path', () => {
expect(fs.existsSync(path.resolve(basePath, pact.mockServicePath))).to
.be.true;
});

it('mock service full path', () => {
expect(fs.existsSync(pact.mockServiceFullPath)).to.be.true;
});

it('stub relative path', () => {
expect(fs.existsSync(path.resolve(basePath, pact.stubPath))).to.be
.true;
});

it('stub full path', () => {
expect(fs.existsSync(pact.stubFullPath)).to.be.true;
});

it('provider verifier relative path', () => {
expect(fs.existsSync(path.resolve(basePath, pact.verifierPath))).to.be
.true;
});

it('provider verifier full path', () => {
expect(fs.existsSync(pact.verifierFullPath)).to.be.true;
});

it('pact relative path', () => {
expect(fs.existsSync(path.resolve(basePath, pact.pactPath))).to.be
.true;
});

it('pact full path', () => {
expect(fs.existsSync(pact.pactFullPath)).to.be.true;
});
});

describe('Linux X64', () => {
beforeEach(() => (pact = standalone('linux', 'x64')));

Expand Down
10 changes: 1 addition & 9 deletions standalone/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path = require('path');
import fs = require('fs');

// Get latest version from https://github.com/pact-foundation/pact-ruby-standalone/releases
export const PACT_STANDALONE_VERSION = '1.88.83';
export const PACT_STANDALONE_VERSION = '1.88.91-rc5';
const PACT_DEFAULT_LOCATION = `https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v${PACT_STANDALONE_VERSION}/`;
const HTTP_REGEX = /^http(s?):\/\//;

Expand Down Expand Up @@ -81,14 +81,6 @@ export function createConfig(location: string = process.cwd()): Config {
downloadLocation: PACT_BINARY_LOCATION,
folderName: `linux-x64-${PACT_STANDALONE_VERSION}`,
},
{
platform: 'linux',
arch: 'ia32',
binary: `pact-${PACT_STANDALONE_VERSION}-linux-x86.tar.gz`,
binaryChecksum: `pact-${PACT_STANDALONE_VERSION}-linux-x86.tar.gz${CHECKSUM_SUFFIX}`,
downloadLocation: PACT_BINARY_LOCATION,
folderName: `linux-ia32-${PACT_STANDALONE_VERSION}`,
},
],
};
}
Expand Down