This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into project-det
- Loading branch information
Showing
19 changed files
with
168 additions
and
57 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
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
``` | ||
- [ ] I have run `rspec` and corrected all errors | ||
- [ ] I have run `rubocop` and corrected all errors | ||
- [ ] I have run `npm run test` and corrected all errors | ||
- [ ] I have tested this change locally and tried to launch the server as well as access a project, and with that at least one build | ||
- [ ] If there is an existing issue, make sure to add `Fixes ...` as part of the PR body to reference the issue you're solving | ||
``` |
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
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,20 @@ | ||
# Projects | ||
|
||
A project in fastlane.ci is defined as a combination of a git repo + a trigger + parameters. | ||
|
||
- A git repo can have any number of projects associated | ||
- You can have any number of projects using the same git repo and trigger **type** | ||
- fastlane.ci support multiple [trigger types](https://github.com/fastlane/ci/blob/master/docs/Triggers.md), each of which takes parameters (e.g. what times to run, what branches to build) | ||
|
||
Example projects would be | ||
|
||
- `Bike App test PRs` (Run unit tests for every PR) | ||
- `Bike App nightly builds` (build a new internal beta every day at 5pm) | ||
- `Bike App weekly public beta` (build a new beta every Friday for external testers) | ||
- `Bike App App Store release` (Manually triggered whenever team wants to ship) | ||
|
||
As you can see, the `Bike App` has 4 jobs associated, a total of 3 trigger types. | ||
|
||
For each project, the developer selects a `lane` to run for the given project. | ||
A `lane` is a concept of [fastlane](https://fastlane.tools) that basically defines a build/deploy environment. | ||
Common lanes are `run_tests`, `distribute_beta` or `deploy_to_app_store`. |
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
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,12 @@ | ||
import {mockBuildArtifactResponse_log} from '../common/test_helpers/mock_build_data'; | ||
|
||
import {Artifact} from './artifact'; | ||
|
||
describe('Artifact Model', () => { | ||
it('should convert build artifact successfully', () => { | ||
const artifact = new Artifact(mockBuildArtifactResponse_log); | ||
|
||
expect(artifact.id).toBe('12345'); | ||
expect(artifact.name).toBe('fastlane.log'); | ||
}); | ||
}); |
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,11 @@ | ||
import {BuildArtifactResponse} from './build'; | ||
|
||
export class Artifact { | ||
readonly id: string; | ||
readonly name: string; | ||
|
||
constructor(artifact: BuildArtifactResponse) { | ||
this.id = artifact.id; | ||
this.name = artifact.type; | ||
} | ||
} |
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.