Skip to content

Commit

Permalink
feat: add new runtimes (#1464)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk authored Jun 1, 2022
1 parent db95dc6 commit 3ae08c4
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 165 deletions.
20 changes: 5 additions & 15 deletions src/config/supportedRuntimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,36 @@

// .NET CORE
export const supportedDotnetcore = new Set([
// deprecated
// 'dotnetcore1.0',
// 'dotnetcore2.0',
// supported
// 'dotnetcore2.1'
// 'dotnet6',
// 'dotnetcore3.1',
])

// GO
export const supportedGo = new Set(['go1.x'])

// JAVA
export const supportedJava = new Set(['java8', 'java11'])
export const supportedJava = new Set(['java8', 'java8.al2', 'java11'])

// NODE.JS
export const supportedNodejs = new Set([
// deprecated, but still working
'nodejs4.3',
'nodejs6.10',
'nodejs8.10',
// supported
'nodejs10.x',
'nodejs12.x',
'nodejs14.x',
'nodejs16.x',
])

// PROVIDED
export const supportedProvided = new Set(['provided'])
export const supportedProvided = new Set(['provided', 'provided.al2'])

// PYTHON
export const supportedPython = new Set([
'python2.7',
'python3.6',
'python3.7',
'python3.8',
'python3.9',
])

// RUBY
export const supportedRuby = new Set(['ruby2.5', 'ruby2.7'])
export const supportedRuby = new Set(['ruby2.7'])

// deprecated runtimes
// https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html
Expand Down
8 changes: 2 additions & 6 deletions tests/_setupTeardown/npmInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
detectExecutable,
} from '../../src/utils/index.js'

const executables = ['java', 'python2', 'python3', 'ruby']
const executables = ['java', 'python3', 'ruby']

const testFolders = [
'../integration/docker/access-host/src',
Expand Down Expand Up @@ -36,7 +36,7 @@ function installNpmModules(dirPath) {
}

export default async function npmInstall() {
const [python2, python3, ruby, java] = await promiseMap(
const [java, python3, ruby] = await promiseMap(
executables,
(executable) =>
executable === 'java'
Expand Down Expand Up @@ -66,10 +66,6 @@ export default async function npmInstall() {
env.JAVA_DETECTED = true
}

if (python2) {
env.PYTHON2_DETECTED = true
}

if (python3) {
env.PYTHON3_DETECTED = true
}
Expand Down
39 changes: 0 additions & 39 deletions tests/integration/docker/python/python2.7/dockerPython2.7.test.js

This file was deleted.

11 changes: 0 additions & 11 deletions tests/integration/docker/python/python2.7/handler.py

This file was deleted.

24 changes: 0 additions & 24 deletions tests/integration/docker/python/python2.7/serverless.yml

This file was deleted.

11 changes: 0 additions & 11 deletions tests/integration/python/python2/handler.py

This file was deleted.

39 changes: 0 additions & 39 deletions tests/integration/python/python2/python2.test.js

This file was deleted.

20 changes: 0 additions & 20 deletions tests/integration/python/python2/serverless.yml

This file was deleted.

0 comments on commit 3ae08c4

Please sign in to comment.