IBM-Swift / swift-buildpack

IBM Cloud buildpack for Swift
BSD 3-Clause "New" or "Revised" License
32 stars 31 forks source link

Add support for user specified env vars #116

Closed gee4vee closed 5 years ago

gee4vee commented 5 years ago

@helenmasters Since your forked repository PR won't work with the Travis build, I've moved your changes to this PR so we can properly test it.

Adding support for issue #113. WIP as if this approach is agreed on we will also need to add this to the README.

The current suggested approach is to have a file called: .build_env which would contain a list of env variables to be set, where each environment variable to be set would be on a separate line e.g: KITURA_NIO=1 FOO=bar these would then be exported by the script to be available when the swift build and swift package resolve commands get executed.

gee4vee commented 5 years ago

@helenmasters While I test this, please let me know what changes are needed for the readme.