Skip to content

Updating Swift cfenv

rolivieri edited this page Jul 27, 2016 · 12 revisions

Whenever updates are made to the Swift-cfenv package, please make sure you also update the swift-helloworld repo, which can be found at: https://github.com/IBM-Bluemix/swift-helloworld.

We keep the master branches for these two repos (i.e. Swift-cfenv and swift-helloworld) compatible with the latest Swift version supported by the Swift buildpack currently installed on Bluemix. Now, the develop branches for these two repos may be compatible with a newer version of the Swift binaries. The following table captures this:

Swift-cfenv swift-helloworld Version Comment
master master Compatible with the Swift version supported by the Swift buildpack installed on Bluemix Should be compatible with each other
develop develop Compatible with a newer Swift version than version supported by master Should be compatible with each other

Please note that both repos are setup for continuous integration using Travis CI.

When you make changes to the repos, please use your own branch to test your changes before putting them into the develop branch. You can follow the following steps to create your own branch:

$ git checkout develop
$ git pull

This makes sure you have the latest changes from the develop branch.

$ git checkout -b {your branch name}
$ git push --set-upstream origin {your branch name}

This creates your branch on GitHub.

Update the .travis.yml file to enable building your branch:

-- branches:
--  only:
--    - master
--    - develop
--    - {your branch}

Commit your changes to the .travis.yml file:

$ git add .travis.yml
$ git commit -m "Your comment here"
$ git push

That will commit your changes locally and push them up to GitHub for the Travis CI build to pick up. To check on the Travis CI build, go to the following URL:

You should see your branch there and you can checkout the status of the build.

Clone this wiki locally