-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Bye bye submodule, hello Makefile! #25513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
65c1566
Remove subfolder
DeepDiver1975 7730fad
Add 3rdparty libraries to core composer
DeepDiver1975 24395d4
No longer load autoloader from 3rdparty
DeepDiver1975 f11921a
Fix require in OCPSinceChecker
DeepDiver1975 ea611d0
Remove strict mode from phpunit.xml
DeepDiver1975 68b9464
Adding lib/composer to .gitignore - devs need to run make to get comp…
DeepDiver1975 f94b68c
Fix unit tests to match sabre vobject version
DeepDiver1975 6776772
Use explicit version of cssmin instead of master branch
DeepDiver1975 c28655c
Update guzzle to 5.3.1
9be1f95
Fixing composer calls
DeepDiver1975 b2b4fdc
Fix makefile deps
ba088b2
Moved JS tests to Makefile
f9039a1
Added bower deps in Makefile
9ff3b23
Fix makefile
00d2089
Fix composer phar dep
037b39b
Remove bogus composer files
ed0a179
bye bye hhvm
DeepDiver1975 5989cac
Move php-lint to Makefile
DeepDiver1975 3f91bd4
Fix test-js
8754370
Adjust Jenkinsfile for JS tests
cd0125c
Bye-bye php 5.4 & 5.5
DeepDiver1975 38265f9
Move autotest*.sh and buildjsdoc.sh into build sub folder
DeepDiver1975 f99019b
Adjusted versions in bower.json
b952f1c
Fix bower deps to have fixed versions
e8268b9
Fixed autotest scripts, added jsdoc rule
eb81932
Added integration tests in Makefile
bb6ff8d
Fix for test-js makefile dep + other
c903afe
Makefile vars and adjusted Jenkinsfile
ff373ee
Add make command to update license file headers
DeepDiver1975 308df14
Small tweaks in makefile
5b859b3
Add phpunit from composer
f091aca
Fix composer autoloader
3eb54d6
Fixed Makefile dependencies to only build them once
2170387
Makefile: separate dev and release deps
b6bacfa
Fix travis
DeepDiver1975 07f7fcb
Handle error when composer was not called
DeepDiver1975 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule 3rdparty
deleted from
4eb81c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| NODE_PREFIX=build | ||
| NPM=npm | ||
| KARMA="$(NODE_PREFIX)/node_modules/.bin/karma" | ||
| BOWER="$(NODE_PREFIX)/node_modules/.bin/bower" | ||
| JSDOC="$(NODE_PREFIX)/node_modules/.bin/jsdoc" | ||
| PHPUNIT="$(PWD)/lib/composer/phpunit/phpunit/phpunit" | ||
| COMPOSER_BIN=build/composer.phar | ||
|
|
||
| TEST_DATABASE=sqlite | ||
| TEST_EXTERNAL_ENV=smb-silvershell | ||
|
|
||
| # internal aliases | ||
| composer_deps=lib/composer | ||
| composer_dev_deps=lib/composer/phpunit | ||
| nodejs_deps=build/node_modules | ||
| core_vendor=core/vendor | ||
|
|
||
| # | ||
| # Catch-all rules | ||
| # | ||
| .PHONY: all | ||
| all: $(composer_deps) $(core_vendor) | ||
|
|
||
| .PHONY: clean | ||
| clean: clean-composer-deps clean-nodejs-deps clean-js-deps clean-test-results | ||
|
|
||
| # | ||
| # Basic required tools | ||
| # | ||
| $(COMPOSER_BIN): | ||
| cd build && curl -sS https://getcomposer.org/installer | php | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @PVince81 composer.phar is now in build sub folder |
||
|
|
||
| # | ||
| # ownCloud core PHP dependencies | ||
| # | ||
| $(composer_deps): $(COMPOSER_BIN) | ||
| php $(COMPOSER_BIN) install --no-dev | ||
|
|
||
| $(composer_dev_deps): $(COMPOSER_BIN) | ||
| php $(COMPOSER_BIN) install --dev | ||
|
|
||
| .PHONY: install-composer-release-deps | ||
| install-composer-release-deps: $(composer_deps) | ||
|
|
||
| .PHONY: install-composer-dev-deps | ||
| install-composer-dev-deps: $(composer_dev_deps) | ||
|
|
||
| .PHONY: install-composer-deps | ||
| install-composer-deps: install-composer-dev-deps | ||
|
|
||
| .PHONY: update-composer | ||
| update-composer: $(COMPOSER_BIN) | ||
| rm -f composer.lock | ||
| php $(COMPOSER_BIN) install --prefer-dist | ||
|
|
||
| .PHONY: clean-composer-deps | ||
| clean-composer-deps: | ||
| rm -f $(COMPOSER_BIN) | ||
| rm -Rf lib/composer | ||
|
|
||
| # | ||
| # Node JS dependencies for tools | ||
| # | ||
| $(nodejs_deps): | ||
| $(NPM) install --prefix $(NODE_PREFIX) | ||
|
|
||
| .PHONY: install-nodejs-deps | ||
| install-nodejs-deps: $(nodejs_deps) | ||
|
|
||
| .PHONY: clean-nodejs-deps | ||
| clean-nodejs-deps: | ||
| rm -Rf $(nodejs_deps) | ||
|
|
||
| # | ||
| # ownCloud core JS dependencies | ||
| $(core_vendor): $(nodejs_deps) | ||
| $(BOWER) install | ||
|
|
||
| .PHONY: install-js-deps | ||
| install-js-deps: $(nodejs_deps) | ||
|
|
||
| .PHONY: update-js-deps | ||
| update-js-deps: $(nodejs_deps) | ||
| $(BOWER) update | ||
|
|
||
| .PHONY: clean-js-deps | ||
| clean-js-deps: | ||
| rm -Rf $(core_vendor) | ||
|
|
||
| # | ||
| # Tests | ||
| # | ||
| .PHONY: test-php | ||
| test-php: $(composer_dev_deps) | ||
| PHPUNIT=$(PHPUNIT) build/autotest.sh $(TEST_DATABASE) | ||
|
|
||
| .PHONY: test-external | ||
| test-external: $(composer_dev_deps) | ||
| PHPUNIT=$(PHPUNIT) build/autotest-external.sh $(TEST_DATABASE) $(TEST_EXTERNAL_ENV) | ||
|
|
||
| .PHONY: test-js | ||
| test-js: $(nodejs_deps) $(js_deps) $(core_vendor) | ||
| NODE_PATH='$(NODE_PREFIX)/node_modules' $(KARMA) start tests/karma.config.js --single-run | ||
|
|
||
| .PHONY: test-integration | ||
| test-integration: $(composer_dev_deps) | ||
| $(MAKE) -C build/integration | ||
|
|
||
| .PHONY: test-php-lint | ||
| test-php-lint: $(composer_dev_deps) | ||
| $(composer_deps)/bin/parallel-lint --exclude lib/composer --exclude build . | ||
|
|
||
| .PHONY: test | ||
| test: test-php-lint test-php test-js test-integration | ||
|
|
||
| .PHONY: clean-test-integration | ||
| clean-test-integration: | ||
| $(MAKE) -C build/integration clean | ||
|
|
||
| .PHONY: clean-test-results | ||
| clean-test-results: | ||
| rm -Rf tests/autotest-*results*.xml | ||
| $(MAKE) -C build/integration clean-test-results | ||
|
|
||
| # | ||
| # Documentation | ||
| # | ||
| .PHONY: docs-js | ||
| docs-js: $(nodejs_deps) | ||
| $(JSDOC) -d build/jsdocs core/js/*.js core/js/**/*.js apps/*/js/*.js | ||
|
|
||
| .PHONY: docs | ||
| docs: docs-js | ||
|
|
||
| .PHONY: clean-docs | ||
| clean-docs: | ||
| rm -Rf build/jsdocs | ||
|
|
||
| # | ||
| # Miscellaneous tools | ||
| # | ||
| .PHONY: update-php-license-header | ||
| update-php-license-header: | ||
| php build/license.php | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DeepDiver1975 weird, I thought we changed this to
composer_dev_deps?