IBM-Swift / swift-buildpack

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

[WIP] Add support for user specified env vars #114

Closed helenmasters closed 5 years ago

helenmasters commented 5 years ago

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 This PR won't work with the Travis PR because it comes from a forked repository. I've opened a new one with your changes: https://github.com/IBM-Swift/swift-buildpack/pull/116