This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
391 additions
and
129 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,65 @@ | ||
version: 2 | ||
jobs: | ||
MacOS: | ||
macos: | ||
xcode: "9.0" | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v1-spm-deps-{{ checksum "Package.swift" }} | ||
- run: | ||
name: Install CMySQL and CTLS | ||
command: | | ||
brew tap vapor/homebrew-tap | ||
brew install cmysql | ||
brew install ctls | ||
- run: | ||
name: Build and Run Tests | ||
no_output_timeout: 1800 | ||
command: | | ||
swift package generate-xcodeproj --enable-code-coverage | ||
xcodebuild -scheme AWS-Package -enableCodeCoverage YES test | xcpretty | ||
- run: | ||
name: Report coverage to Codecov | ||
command: | | ||
bash <(curl -s https://codecov.io/bash) | ||
- save_cache: | ||
key: v1-spm-deps-{{ checksum "Package.swift" }} | ||
paths: | ||
- .build | ||
Linux: | ||
docker: | ||
- image: brettrtoomey/vapor-ci:0.0.1 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v2-spm-deps-{{ checksum "Package.swift" }} | ||
- run: | ||
name: Copy Package file | ||
command: cp Package.swift res | ||
- run: | ||
name: Build and Run Tests | ||
no_output_timeout: 1800 | ||
command: | | ||
swift test -Xswiftc -DNOJSON | ||
- run: | ||
name: Restoring Package file | ||
command: mv res Package.swift | ||
- save_cache: | ||
key: v2-spm-deps-{{ checksum "Package.swift" }} | ||
paths: | ||
- .build | ||
workflows: | ||
version: 2 | ||
build-and-test: | ||
jobs: | ||
- MacOS | ||
- Linux | ||
experimental: | ||
notify: | ||
branches: | ||
only: | ||
- master | ||
- develop |
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,2 @@ | ||
Public/** | ||
Resources/Assets/** |
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,12 @@ | ||
included: | ||
- Sources | ||
function_body_length: | ||
warning: 60 | ||
variable_name: | ||
min_length: | ||
warning: 2 | ||
line_length: 80 | ||
disabled_rules: | ||
- opening_brace | ||
colon: | ||
flexible_right_spacing: true |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// swift-tools-version:4.0 | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "AWS", | ||
products: [ | ||
.library(name: "AWS", targets: ["AWS"]), | ||
.library(name: "VaporS3", targets: ["VaporS3"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/vapor/vapor.git", from: "2.2.0"), | ||
.package(url: "https://github.com/drmohundro/SWXMLHash", from: "4.1.1"), | ||
], | ||
targets: [ | ||
.target(name: "AWS", dependencies: ["AutoScaling", "EC2", "S3"]), | ||
.target(name: "AutoScaling", dependencies: ["AWSSignatureV4", "SWXMLHash"]), | ||
.target(name: "AWSSignatureV4", dependencies: ["Vapor"]), | ||
.target(name: "EC2", dependencies: ["AWSSignatureV4"]), | ||
.target(name: "S3", dependencies: ["AWSSignatureV4"]), | ||
.target(name: "VaporS3", dependencies: ["S3"]), | ||
.testTarget(name: "AWSTests", dependencies: ["AWS"]), | ||
] | ||
) |
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
Oops, something went wrong.