Commit Graph

57 Commits

Author SHA1 Message Date
Mauro Bolis 45c394aa1e
Add models to handle RunAction options (#2524)
* Add models to handle RunAction options

* Add storekit configuration file to the scheme generation

* Add storekit configuration file to the project files

This step is both a nice to have (that is, it is handy to have the file included in Xcode files navigator), but also very helpful. The StoreKit configuration shouldn’t be added to any target, but at the same time it should be retrievable by Xcode. Project files is the perfect solution, and developers don’t need to manually include the file somewhere

* Add linting for storekit configuration existence

* Add unit tests

* Improve documentation

* Add documentation to the website

* Update changelog

* Change StoreKit configuration linting from warning to error

* Refactor RunActionOptions to improve APIs ergonomics

* Format and lint files
2021-02-17 17:41:55 +01:00
Dmytro Mishchenko bcaeb992c5
Add On Demand Resources support (#2490)
* Add On Demand Resources support

* Update changelog

* Add ResourceFileElement

Added `ResourceFileElements` and `ResourceFileElement`.
Changed `Target` model `resources` type to `ResourceFileElements`.

* Update website docs

* Fix code style

* Fix fixtures
2021-02-12 18:24:47 +01:00
Daniel Jankowski 40f449fa07
Introduce caching profiles (#2431)
* Introduce cache profiles

* Add changelog entry

* Fix unit tests for content hashing

* Apply review feedback

* Move cache options to a separate file

* Fix unit tests after merge conflicts

* Cleanup the docs after main rebase
2021-02-11 10:17:27 +01:00
Natan Rolnik fb3c0c9d1b
Warn when targets with duplicate bundle identifiers exist (#2444)
* Fail linting when targets with duplicate bundle identifiers exist

* Fix other GraphLinterTests

* When linting duplicate bundle ids, take into account the platform

* Fix acceptance tests 4

* Fix a few more tests

* Add decision-records

* Minor fixes from PR comments

* Change duplicate bundle ids linting issue from error to warning

* Remove decision records, fix tests
2021-02-08 18:28:10 +01:00
Daniel Jankowski 8404aaf268
Add 'profile' option to 'cache warm' command (#2221) 2021-02-02 08:20:40 +01:00
Marek Fořt f0d0138660
Generate project for tests automation (#2057)
* Generate project and workspace to cache directory for automation.

* Add tests and modify app_with_tests_fixture.

* Add documentation to new mappers.

* Remove generate option from documentation.

* Run swiftformat.

* Edit changelog.

* Fix unit tests.

* Fix generating schemes for test when disabled in config.

* Add AutomationPathGraphMapper.

* Generate project to temporary path.

* Correctly bind schemes in a different project.

* Run project schemes.

* Resolve scheme path to xcodeProjPath.

* Fix resolving project path.

* Add tests for TestService.

* Use xcodeproj at proper path.

* Fix SchemeDescriptorGenerator tests.

* Fix WorkspaceDescriptorGenerator tests.

* Fix integration tests.

* Run style correct.

* Add xcodeProjPaths to workspace.

* Fix tests with xcodeProjPaths.

* Fix ConfigGeneratorTests.

* Remove disableAutogeneratedScheme from config.swift.

* Add xcodeProjPaths to workspace when loading.

* Run style correct.

* Add xcodeProjPaths in UpdateWorkspaceProjectsGraphMapper.

* Remove commented code.

* Remove xcodeProjPaths from Workspace.

* Refactor xcodeProjPath change to workspace mapper.

* Add xcWorkspacePath to Workspace.

* Fix tests.

* Fix workspace structure paths

* Fix PR comments.

* Edit CHANGELOG.

* Fix TestServiceTests.

Co-authored-by: Kassem Wridan <kwridan@bloomberg.net>
2021-01-28 21:37:42 +01:00
Pedro Piñera Buendía 241eb6cc6b
Extract graph models into TuistGraph (#2324)
* Make some progress towards TuistGraph

* Fix more imports

* Update CHANGELOG

* Fix tests and styles
2021-01-20 17:59:55 +01:00