Skip to content

Commit

Permalink
Update 'Create A Library' page...
Browse files Browse the repository at this point in the history
with a new swiftenv install script.
  • Loading branch information
jeffh committed Mar 15, 2016
1 parent 0e4f5df commit eef564a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions Documentation/en-US/CreateALibrary.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ that your library is applicable to the most platforms. Feel free to skip parts
that do not apply to your library because of dependencies it needs.

- Code Changes
- Make sure you mark your API code as `public`.
- Make sure you mark your API code as `public`.
- Make sure you have a `LICENSE` file.
- Create Frameworks in Xcode
- Make sure its scheme is "shared"
- Make sure all frameworks have the same PRODUCT_MODULE_NAME build setting
Expand Down Expand Up @@ -67,7 +68,7 @@ let package = Package(
)
```

A `.travis.yml` file with Swift Linux + OS X Swift:
A `.travis.yml` file with Swift Linux + OS X Swift + OS X Xcode:

```yaml
osx_image: xcode7.2
Expand All @@ -76,14 +77,14 @@ matrix:
include:
- os: osx
env: TYPE=xcode
- os: osx
env: TYPE=spm
- os: linux
dist: trusty
sudo: required
env: TYPE=spm
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then curl -sL https://gist.github.com/kylef/5c0475ff02b7c7671d2a/raw/621ef9b29bbb852fdfd2e10ed147b321d792c1e4/swiftenv-install.sh | bash; fi
install: if [[ "$TYPE" == "spm" ]]; then eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/02090c7ede5a637b76e6df1710e83cd0bbe7dcdf/swiftenv-install.sh)"; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then . ~/.swiftenv/init; fi
- ./run-tests $TYPE # test script can dispatch to correct test commands to run
```
Expand Down
4 changes: 2 additions & 2 deletions Documentation/en-US/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Table of Contents

## Contributing

Feel free to submit pull requests that translates or adds new documentation for
specific parts of creating libraries.
Feel free to submit pull requests that translates or adds new documentation
about creating libraries.

0 comments on commit eef564a

Please sign in to comment.