Files
spring-shell/e2e/spring-shell-e2e-tests/src/utils.ts
Janne Valkealahti 0899d414de Build linux sample with musl
- Change sample build to use musl on linux
- Optionally remove version from jar so that
  e2e tests don't need to use version in path.
- Add better matrix to e2e so that we're able to
  build on one OS and then test with others.
- Fixes #576
2022-11-30 15:39:10 +00:00

22 lines
1.0 KiB
TypeScript

import * as os from 'os';
import * as path from 'path';
export const tempDir = path.join(__dirname, 'spring-shell', 'temp');
export const isWindows = os.platform() === 'win32';
export const cliPathRelative = isWindows
? '..\\..\\spring-shell-samples\\build\\native\\nativeCompile\\spring-shell-samples.exe'
: '../../spring-shell-samples/build/native/nativeCompile/spring-shell-samples';
export const jarPathRelative = isWindows
? '..\\..\\spring-shell-samples\\build\\libs\\spring-shell-samples.jar'
: '../../spring-shell-samples/build/libs/spring-shell-samples.jar';
export const cliPath = path.resolve(cliPathRelative);
export const jarPath = path.resolve(jarPathRelative);
export const nativeDesc = 'native';
export const jarDesc = 'jar';
export const jarCommand = isWindows ? 'java.exe' : 'java';
export const nativeCommand = cliPath;
export const jarOptions = ['-jar', jarPath];
export const waitForExpectDefaultTimeout = 30000;
export const waitForExpectDefaultInterval = 2000;
export const testTimeout = 120000;