This repository was archived by the owner on Apr 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +24
-32
lines changed Expand file tree Collapse file tree 7 files changed +24
-32
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: 2
2
2
jobs :
3
3
MacOS :
4
4
macos :
5
- xcode : " 9.0"
5
+ xcode : " 9.3. 0"
6
6
steps :
7
7
- checkout
8
8
- restore_cache :
14
14
brew tap vapor/homebrew-tap
15
15
brew install cmysql
16
16
brew install ctls
17
+ brew install libressl
17
18
- run :
18
19
name : Build and Run Tests
19
20
no_output_timeout : 1800
30
31
- .build
31
32
Linux :
32
33
docker :
33
- - image : brettrtoomey /vapor-ci:0.0 .1
34
+ - image : nodesvapor /vapor-ci:swift-4 .1
34
35
steps :
35
36
- checkout
36
37
- restore_cache :
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ included:
2
2
- Sources
3
3
function_body_length :
4
4
warning : 60
5
- variable_name :
5
+ identifier_name :
6
6
min_length :
7
7
warning : 2
8
- line_length : 80
8
+ line_length : 100
9
9
disabled_rules :
10
10
- opening_brace
11
11
colon :
Original file line number Diff line number Diff line change 1
1
# Sugar 🍬
2
- [ ![ Swift Version] ( https://img.shields.io/badge/Swift-3 -brightgreen.svg )] ( http://swift.org )
3
- [ ![ Vapor Version] ( https://img.shields.io/badge/Vapor-2-F6CBCA .svg )] ( http://vapor.codes )
2
+ [ ![ Swift Version] ( https://img.shields.io/badge/Swift-4.1 -brightgreen.svg )] ( http://swift.org )
3
+ [ ![ Vapor Version] ( https://img.shields.io/badge/Vapor-3-30B6FC .svg )] ( http://vapor.codes )
4
4
[ ![ Circle CI] ( https://circleci.com/gh/nodes-vapor/sugar/tree/master.svg?style=shield )] ( https://circleci.com/gh/nodes-vapor/sugar )
5
5
[ ![ codebeat badge] ( https://codebeat.co/badges/54770476-a759-47f8-9372-1009267a56e0 )] ( https://codebeat.co/projects/github-com-nodes-vapor-sugar-master )
6
6
[ ![ codecov] ( https://codecov.io/gh/nodes-vapor/sugar/branch/master/graph/badge.svg )] ( https://codecov.io/gh/nodes-vapor/sugar )
13
13
Update your ` Package.swift ` file.
14
14
15
15
``` swift
16
- . Package ( url : " https://github.com/nodes-vapor/sugar.git " , majorVersion : 1 )
16
+ TODO
17
17
```
18
18
19
19
Original file line number Diff line number Diff line change
1
+ import Fluent
2
+ import Vapor
3
+
1
4
public extension Model where Database: QuerySupporting {
2
5
public static func requireFind(
3
6
_ id: ID ,
Original file line number Diff line number Diff line change 1
1
import XCTest
2
+ @testable import SugarTests
2
3
3
- import SugarTests
4
-
5
- var tests = [ XCTestCaseEntry] ( )
6
- tests += SugarTests . allTests ( )
7
- XCTMain ( tests)
4
+ XCTMain ( [
5
+ testCase ( SugarTests . allTests) ,
6
+ ] )
Original file line number Diff line number Diff line change 1
1
import XCTest
2
2
@testable import Sugar
3
3
4
- final class SugarTests : XCTestCase {
5
- func testExample( ) {
6
- // This is an example of a functional test case.
7
- // Use XCTAssert and related functions to verify your tests produce the correct
8
- // results.
9
- XCTAssertEqual ( Sugar ( ) . text, " Hello, World! " )
4
+ class SugarTests : XCTestCase {
5
+ func testExample( ) throws {
6
+ XCTAssertTrue ( true )
10
7
}
11
8
12
-
13
- static var allTests = [
14
- ( " testExample " , testExample) ,
15
- ]
16
- }
9
+ static var allTests : [ ( String , ( SugarTests ) -> ( ) throws -> Void ) ] {
10
+ return [
11
+ ( " testExample " , testExample) ,
12
+ ]
13
+ }
14
+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments