mirror of
https://github.com/fluxerapp/fluxer.git
synced 2026-09-02 21:04:06 +03:00
test: remove infrastructure-dependent integration suites (#1573)
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
FROM fluxer-dev-workspace:latest
|
||||
|
||||
ARG HANDOFF_IMAGE_VERSION=v1
|
||||
ENV HANDOFF_IMAGE_VERSION=${HANDOFF_IMAGE_VERSION}
|
||||
|
||||
USER vscode
|
||||
WORKDIR /workspaces/fluxer/fluxer_gateway
|
||||
|
||||
COPY --chown=vscode:vscode _build/test/lib/fluxer_gateway/ebin /workspaces/fluxer/fluxer_gateway/_build/test/lib/fluxer_gateway/ebin
|
||||
@@ -1,22 +0,0 @@
|
||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
FROM fluxer-dev-workspace:latest
|
||||
|
||||
USER vscode
|
||||
WORKDIR /workspaces/fluxer
|
||||
|
||||
COPY --chown=vscode:vscode fluxer_gateway/rebar.config fluxer_gateway/rebar.lock /workspaces/fluxer/fluxer_gateway/
|
||||
|
||||
ENV GIT_CONFIG_GLOBAL=/dev/null
|
||||
|
||||
RUN cd fluxer_gateway && rebar3 as test compile --deps_only
|
||||
|
||||
COPY --chown=vscode:vscode . /workspaces/fluxer
|
||||
|
||||
RUN cd fluxer_gateway && \
|
||||
rebar3 as test compile && \
|
||||
erlc \
|
||||
-I include \
|
||||
-o _build/test/lib/fluxer_gateway/ebin \
|
||||
test/gateway_hotpatch_k8s_smoke.erl
|
||||
|
||||
WORKDIR /workspaces/fluxer/fluxer_gateway
|
||||
@@ -19,7 +19,6 @@ function usage(exitCode = 0) {
|
||||
pnpm remote pull <host> [--branch <branch>]
|
||||
pnpm remote run <host> -- <command>
|
||||
pnpm remote apply-diff <host> [-- <path>...]
|
||||
pnpm remote test-webrtc <host>
|
||||
pnpm remote tunnel start|status|stop <host>
|
||||
pnpm remote macos-setup [--pubkey ~/.ssh/id_ed25519.pub]
|
||||
|
||||
@@ -262,18 +261,6 @@ function pullCommand(host, branch) {
|
||||
].join(' && ');
|
||||
}
|
||||
|
||||
function testWebrtcCommand(host) {
|
||||
const commands = [
|
||||
'corepack enable',
|
||||
'pnpm install',
|
||||
'pnpm --dir fluxer_desktop/native/webrtc-sender test',
|
||||
'pnpm --dir fluxer_desktop typecheck',
|
||||
'pnpm --dir fluxer_desktop build',
|
||||
`node -e "const m=require('./fluxer_desktop/node_modules/@fluxer/webrtc-sender'); console.log(JSON.stringify({supported:m.isSupported?.(), hasVoiceEngine:typeof m.VoiceEngine==='function', loadError:m.loadError?String(m.loadError):null}))"`,
|
||||
];
|
||||
return host.platform === 'windows' ? commands.join('; ') : commands.join(' && ');
|
||||
}
|
||||
|
||||
function macosSetup(args) {
|
||||
const pubkeyPath = path.resolve(expandHome(optionValue(args, '--pubkey', '~/.ssh/id_ed25519.pub')));
|
||||
const pubkey = existsSync(pubkeyPath) ? readFileSync(pubkeyPath, 'utf8').trim() : '<paste-your-public-ssh-key-here>';
|
||||
@@ -351,12 +338,6 @@ switch (command) {
|
||||
sshWithInput(name, host, 'git apply --whitespace=nowarn -', diff, options);
|
||||
break;
|
||||
}
|
||||
case 'test-webrtc': {
|
||||
const name = args[1] ?? fail('test-webrtc needs a host');
|
||||
const host = getHost(config, name);
|
||||
ssh(name, host, testWebrtcCommand(host), options);
|
||||
break;
|
||||
}
|
||||
case 'tunnel': {
|
||||
const action = args[1] ?? fail('tunnel needs start|status|stop');
|
||||
const name = args[2] ?? fail('tunnel needs a host');
|
||||
|
||||
Reference in New Issue
Block a user