summaryrefslogtreecommitdiff
path: root/lib/tasks
Commit message (Collapse)AuthorAgeFilesLines
* Improve .haml-lint.yml, simplify the haml_lint task and remove CHANGELOG entryrc-use-haml_lintRémy Coutable2016-09-131-4/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add haml_lint rake taskRémy Coutable2016-09-131-0/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use `File::exist?` instead of `File::exists?`bogdanvlviv2016-08-113-12/+12
| | | | Since version ruby-2.2.0, method `File::exists?` is deprecated.
* Rename `run` task helper method to prevent conflict with StateMachineRobert Speicher2016-08-094-17/+15
| | | | | | | | | This prevents the following message from appearing whenever running a Rake task: Instance method "run" is already defined in Object, use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true.
* Fix Rename `add_users_into_project` and `projects_ids`Herminio Torres2016-08-042-8/+8
| | | | | | We never add things `into` projects, we just add them `to` projects. So how about we rename this to `add_users_to_project`. Rename `projects_ids` to `project_ids` by following the convention of rails.
* Update the gitlab-shell version in the tmp/tests directory to the right versionupdate-gitlab-shell-in-testsStan Hu2016-08-031-2/+8
| | | | | | Previously the gitlab-shell version would never be updated if the directory existed via the `gitlab:shell:install` Rake task. This could lead to incompatibility issues or random errors.
* Always compare with FETCH_HEAD in downtime_checkYorick Peterse2016-08-021-20/+6
| | | | | This ensures this CI step works properly even when doing a shallow clone.
* Merge branch 'simple-cov' into 'master' Robert Speicher2016-07-271-1/+1
|\ | | | | | | | | | | | | Generate coverage report from whole test suite Extends our CI plan to merge all coverage results and generate HTML report. See merge request !5018
| * Remove unused coverallsKamil Trzcinski2016-07-211-1/+1
| |
| * Use `scripts/merge-simplecov`Kamil Trzcinski2016-07-211-63/+0
| |
| * Merge coverage reportKamil Trzcinski2016-07-211-0/+63
| |
* | Disable MySQL foreign key checks before dropping all tablesDrew Blessing2016-07-251-0/+7
|/
* Merge branch 'migration-downtime-tags' into 'master' Robert Speicher2016-07-202-0/+41
|\ | | | | | | | | | | | | | | | | Added checks for migration downtime This adds a set of checks that check/list which migrations require downtime (or not). It also comes with a CI task that fails should a migration not be tagged properly. Fixes #14545 See merge request !4911
| * Added checks for migration downtimemigration-downtime-tagsYorick Peterse2016-07-202-0/+41
| | | | | | | | | | | | | | | | | | | | | | These new checks can be used to check if migrations require downtime or not (as tagged by their authors). In CI this compares the current branch with master so migrations added by merge requests are automatically verified. To check the migrations added since a Git reference simply run: bundle exec rake gitlab:db:downtime_check[GIT_REF]
* | Use limit parameter rather than hardcoded valueM. Ricketts2016-07-201-1/+1
| |
* | Merge branch 'deployment-tracking' into 'master' Rémy Coutable2016-07-191-0/+9
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added Rake task for tracking deployments ## What does this MR do? This MR adds a Rake task to track the current version of GitLab in InfluxDB. ## Are there points in the code the reviewer needs to double check? We may want to document this Rake task in some Markdown file, but I'm not sure what the best place for this would be. ## Why was this MR needed? We want to have a more accurate overview of when deployments occurred. ## What are the relevant issue numbers? https://gitlab.com/gitlab-com/infrastructure/issues/98 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [x] ~~API support added~~ - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !5320
| * Added Rake task for tracking deploymentsdeployment-trackingYorick Peterse2016-07-191-0/+9
| | | | | | | | | | | | | | This simply inserts the current GitLab version in the "deployments" measurement. Fixes gitlab-com/infrastructure#98
* | Upgrade Gemojione from 2.6.1 to 3.0.1.Connor Shea2016-07-181-6/+11
|/ | | | | | | | | | | | | | | | This adds the 2016 emoji as well as support for using SVG images instead of PNGs. It also fixes a number of incorrectly categorized emoji and other minor issues. Upgrade Rake task for Gemojione 3.0.0 and generate sprites. Upgrade aliases.json by pulling down index.json from the gemojione repository and running the generate_aliases.rb file. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md#v301-2016-07-16 For the specific emoji added to the Unicode standard, see: http://emojione.com/releases/2.2.4/ Huge kudos to Jonathan Wiesel (@jonathanwiesel) for his work on the gemojione gem!
* Merge branch 'update-gemoji' into 'master' Robert Speicher2016-07-051-1/+1
|\ | | | | | | | | | | | | | | | | | | | | Add lib/gitlab/emoji.rb instead of gitlab_emoji gem and upgrade Gemojione - No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Unless there's a particularly good reason we were using the gem? - Fixes the Rake task since it broke after all the AwardEmoji changes. - Update gemojione to 2.6.1. Spring Update changes! http://emojione.com/releases/#2.2.0 See merge request !4919
| * Add emoji.rb in lib/gitlab instead of using the gitlab_emoji gem.update-gemojiConnor Shea2016-06-291-1/+1
| | | | | | | | | | | | | | | | No reason to split it into a separate gem when the gem barely did anything. We can use gemojione directly, making updating gemojione that much easier. Also fix the Rake task and update gemojione to 2.6.1. This adds the EmojiOne Spring update. Changelog: https://github.com/jonathanwiesel/gemojione/blob/master/CHANGELOG.md
* | Merge branch 'fix_restore_warning' into 'master' Rémy Coutable2016-06-301-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix restore warning message ## What does this MR do? Fix the restore Rake task so it properly outputs the database warning. This is a pretty important warning and it was not even being output. After this fix, the output looks like the screenshot below. ![Screen_Shot_2016-06-28_at_3.53.46_PM](/uploads/d250189d39fcacd0c8ec0aacf9cd930d/Screen_Shot_2016-06-28_at_3.53.46_PM.png) See merge request !4980
| * | Fix restore warning messageDrew Blessing2016-06-281-1/+2
| |/
* | Merge branch 'remove-converalls-gem' into 'master' Dmitriy Zaporozhets2016-06-301-3/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove coveralls as its unused This gem is unused so could be removed. @dzaporozhets @connorshea We've discussed this some time ago on Slack See merge request !5001
| * | Remove coveralls as its unusedremove-converalls-gemZ.J. van de Weg2016-06-301-3/+1
| |/
* | Create (if necessary) and link the gitlab-shell secret file on the rake ↵shardsAlejandro Rodríguez2016-06-291-0/+2
| | | | | | | | install task
* | Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-297-172/+191
|/
* added nice to have - rake task and some changes to docsJames Lopez2016-06-211-0/+13
|
* fixup! override content methodZ.J. van de Weg2016-06-201-1/+1
|
* Incorporate reviewZ.J. van de Weg2016-06-201-8/+10
|
* Run rake gitlab:update_templatesZ.J. van de Weg2016-06-201-1/+1
|
* Implement backend gitlab ci dropdownZ.J. van de Weg2016-06-201-32/+23
| | | | | | | This commit builds on the groundwork in ee008e300b1ec0abcc90e6a30816ec0754cea0dd, which refactored the backend so the same code could be used for new dropdowns. In this commit its used for templates for the `.gitlab-ci.yml` files.
* Refactor Gitlab::GitignoresZJ van de Weg2016-06-202-46/+61
|
* Properly quote table name in Rake task for MySQL and PostgreSQL compatibilityfix-issue-15259-postgresqlStan Hu2016-06-091-1/+1
| | | | | | !4318 broke the gitlab:db:drop_tables functionality for PostgreSQL. Closes #15259
* Merge branch 'fix_issue_15259' into 'master' Stan Hu2016-06-091-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix bug with SQL syntax error during backup restoration ## What does this MR do? It properly escapes the table name in the `DROP TABLE IF EXISTS ...` statement used during restore of a backup. ## Are there points in the code the reviewer needs to double check? Please check compatibility with PostgreSQL ## Why was this MR needed? Fix an issue with backups can not be restored if MySQL is used as database for GitLab. ## What are the relevant issue numbers? #15259 ## Screenshots (if relevant) - See merge request !4318
| * Fix bug with SQL syntax error during backup restorationDaniel Beyer2016-05-271-1/+1
| | | | | | closes #15259
* | Fix missed colorize methods.Connor Shea2016-06-061-1/+1
| |
* | Replace colorize gem with rainbow.Connor Shea2016-06-0315-189/+189
|/ | | | | | | | | | | | | Colorize is a gem licensed under the GPLv2, so we can’t use it in GitLab without relicensing GitLab under the terms of the GPL. Rainbow is licensed under the MIT license and does the exact same thing as Colorize, so Rainbow was added in place of Colorize. The syntax is slightly different for Rainbow vs. Colorize, and was updated in accordance. The gem is still a dependency of Spinach, so it’s included in the development/test environments, but won’t be packaged with the actual product, and therefore doesn’t require we relicense the product. An attempt at relicensing Colorize was made, but didn’t succeed as the library owner never responded. Rainbow library: https://github.com/sickill/rainbow Relevant issue regarding licensing in GitLab's gems: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3775
* Switch the gitlab:db:configure task to use tables.any? instead of looking ↵DJ Mountney2016-05-251-1/+1
| | | | specifically for the schema_migrations table
* Update hash syntax and add changelog for the gitlab:db:configure rake taskDJ Mountney2016-05-251-2/+1
|
* Add a gitlab:db:configure rake task to handle conditionally seeding or ↵DJ Mountney2016-05-251-0/+11
| | | | migrating the database.
* Merge branch 'fix-registry-backups' into 'master' Douwe Maan2016-05-251-6/+14
|\ | | | | | | | | | | | | Fix backups if registry is disabled Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/17749 See merge request !4263
| * Fix backups if registry is disabledKamil Trzcinski2016-05-231-6/+14
| |
* | Add rubocop-rspecrs-rubocop-rspecRobert Speicher2016-05-231-0/+1
|/ | | | | Almost all cops are starting as disabled until we can fix their violations.
* Update API and fetching taskZeger-Jan van de Weg2016-05-201-12/+32
|
* Backend for a gitignores dropdownZeger-Jan van de Weg2016-05-201-0/+26
|
* Fixed advice on invalid permissions on upload pathJazz2016-05-191-1/+1
|
* Added backup of container registryKamil Trzcinski2016-05-161-0/+21
|
* Merge branch 'remove-annotate-gem' into 'master' Yorick Peterse2016-05-101-44/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the annotate gem and delete old annotations In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382 /cc @yorickpeterse See merge request !4099
| * Remove the annotate rake taskJeroen van Baarsen2016-05-101-44/+0
| |
* | Merge branch 'cascade_drop' into 'master' Robert Speicher2016-05-091-1/+3
|\ \ | |/ |/| | | | | | | | | Add if exists to drop command Add `IF EXISTS` as a precaution. Related to gitlab-org/gitlab-ce!4020 See merge request !4100