Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ deploy:
all_branches: true
repo: ibm-functions/runtime-swift
- provider: script
script: "./tools/travis/publish.sh ibmfunctions 4.1 master && ./tools/travis/publish.sh ibmfunctions 4.2 master "
script: "./tools/travis/publish.sh ibmfunctions 4.2 master "
on:
branch: master
repo: ibm-functions/runtime-swift
Expand Down
5 changes: 0 additions & 5 deletions ansible/environments/local/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ runtimes_manifest:
name: "nodejs6action"
deprecated: false
swift:
- kind: "swift:4.1"
default: false
image:
name: "action-swift-v4.1"
deprecated: false
- kind: "swift:4.2"
default: true
image:
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include 'tests'

include 'swift4.1'
// include 'swift4.1'
include 'swift4.2'

rootProject.name = 'runtime-swift-ibm'
Expand Down
16 changes: 16 additions & 0 deletions tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ tasks.withType(Test) {

task testWithoutCredentials(type: Test) {
exclude '**/*Credentials*'

// Exclude the swift:4.1 tests as it is deprecated for the blueDeployment.
// Once swift:4.1 is fully removed from this repo, the exclude can also be removed.
exclude '**/*Swift41*'
}

// intended for mainBlueWhisk pipeline
task testBlueCI(type: Test) {
exclude 'runtime/sdk/**'

// Exclude the swift:4.1 tests as it is deprecated for the blueDeployment.
// Once swift:4.1 is fully removed from this repo, the exclude can also be removed.
exclude '**/*Swift41*'
}

task testBlueDeployment(type: Test) {
Expand All @@ -38,10 +46,18 @@ task testBlueDeployment(type: Test) {

task testSDK(type: Test) {
include 'runtime/sdk/**'

// Exclude the swift:4.1 tests as it is deprecated for the blueDeployment.
// Once swift:4.1 is fully removed from this repo, the exclude can also be removed.
exclude '**/*Swift41*'
}

task testWithoutSDK(type: Test) {
exclude 'runtime/sdk/**'

// Exclude the swift:4.1 tests as it is deprecated for the blueDeployment.
// Once swift:4.1 is fully removed from this repo, the exclude can also be removed.
exclude '**/*Swift41*'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ import LanguageTranslatorV3
struct Input: Codable {
let username: String
let password: String
let url: String?
let url: String
}
struct Output: Codable {
let translation: String
}
func main(param: Input, completion: @escaping (Output?, Error?) -> Void) -> Void {
let languageTranslator = LanguageTranslator(username: param.username , password: param.password, version: "2018-09-16")
languageTranslator.serviceURL = param.url
languageTranslator.translate(text: ["Hello"], source: "en", target: "it") { (response, error) in
if let error = error {
print(error)
Expand Down
3 changes: 2 additions & 1 deletion tests/dat/actions/integration/testWatsonActionSDK1.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ func main(args: [String:Any]) -> [String:Any] {
let _whisk_semaphore = DispatchSemaphore(value: 0)
let username = args["username"] as! String
let password = args["password"] as! String
let url = args["url"] as! String
let languageTranslator = LanguageTranslator(username: username, password: password, version: "2018-09-16")

languageTranslator.serviceURL = url

languageTranslator.translate(text: ["Hello"], source: "en", target: "it" ) { (response, error) in
if let error = error {
Expand Down
1 change: 0 additions & 1 deletion tools/travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ docker version
# Build runtime
cd $ROOTDIR
TERM=dumb ./gradlew \
:swift4.1:distDocker \
:swift4.2:distDocker \
-PdockerImagePrefix=${IMAGE_PREFIX}