Commit Graph

120 Commits

Author SHA1 Message Date
Marek Fořt 6a6d40ba68 Strip changes to ProjectDescription models. 2020-03-09 18:49:44 +01:00
Marek Fořt d363af776c Add TuistAutomation to TuistCoreTests. 2020-03-03 20:59:42 +01:00
Marek Fořt de4908fbf7 Add TuistTemplateTesting to TuistTemplateTests. 2020-03-03 20:48:33 +01:00
Marek Fořt f8c4d4a7ba Run swiftformat. 2020-03-03 20:05:25 +01:00
Marek Fořt a47c43dca3 Merge remote-tracking branch 'origin/master' into scaffold 2020-03-03 18:07:18 +01:00
Marek Fořt 1f07c30b39 Merge TemplateDescription and ProjectDescription. 2020-03-03 16:17:24 +01:00
Pedro Piñera 6fd9db3561 Write test structure 2020-03-02 19:30:12 +01:00
Marek Fořt cd5988308c Add InitCommand and ScaffoldCommandTests. 2020-02-29 21:20:49 +01:00
Marek Fořt 8146c2956a Remove tests temporarily. 2020-02-29 17:28:23 +01:00
Pedro Piñera d85a6776b9 Some dependency fixes 2020-02-28 10:38:09 +01:00
Pedro Piñera 22a5e70d82 Implement cacher 2020-02-26 18:43:33 +01:00
Marek Fořt 7f8cbd1303 Build TemplateDescriptionHelpers. 2020-02-25 21:17:34 +01:00
Marek Fořt 1b922f8165 Generate directories with attribute. 2020-02-23 22:45:50 +01:00
Marek Fořt 28fedfbf22 Add TemplateDescription. 2020-02-22 18:05:09 +01:00
Pedro Piñera c99568685d Implement XcodeBuildController 2020-02-21 19:28:31 +01:00
Pedro Piñera cbed3afc2a Implement GoogleCloudStorageClient 2020-02-21 17:25:01 +01:00
Kassem Wridan 5ba744f292 Add missing Package dependencies
- Building Tuist when opening it Natively in Xcode (double clicking the Package.swift) yields a few buidl errors
- This is due to missing explicit dependencies between targets

Test Plan:

- Open the Package.swift to launch it in Xcode

_Note: even with this fix it doesn't seem the ProjectDescription framework/dylib is being built correctly in this mode, the current workaround is to continue to use `swift package generate-xcodeproj`_
2020-02-20 07:56:50 +00:00
Marek Fořt 536a1fe1a1 Extract Tuist template logic to its own target. 2020-02-18 21:44:06 +01:00
Kas fbdbf99c55
Preserve xcuserdata when re-generating projects (#1006)
- The project generation process was replacing the entire `.xcodeproj` and `.xcworkspace` directories
- This lead to wiping all previous contents within those directories
- This included a nested `xcuserdata` directory which is usually gitignored and holds the Xcode UI state
- To reoslve this, only a the individual files are replaced rather than the entire directory

Test Plan:

- Run `tuist generate` within any fixture
- Open the generated project
- Navigate around, set breakpoints
- Re-order one of the source files (i.e. to cause a re-generation)
- Close Xcode
- Run `tuist generate` again
- Open the generated project
- Verify the last viewed file is opened automatically, breakpoints, the recently viewed files list are all still there
2020-02-18 14:06:36 +00:00
Pedro Piñera Buendía 14b5850435
Merge pull request #942 from tuist/target-attributes
Update XcodeProj
2020-02-14 11:17:29 +01:00
Pedro Piñera Buendía 9c03d0b57f
Merge pull request #992 from tuist/lints-to-linters
Some boycouting around the loading logic
2020-02-14 11:17:11 +01:00
Pedro Piñera a6b6dcac82 Update XcodeProj 2020-02-14 10:04:42 +01:00
Pedro Piñera 5ce1be5967 Add missing dependency 2020-02-14 09:58:22 +01:00
Marek Fořt cbcc4a219e
Merge pull request #814 from tuist/enable_preview
Filter out ENABLE_PREVIEWS based on Xcode version.
2020-02-14 09:57:54 +01:00
Pedro Piñera 071d015f29 Add missing dependency 2020-02-14 09:53:34 +01:00
Pedro Piñera 743e672aff Add missing dependency 2020-02-14 09:48:00 +01:00
Pedro Piñera 646cf753f8 Fix unit tests 2020-02-14 08:45:37 +01:00
Pedro Piñera ce106cc45f Rename TuistGalaxy to TuistCache 2020-02-07 14:33:59 +09:00
Pedro Piñera 9f6bc745b3 Remove OpenCombine 2020-02-03 08:20:55 +09:00
Marek Fořt f773bea5af Bump XcodeProj version to 7.6.0. 2020-01-30 20:43:43 +01:00
Pedro Piñera 0e0c62467b Extend URLSessionScheduler to have a Combine API 2020-01-21 21:28:25 +01:00
Marcin Iwanicki 1eafc16443
Make the scheme generation with testable targets stable (#892)
### Short description

We've noticed the scheme generation is not always stable. The order of testable targets in a scheme could change after re-generating the project. 
It's reproducible when multiple testable targets depend on the same target (framework, or app) within a single project.

i.e.

- ProjectA:
  - AppTarget 
  - UnitTestsTarget (dependencies: [AppTarget])
  - UITestsTarget (dependencies: [AppTarget])

### Solution

- Sorted testable targets
- Updated one of the unit tests to reproduce the issues, and avoid regression in the future
- Updated the integration tests to cover multiple testable targets user case
2020-01-21 08:22:33 +00:00
Pedro Piñera 750e76624e Version 1.1.0 2019-12-27 16:57:57 +01:00
Pedro Piñera c01652aae2 Reorganize and fix tests 2019-12-26 11:37:03 +01:00
Pedro Piñera 0f5e61480b Create TuistLoader target 2019-12-26 10:52:05 +01:00
Pedro Piñera 267455de7f Create TuistGalaxy & TuistAutomation 2019-12-19 15:42:10 +01:00
Pedro Piñera cff6671a1d Version 1.0.0 2019-12-17 10:30:59 +01:00
Pedro Piñera 7d85209985 Add tests 2019-12-10 11:33:11 -05:00
Pedro Piñera b80197aa71 Test rxRun 2019-12-10 11:33:10 -05:00
Pedro Piñera 8428793d73 Add an interface to launch processes and subscribe to the standard output and error using observables 2019-12-10 11:33:10 -05:00
Andrea Cipriani 085b2f3bf6 Add Checksum dependency via SPM 2019-12-07 18:18:03 +01:00
Pedro Piñera d2338ee7ab Add tests 2019-12-07 14:27:18 +01:00
Pedro Piñera 6832d32e08 Add RxSwift 2019-12-07 13:51:34 +01:00
Pedro Piñera 22fa2b87c5 Implement edit command 2019-11-26 13:16:39 +01:00
Pedro Piñera Buendía 863cb8a9b1
Add TuistCore framework (#669)
* Make the project build

* Fix tests

* Fix test

* Update documentation

* Remove duplicated dependency
2019-11-17 16:21:48 +01:00
Kas d88e11951d
Fix test target build settings (#661)
Resolves: https://github.com/tuist/tuist/issues/660

- Ensure the `LD_RUNPATH_SEARCH_PATHS` build setting is set for test targets

Test Plan:

- Generate `fixtures/ios_app_with_tests`
- Verify the generated project's test target contains a valid `LD_RUNPATH_SEARCH_PATHS` build setting
2019-11-13 14:06:30 +00:00
Marek Fořt 8b0c13f011 Switch dependencies from branch to version. (#631)
* Switch dependencies from branch to version.

* Update CHANGELOG.
2019-11-11 11:33:17 +01:00
Pedro Piñera Buendía 8df4e6464b
Rename Core to Support (#621)
* Rename Core to Support

* Fix acceptance tests
2019-11-01 08:35:06 +01:00
Pedro Piñera Buendía 8ea0956e1d
Embed frameworks using a bash script (#610)
* Delete embed logic

* Add methods to read the dsym path & bcsymbolmap paths from a framework

* Place the tests in the right test case

* Implement EmbedScriptGenerator

* Test EmbedScriptGenerator

* Extract methods that interact with the system into metadata provider utilities and fix tests

* Include output paths

* Test FrameworkMetadataProvider

* Test PrecompiledMetadataProvider

* Add more tests

* Create fixture project

* Add acceptance test

* Address comments

* Use Xcode 11.1

* Update Package.resolved

* Update XcodeProj

* Make the tuistenv install test more resilient
2019-10-29 13:34:02 +01:00
Pedro Piñera Buendía 47505e679c
Shared system instance (#519)
* Add System.shared

* Implement TuistTestCase, TusitUnitTestCase, and refactor all the tests to use those classes instead.

Make some progress

Refactor tests to use TuistUnitTestCase

Create TuistTestCase

* Fix some tests

* Update the documentation to indicate that there is more than one integration tests target

* Update the CHANGELOG

* Indicate the product that we build for release

* Remove unnecessary methods
2019-10-10 11:28:51 +02:00