-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand list of reserved objc keywords to cover most conflicting case (#…
…79) * Expand list of reserved objc keywords to cover most conflicting cases. This is an incomplete list and will likely have more additions in the future. * Update repository to Swift 4 * Add initial docker compose configuration and pipeline settings * Integrate linux buildkite steps in plank
- Loading branch information
1 parent
3fc1bea
commit c5ed50a
Showing
29 changed files
with
250 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
steps: | ||
- name: ":docker: Build base image with sources" | ||
plugins: | ||
docker-compose#v1.5.0: | ||
build: app | ||
image-repository: buildkite-registry.pinadmin.com/registry | ||
volumes: | ||
- ".:/app/mnt/buildkite-builds/volumes" | ||
config: docker-compose.yml | ||
agents: | ||
queue: pinboard-ios | ||
- wait: ~ | ||
- name: "Build :iphone: :airplane:" | ||
command: "swift build" | ||
timeout_in_minutes: 30 | ||
agents: | ||
queue: pinboard-ios | ||
plugins: | ||
docker-compose#v1.5.0: | ||
run: app | ||
config: docker-compose.yml | ||
- name: "Test :iphone: :airplane:" | ||
command: "swift test" | ||
timeout_in_minutes: 30 | ||
agents: | ||
queue: pinboard-ios | ||
plugins: | ||
docker-compose#v1.5.0: | ||
run: app | ||
config: docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# Only run pipeline uploads in buildkite environments | ||
if [[ ! -z ${BUILDKITE} ]]; then | ||
buildkite-agent pipeline upload .buildkite/plank-pipeline.yml | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.1 | ||
4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
# Base image from Swiftenv with Swift version 3.0.2 | ||
|
||
FROM kylef/swiftenv:latest | ||
# Base image from SwiftDocker | ||
# https://hub.docker.com/r/swiftdocker/swift/ | ||
FROM swiftdocker/swift | ||
MAINTAINER Pinterest | ||
RUN swiftenv install 3.1 | ||
|
||
# Vim config so we have an editor available | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
vim clang libicu-dev libcurl4-openssl-dev libssl-dev | ||
|
||
# Install plank | ||
COPY . /usr/local/plank | ||
RUN cd /usr/local/plank && swift build -c release | ||
|
||
ENV plank_HOME /usr/local/plank | ||
ENV PATH ${plank_HOME}/.build/release:${PATH} | ||
|
||
# Uncomment to make `plank` the default action of `docker run [image_name]` | ||
#ENTRYPOINT ["plank"] | ||
#CMD ["help"] | ||
# Copy plank sources | ||
WORKDIR /plank | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Objc" | ||
name: "Objective_C" | ||
) | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 4 additions & 3 deletions
7
...les/Cocoa/Tests/ObjcTests/ObjcTests.swift → ...oa/Tests/Objective_CTests/ObjcTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
#!/bin/sh | ||
|
||
set -euo pipefail | ||
|
||
# Generate Objective-C files | ||
JSON_FILES=`ls -d Examples/PDK/*.json` | ||
|
||
# Generate Objective-C models | ||
.build/debug/plank --output_dir=Examples/Cocoa/Sources/objc/ $JSON_FILES | ||
.build/debug/plank --output_dir=Examples/Cocoa/Sources/Objective_C/ $JSON_FILES | ||
|
||
# Generate flow types for models | ||
.build/debug/plank --lang flow --output_dir=Examples/JS/flow/ $JSON_FILES | ||
|
||
ROOT_DIR="${PWD}" | ||
|
||
# Verify flow types | ||
if [ -x "$(command -v flow)" ]; then | ||
pushd Examples/JS/flow | ||
cd Examples/JS/flow | ||
flow | ||
popd | ||
cd "${ROOT_DIR}" | ||
fi | ||
|
||
# Move headers in the right place for the Swift PM | ||
mv Examples/Cocoa/Sources/objc/*.h Examples/Cocoa/Sources/objc/include | ||
mv Examples/Cocoa/Sources/Objective_C/*.h Examples/Cocoa/Sources/Objective_C/include | ||
|
||
# Build the ObjC library | ||
pushd Examples/Cocoa | ||
swift build | ||
swift test | ||
popd | ||
cd Examples/Cocoa | ||
xcrun swift package clean | ||
xcrun swift build | ||
xcrun swift test | ||
cd "${ROOT_DIR}" |
Oops, something went wrong.