9 Commits

Author SHA1 Message Date
Maximilian Downey Twiss
48e3bd316e Rework load_package, set_package, search and copy_package (#9658) 2024-04-20 19:09:30 -05:00
Maximilian Downey Twiss
5d0af28461 Make prop_test and cycle_test cwd-agnostic (#9498) 2024-03-16 20:22:22 -04:00
Satadru Pramanik, DO, MPH, MEng
ac52769bad Revert "Miscellaneous crew changes (#9311)" (#9315)
This reverts commit 7a5eff8945.
2024-02-12 12:31:07 -06:00
Maximilian Downey Twiss
7a5eff8945 Miscellaneous crew changes (#9311)
* Make greater use of File.join when loading device.json

* Remove redundant check that the compatibility property exists (already checked by prop_test as part of CI)

* Don't pass architecture to lib/package.rb

* Replace @device[:architecture] with ARCH, do not create architecture section in device.json

* Refactor getting urls and sha256s in package.rb

* Use inplace sort on installed_packages instead of creating sorted_installed_packages

* Rework load_package to always only take one argument

* Only rescue package loading errors in set_package

* Remove generate_compatible

* Replace all calls to load_package with set_package

* Use _args instead of _ in prop_command

* Merge @short_verbose and @verbose

* Simplify filename detection in download

* Bump crew version
2024-02-12 12:38:18 -05:00
Maximilian Downey Twiss
d105a9c058 Run Rubocop 1.58 on tree (#9041) 2023-12-03 19:35:18 -05:00
Maximilian Downey Twiss
2e6eb61dc1 Remove spellcheck_test and rework load_test into prop_test (#8987) 2023-11-27 20:01:51 -05:00
Maximilian Downey Twiss
de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00
supechicken
7ed76d1845 crew: Isolate package classes from global scope (#7283)
* crew: Isolate package classes from global scope

* Use `require_relative`

* Fix typo

* Prevent duplicate loading packages

* Bump version
2022-08-17 13:51:07 -05:00
Ed Reel
6403e4f04f Update tests (#5408)
* Update tests

* Improve speed of cycle_test and load_test scripts
2021-03-15 10:32:31 +08:00