-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker for running linux tests locally
- Loading branch information
Ikhsan Assaat
committed
Oct 2, 2018
1 parent
7f7e41e
commit 51c899a
Showing
8 changed files
with
122 additions
and
21 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,5 @@ | ||
.git/ | ||
.build/ | ||
!.build/checkouts/ | ||
!.build/repositories/ | ||
!.build/workspace-state.json |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
import XCTest | ||
|
||
extension AdhanTests { | ||
static let __allTests = [ | ||
("testCalculationMethods", testCalculationMethods), | ||
("testCurrentPrayer", testCurrentPrayer), | ||
("testMoonsightingMethod", testMoonsightingMethod), | ||
("testMoonsightingMethodHighLat", testMoonsightingMethodHighLat), | ||
("testNextPrayer", testNextPrayer), | ||
("testNightPortion", testNightPortion), | ||
("testOffsets", testOffsets), | ||
("testPrayerTimes", testPrayerTimes), | ||
("testTimeForPrayer", testTimeForPrayer), | ||
] | ||
} | ||
|
||
extension AstronomicalTests { | ||
static let __allTests = [ | ||
("testAltitudeOfCelestialBody", testAltitudeOfCelestialBody), | ||
("testAngleInterpolation", testAngleInterpolation), | ||
("testCalendricalDate", testCalendricalDate), | ||
("testDaysSinceSolstice", testDaysSinceSolstice), | ||
("testInterpolation", testInterpolation), | ||
("testJulianDay", testJulianDay), | ||
("testJulianHours", testJulianHours), | ||
("testLeapYear", testLeapYear), | ||
("testRightAscensionEdgeCase", testRightAscensionEdgeCase), | ||
("testSolarCoordinates", testSolarCoordinates), | ||
("testSolarTime", testSolarTime), | ||
("testTransitAndHourAngle", testTransitAndHourAngle), | ||
] | ||
} | ||
|
||
extension MathTests { | ||
static let __allTests = [ | ||
("testAngleConversion", testAngleConversion), | ||
("testClosestAngle", testClosestAngle), | ||
("testMinuteRounding", testMinuteRounding), | ||
("testNormalizing", testNormalizing), | ||
("testTimeComponents", testTimeComponents), | ||
] | ||
} | ||
|
||
extension QiblaTests { | ||
static let __allTests = [ | ||
("testAsia", testAsia), | ||
("testEurope", testEurope), | ||
("testNorthAmerica", testNorthAmerica), | ||
("testSouthPacific", testSouthPacific), | ||
] | ||
} | ||
|
||
extension SunnahTests { | ||
static let __allTests = [ | ||
("testSunnahTimesDST1", testSunnahTimesDST1), | ||
("testSunnahTimesDST2", testSunnahTimesDST2), | ||
("testSunnahTimesLondon", testSunnahTimesLondon), | ||
("testSunnahTimesNY", testSunnahTimesNY), | ||
("testSunnahTimesOslo", testSunnahTimesOslo), | ||
] | ||
} | ||
|
||
extension TimeTests { | ||
static let __allTests = [ | ||
("testTimes", testTimes), | ||
] | ||
} | ||
|
||
#if !os(macOS) | ||
public func __allTests() -> [XCTestCaseEntry] { | ||
return [ | ||
testCase(AdhanTests.__allTests), | ||
testCase(AstronomicalTests.__allTests), | ||
testCase(MathTests.__allTests), | ||
testCase(QiblaTests.__allTests), | ||
testCase(SunnahTests.__allTests), | ||
testCase(TimeTests.__allTests), | ||
] | ||
} | ||
#endif |
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,9 @@ | ||
FROM swift:4.2 | ||
|
||
WORKDIR /package | ||
|
||
COPY . ./ | ||
|
||
RUN swift package resolve | ||
RUN swift package clean | ||
RUN swift test |
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,8 @@ | ||
import XCTest | ||
|
||
import Tests | ||
|
||
var tests = [XCTestCaseEntry]() | ||
tests += Tests.__allTests() | ||
|
||
XCTMain(tests) |
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