1
0
Fork 0
mirror of synced 2024-06-11 15:24:45 +12:00

fix: cloud functions environment

This commit is contained in:
Torsten Dittmann 2021-04-19 12:31:40 +02:00
parent f102e43704
commit dd5d5f59e0
2 changed files with 9 additions and 4 deletions

View file

@ -95,7 +95,7 @@ $environments = [
'image' => 'appwrite/env-deno-1.5:1.0.0',
'build' => '/usr/src/code/docker/environments/deno-1.5',
'logo' => 'deno.png',
'supports' => [System::X86],
'supports' => [System::X86, System::PPC, System::ARM],
],
'deno-1.6' => [
'name' => 'Deno',
@ -104,7 +104,7 @@ $environments = [
'image' => 'appwrite/env-deno-1.6:1.0.0',
'build' => '/usr/src/code/docker/environments/deno-1.6',
'logo' => 'deno.png',
'supports' => [System::X86],
'supports' => [System::X86, System::PPC, System::ARM],
],
'deno-1.8' => [
'name' => 'Deno',
@ -113,7 +113,7 @@ $environments = [
'image' => 'appwrite/env-deno-1.8:1.0.0',
'build' => '/usr/src/code/docker/environments/deno-1.8',
'logo' => 'deno.png',
'supports' => [System::X86, System::PPC, System::ARM],
'supports' => [System::X86],
],
'dart-2.10' => [
'name' => 'Dart',

View file

@ -518,6 +518,11 @@ class FunctionsCustomServerTest extends Scope
'command' => 'deno run --allow-env index.ts',
'timeout' => 15,
],
'deno-1.8' => [
'code' => $functionsDir.'/deno.tar.gz',
'command' => 'deno run --allow-env index.ts',
'timeout' => 15,
],
'dart-2.10' => [
'code' => $functionsDir.'/dart.tar.gz',
'command' => 'dart main.dart',
@ -539,7 +544,7 @@ class FunctionsCustomServerTest extends Scope
'timeout' => 15,
]
];
foreach ($envs as $key => $env) {
$envs[$key] = array_merge($env, $functions[$key]);
}