176 Commits

Author SHA1 Message Date
Ed Reel
c141f4631d Update CREW_COMMANDS constant and replace hardcoded Available commmands (#9604) 2024-04-05 18:56:58 +11:00
Maximilian Downey Twiss
d13b6dbf9b Split prop command into separate file (#9514) 2024-04-03 02:23:27 -05:00
Ed Reel
9ab7decb17 Move constants from bin/crew to lib/const.rb (#9533)
Update help_test to include crew commands help test
2024-03-24 21:40:37 -04:00
Ed Reel
a27c54b793 Add help_test (#9531) 2024-03-23 20:55:39 -04:00
Ed Reel
95b40b3c24 Add buildsystem_test and check (#9530) 2024-03-23 19:08:23 +11:00
Ed Reel
7c17beeee7 Add check command (#9501) 2024-03-20 08:46:01 -04:00
Maximilian Downey Twiss
5d0af28461 Make prop_test and cycle_test cwd-agnostic (#9498) 2024-03-16 20:22:22 -04:00
Maximilian Downey Twiss
f675bcffef Correct dependencies of prop_test (#9455) 2024-03-08 20:22:57 -06:00
Maximilian Downey Twiss
2a48058428 Split const command out into separate file (#9445) 2024-03-06 21:43:13 -05:00
Maximilian Downey Twiss
925a461efb Split out help command to separate file (#9392) 2024-02-26 16:21:11 -06: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
af1b3a3c3f Fix markdown-lint issues (#8419)
* Update markdown-lint configuration

* Fix markdown-lint issues

* remove outdated info

---------

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2023-06-22 10:30:08 -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
dc15b244f1 Add spellcheck_test script (#5655) 2021-04-18 15:37:19 +08: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
James Larrowe
6866d9925c Update tests. (#3081)
Improve logic
2019-01-14 08:33:01 -06:00
Yan Couto
834458936e Switching test README sections 2017-11-05 13:39:45 -02:00
Yan Couto
85e32e5a51 Fixing test and explaining directory 2017-11-05 11:07:04 -02:00
Yan Couto
a5b5bb28a3 Adding more documentation to tests 2017-11-02 22:36:32 -02:00
Yan Couto
5f8da72e8e Merging crew refactor and importing lib/color 2017-09-07 13:47:15 -03:00
Yan Couto
c4f97ee168 Moving constants to lib
Changelog:
- Moved crew string colorization to lib/color.rb
- Moved crew constants to lib/const.rb
- test_all can now be run from anywhere
- Tests are all relative now (no need to have a crew installation)
2017-09-01 21:16:34 -03:00
Yan Couto
ece23e64ec Making tests self-contained
test_all runs all tests automatically.
no_cycles checks local packages instead of packages in /usr/local/lib
Added REAME for explanation.
Modifying crew file to have a "init only" functionality
2017-08-26 17:46:45 -03:00