Skip to content

Commit c782438

Browse files
release => debug
1 parent cda9d41 commit c782438

File tree

3 files changed

+19
-20
lines changed

3 files changed

+19
-20
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ RUN cd Resources/branch_main && swift build -c release --static-swift-stdlib
3232

3333
WORKDIR /staging
3434

35-
RUN cp "$(swift build --package-path /build -c release --show-bin-path)/App" ./
35+
RUN cp "$(swift build --package-path /build -c debug --show-bin-path)/App" ./
3636

37-
RUN find -L "$(swift build --package-path /build -c release --show-bin-path)/" -regex '.*\.resources$' -exec cp -Ra {} ./ \;
37+
RUN find -L "$(swift build --package-path /build -c debug --show-bin-path)/" -regex '.*\.resources$' -exec cp -Ra {} ./ \;
3838

3939
RUN [ -d /build/Public ] && { mv /build/Public ./Public && chmod -R a-w ./Public; } || true
4040
RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w ./Resources; } || true

Resources/branch_release-5.9/Tests/Tests/Tests.swift

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,22 @@ final class AppTests: XCTestCase {
1010
)
1111

1212
let decoder = JSONDecoder()
13-
print(response.syntaxHTML)
14-
15-
// XCTAssertEqual(
16-
// try decoder.decode([TreeNode].self, from: Data(response.syntaxJSON.utf8)),
17-
// try decoder.decode(
18-
// [TreeNode].self, from: Data(
19-
// contentsOf: Bundle.module.url(forResource: "test-1-1.json", withExtension: nil)!
20-
// )
21-
// )
22-
// )
23-
// XCTAssertEqual(
24-
// response.syntaxHTML,
25-
// try String(
26-
// contentsOf: Bundle.module.url(forResource: "test-1-1.html", withExtension: nil)!
27-
// )
28-
// .replacingOccurrences(of: "\n", with: "")
29-
// )
13+
14+
XCTAssertEqual(
15+
try decoder.decode([TreeNode].self, from: Data(response.syntaxJSON.utf8)),
16+
try decoder.decode(
17+
[TreeNode].self, from: Data(
18+
contentsOf: Bundle.module.url(forResource: "test-1-1.json", withExtension: nil)!
19+
)
20+
)
21+
)
22+
XCTAssertEqual(
23+
response.syntaxHTML,
24+
try String(
25+
contentsOf: Bundle.module.url(forResource: "test-1-1.html", withExtension: nil)!
26+
)
27+
.replacingOccurrences(of: "\n", with: "")
28+
)
3029
}
3130

3231
func testParser2() throws {

Sources/App/routes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func routes(_ app: Application) throws {
6464
environment: [
6565
"NSUnbufferedIO": "YES",
6666
],
67-
workingDirectory: try! AbsolutePath.init(validating: "\(app.directory.resourcesDirectory)\(branch)/.build/release/")
67+
workingDirectory: try! AbsolutePath.init(validating: "\(app.directory.resourcesDirectory)\(branch)/.build/debug/")
6868
)
6969

7070
try process.launch()

0 commit comments

Comments
 (0)