Commit Graph

75 Commits

Author SHA1 Message Date
Max Desiatov dd6439700f
Bump version to 0.11.0, update dependencies (#251)
* Bump version to 0.11.0, update dependencies

* Test on Big Sur with Xcode 12.5

* Update test fixture dependencies

* Remove `LinuxMain.swift` expectations

* Test with `wasm-5.4-SNAPSHOT-2021-08-26-a`

* Remove expectations for `XCTestManifests.swift`

* Enable debugging output

* Try the latest 5.4 toolchain

* print debug output

* More debug output

* Test on macOS 11 with Xcode 13

* Pipe errors to stdout

* Update DefaultToolchain.swift

* Revert "Update DefaultToolchain.swift"

This reverts commit 4ff15f938a.

* Remove Xcode 13 from the CI matrix

* Update DefaultToolchain.swift

* Reduce the diff
2021-09-01 15:07:00 +01:00
Max Desiatov ed06b25ab0
Bump version to 0.10.0, update `CHANGELOG.md` (#244) 2021-05-30 10:37:08 +01:00
Max Desiatov ae8015413b
Fix `carton dev` crashing with SO sanitizer (#239)
Previously, the file we need to include with the build to enable the stack overflow sanitizer was written as a temporary file. This didn't happen though on watcher rebuilds with `carton dev` and caused crashes when a code line containing `try!` relying on this file to be present was executed.

I think it's easier and more efficient to bundle this file in the `static.zip` file that already includes our JS entrypoints. We require `static.zip` to be downloaded and unpacked successfully into `~/.carton/static` before every build anyway. It makes more sense to sense the sanitizer file in `~/.carton/static/so_sanitizer.wasm` and use that instead writing and deleting it at a temporary path on every build.

I've also updated the JSKit dependency and cleaned up some linter warnings by moving large tuple values into a separate `BuildDescription` type.
2021-05-24 12:03:38 +01:00
Max Desiatov 227efcd07a
Avoid building in `release` mode when testing (#240)
This fixes the issue with Linux builds, as Linux CI hosts were updated to Swift 5.4 which no longer supports testing with release builds.

* Avoid building in `release` mode when testing

* Remove deprecated `LinuxMain.swift`
2021-05-23 15:06:22 +01:00
thecb4 45850d66e0
Add `carton init` with template test. Supports #99 (#221)
* Added init with template test. Supports #99

* Moved expectedTemplateSource outside of test function.  Supports #99

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-02-14 11:08:02 -05:00
thecb4 4b062aef86
Add tests for `sdk versions` and `sdk local` commands (#218)
* Added tests for version and local

* Debugging versions tests on ci

* Added brew install for swiftenv

* Changed fetchAllSwiftVersions to return empty array if .swiftenv/versions doesnt exist

* Remove commented out code. Removed debug flag for versions test

* Removed swiftenv from Brewfile

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-02-01 20:27:37 -05:00
thecb4 c9250c3b01
Add test for `carton sdk install` (#217)
* Added test for sdk install

* Removed commented out code

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-01-29 16:01:36 -05:00
Benjamin Kindle 046ce7e106
Add host argument to `dev` and `test` commands (#213)
* Add host argument to dev and test commands

* Delete Brewfile.lock.json

* Update swift.yml

* Update Sources/CartonCLI/Commands/Dev.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

* Update Sources/CartonCLI/Commands/Test.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: Max Desiatov <max@desiatov.com>
2021-01-20 13:05:41 +00:00
thecb4 794eb9f85e
ci/carton test --environment defaultbrowser (#209)
* Added Test for carton test --environment defaultBrowser

* Method documentation, test file cleanup, print statement removals, var scope changes

* Delete docker-compose.yml

Co-authored-by: thecb4 <cavelle@tehcb4.io>
Co-authored-by: Max Desiatov <max@desiatov.com>
2021-01-09 20:14:11 -05:00
Max Desiatov 116840c746
Fix browser testing for Safari, update tasks.json (#202)
* Fix browser testing for Safari, update tasks.json

* Remove autodiff code from `TestApp/main.swift`
2021-01-04 06:52:07 -05:00
thecb4 fc0487d623
Add `test` command test with no arguments (#198)
* Added test command test with no arguments

* Changed build and test to release configuration, Fixed Docker Build error

* Changed build and test to release configuration, Fixed Docker Build error

* Fixed github action

* Moved package.json and package-lock.json back to the top directory

* Moved the entrypoint folder back to the top level directory

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2020-12-30 10:35:02 -05:00
thecb4 22165481bf
Add tests for `dev` and `bundle` commands (#196)
* carton dev and bundle default command tests

* removed tests_output

* removed .testfile

* carton dev and bundle default command tests

* removed localhost as localURL

* attempt to fix folder name issue

* removed Fixtures test folder

* added Fixtures test folder

* attempt to fix folder name issue

* attempt to fix server connect issue

* fixed dev testWithNoArguments with sleep delay

* Debugging bundle command for github actions

* Install wasmr prior to swift test

* Debug clean up

* Debug clean up

* Update Tests/CartonCommandTests/CommandTestHelper.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: thecb4 <cavelle@tehcb4.io>
Co-authored-by: Max Desiatov <max@desiatov.com>
2020-12-28 13:13:27 -05:00
thecb4 d7352b5a25
Add Dev tests and fix hard coded paths (#192)
* Added Dev tests and fixed hard coded paths, fixes #183

* Fixed Path dependency in 5.2 Package

* Removed mxcl/Path dependency

* Removed mxcl/Path dependency, Added confirmation of file existence in Init test

* Added sdk install head of init command test

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* changed order of actions for github automations to support testing

* modified test run to exclude release

* changed sdk install to run per test

* adjusted github workflows to create carton sdk folders

* adjusted github workflows to use /home/runner instead of root

* adjusted test to wait for sdk installation

* adjusted ubuntu tests for passing

* adjusted Dockerfile to run tests

* added tmate session for debugging

* Removed tmate session, added directory creation for carton sdk and sym link

* Adjusted order of commands for runner

* Fixed mkdir from worker to runner

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Fixed hard coded paths

* Removed test investigation fixtures

* Removed test investigation fixtures

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2020-12-24 03:49:28 -05:00
thecb4 5fe8c8edac
Changes to project structure to allow for better testability (#191)
* Changed sources folder to separate the CLI from the 'Kit' to allow for testability of each command

* Fixed Swift 5.2 Support

* Removed Path.swift (for now)

* Fixed OpenCombine and other version issues for 5.2 support

* Removed Path.swift from test target dependency

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2020-12-21 05:14:24 -05:00
Max Desiatov b47058f446
Bump version to 0.9.1, update `CHANGELOG.md` 2020-12-19 15:30:25 +00:00
Max Desiatov ac19a7e868
Fix parsing system targets in `Package.swift` (#189)
This will unblock making CI work in TokamakUI/Tokamak#333.
2020-12-17 13:09:10 +00:00
Jed Fox 1af4f5a6d0
Add support for Chrome and Safari stack traces (#186) 2020-12-07 15:31:29 -05:00
Max Desiatov a7314cbb2e
Bump version to 0.9.0, update `CHANGELOG.md` 2020-12-04 13:05:55 +00:00
Max Desiatov 377aa7617a
Demangle and print Firefox stack traces in terminal (#162)
This currently supports only Firefox, parsing of stack traces for other browsers will be added in separate PRs.

Resolves a part of #26.

* Demangle and print Firefox stacktraces in terminal

* Update the entrypoints archive URL, rename file

* Add missing newline to `ProcessRunner.swift`

* Remove redundant `console.log` call from `dev.js`

* Detect destination env from `User-Agent` header

* Silence linter in tests where it can't be avoided

* Remove use of grey color in stacktrace output
2020-11-27 11:49:39 +00:00
Max Desiatov abfaeb9a25
Bump version to 0.8.1, update `CHANGELOG.md` 2020-11-09 13:52:11 +00:00
Max Desiatov e62b6adcf7
Bump version to 0.8.1, update `CHANGELOG.md` (#163) 2020-11-09 11:01:52 +00:00
Max Desiatov 59bc8271d4
Bump version to 0.8.0, update `CHANGELOG.md` (#158)
* Bump version to 0.8.0, update `CHANGELOG.md`

* Fix subsection title formatting in CHANGELOG.md
2020-11-08 09:29:24 +09:00
Carson Katri 91ea98fa5b
Fix error message output (#142) 2020-10-26 10:52:05 -04:00
Max Desiatov 5b7c6e8b5d
Fix Linux build: rename cartonTests to CartonTests 2020-06-06 10:52:12 +01:00
Max Desiatov e62d8aeda9
Add empty package with basic dependencies 2020-05-04 18:00:18 +01:00