Mobile DevOps 101 demo - using iOS (swift) project.
What is mobile development?
From nothing to having a base project with CI/CD configured.
- Create new Xcode project using Swift
- Enable storyboard
- Enable Unit and UI tests
- Run the app:
Cmd+r
- Add a label in Storyboard
- Run the app - show that it won't stay in the middle (rotate device)
- Add constraints in storyboard
- Run the app again - label remains in the center
- Add a simple unit test:
func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. let five = 5 XCTAssertEqual(five, 5, "Five = 5 ?") }
- Run the test:
Cmd+u
- Change the test to fail and run it again, show how it looks like when it fails
- Show how UI Test recording works
- Create git repository on GitHub
- Register the freshly created github repository on Bitrise and run the tests.
- Also setup a deployment.