304 Commits

Author SHA1 Message Date
Markus Kahl 9e4fbf3b7b ensure primary keys are named correctly 2021-04-07 09:36:08 +01:00
ulferts 7b68d14b4c Merge branch 'release/11.2' into dev 2021-04-06 10:11:06 +02:00
Markus Kahl f4a859ef96 improved migration script (no local mysql required anymore ...)
... support for custom or sql output format; migrate to latest version, not just 10
2021-04-01 12:00:27 +01:00
Oliver Günther ac049663a3 Add multiple option for project custom fields (#9125)
* Allow multi-select CFs for projects

* Render multiple custom values in project row

* Output arrays from custom_value_attributes for multiselect values

* Add spec for copying multi-value cf

* Fix custom field multiselect form on new custom fields

* Fix custom field builder specs

* Add spec for creating/updating projects with multi select

* Add spec to create new multi select project cfs

* Add spec for projects index displaying of custom fields
2021-03-30 17:29:32 +02:00
Oliver Günther 5db2af74ae Remove superfluous check for pull request
[ci skip]
2021-02-19 09:36:19 +01:00
Oliver Günther ddfbc1bd68 Add a very basic github action rspec extractor 2021-02-19 07:51:57 +01:00
ulferts 1bdd2ab9ae safe automatic fixes by rubocop (#8994) 2021-02-11 16:02:18 +01:00
Cyril Rohr b4086b2968 Standalone CI docker container (#8943) 2021-02-02 15:33:33 +01:00
ulferts 6140f4c7e9 update copyright to 2021 (#8925)
Updates the copyright to 2021 for all files that have a copyright. Files in our source code without the copyright header still do not receive one automatically. Additionally, backlisted files are also excluded.

Previously the copyright of chiliproject which references redmine stated a copyright of redmine up to and including 2017 which is not true for the code we have in here. Because of that I changed that to 2013
2021-01-13 17:47:45 +01:00
ulferts c383c5821f Fix/remove cucumber (#8847)
* replace very last cuke with spec

* remove cuke support files

* remove cucumber gems

* remove traces of cucumber

* remove no longer required route

* forcefully clear parallel_test features task

* attempt removal of binstub

* attempt to stabilize spec
2020-11-16 09:20:51 +00:00
Benjamin Bädorf 5f45ee07ab Move development docker-compose file to the main directory (#8798)
* Move development docker-compose file to the main directory

This requires us to move some other files around, like the pullpreview and example docker-compose file for production
setups. This commit also does some housekeeping, like removing some old files and deduping configuration.

* Updated to selenium grid

* Fix in-Docker Selenium tests

The Selenium tests now run inside a Docker Chrome Container. Backwards compatability with non-docker setups is not
guaranteed, though it should not be hard to implement with a couple of small fixes.

* Updated docker development documentation

* Improved test timings, changed the documentation

* Updated docker testing again

* Run npm in the frontend directory

* Really run npm in the frontend directory

* Also run npm in frontend when setting up travis cache

* Change directory for one command only

* Change default test driver name

* CI test change fixes

* Fixed syntax error

* Added dev check

* Trying to fix firefox resizing

* Trying to get tests running

* Stop resizing firefox

* Fixed apple icon spec

* fix host in url helpers for omniauth spec

* Fix omniauth specs

* Fix docs

* Small fixes to docker tests

* Added package.json back in

* Change env variables

Co-authored-by: Markus Kahl <machisuji@gmail.com>
2020-11-12 14:05:03 +00:00
Jonas Plum 035f684385 Update migrate-from-pre-8.sh (#8789)
This is more aligned with later steps in https://docs.openproject.org/installation-and-operations/misc/upgrading-older-openproject-versions/ 

Currently the script creates an sql file, while the documentation describes pg_restore to restore it. This would not work, as pg_restore cannot restore sql files.
2020-10-26 09:50:00 +00:00
ulferts 647c9c4dbd fix cucumber runs on travis 2020-09-28 11:07:32 +02:00
ulferts 1fd6f09336 explicitly setup parallel_tests binstub on travis 2020-09-28 10:18:58 +02:00
Oliver Günther ac4c15791a Explicitly install danger binstub 2020-09-25 11:37:24 +02:00
Oliver Günther d463f51795 Cache webdrivers on CI in cache_prepare step (#8697)
This may prevent the github 429 requests we keep seeing.
2020-09-22 11:18:30 +02:00
Oliver Günther 942e7ba50b Use travis/pro that requires authentication for new repo
We migrated the repo from travis-ci.org to travis-ci.com, this
unfortunately requires PR error fetching to be authenticated from now
on.

Related issue: https://github.com/travis-ci/travis.rb/issues/729

[ci skip]
2020-03-27 08:29:02 +01:00
Oliver Günther 32133fa87c Remove from ci setup and runner 2020-02-21 08:45:55 +01:00
Markus Kahl d7ddbd3ac3 added table schema fix again and fixed it
it can be removed once 10.4 is released and published on docker hub
in which case the tag below for op10 has to be updated too
2020-02-11 09:44:16 +00:00
Markus Kahl 7e069d2bc6 use op8 container with mysql support 2020-02-11 09:42:58 +00:00
Markus Kahl 3f97c39ed4 Revert "removed obsolete step (mysql migration script takes care of this now)"
This reverts commit 11cf60604d.
2020-02-11 09:29:08 +00:00
Markus Kahl 11cf60604d removed obsolete step (mysql migration script takes care of this now) 2020-02-06 12:50:31 +00:00
Oliver Günther 6ff2bd4541 Migrate schema from db to public in mysql migration script
[ci skip]
2020-02-05 10:51:37 +01:00
Oliver Günther 9043e1b876 Merge remote-tracking branch 'origin/release/10.3' into dev 2020-02-05 08:25:08 +01:00
Markus Kahl 25d5363416 Script to migrate old OPs from MySQL to Postgres 2020-02-03 14:33:17 +00:00
Henriette Dinger bd7f4e4814 Update copyright notice 2020-01-15 11:31:26 +01:00
Oliver Günther bdad2ae1b2 Skip dangerfile 2019-11-14 15:37:47 +01:00
Oliver Günther b8b046e16b Fix travis log on hash result
[ci skip]
2019-09-23 06:50:17 +02:00
Wieland Lindenthal 99b6850b75 Add ENV variable OPENPROJECT_EDITION to runner.sh 2019-07-12 12:10:38 +02:00
Oliver Günther 8fd9f37fd0 Provide script to print all failing rspecs from travis build
travis_pr_errors prints all errors from the last build on the PR that
your branch is currently on.

[ci skip]
2019-07-07 19:15:56 +02:00
Oliver Günther 880a7e57ec Circumvent travis cache bug with ENV RECOMPILE_ON_TRAVIS_CACHE_ERROR 2019-06-19 09:31:44 +02:00
Oliver Günther 13ac8b3680 Recompile if cached file missing 2019-06-18 13:17:56 +02:00
Oliver Günther b0c8779e9c Switch to combined translations output 2019-06-18 10:38:38 +02:00
ulferts 8e395c5982 remove mysql from ci 2019-06-05 21:17:25 +02:00
Wieland Lindenthal d7fce84b9f Extend Travis CI to test BIM edtion with postgres by adding ENV variable OPENPROJECT_EDITION 2019-03-28 16:27:36 +01:00
Oliver Günther 6c3744ce3d Be careful not to add + 1 to initial start_revision
When db_revision is nil, the start_revision is added by one before
looking up revisions, skipping the first revision since it returns
1 instead of 0 for the first revision.
2019-02-19 10:43:05 +01:00
Oliver Günther 1dab873e7b Remove legacy repo specs as they are doubled in svn/git model spec 2019-02-18 15:38:12 +01:00
Oliver Günther bc9d61843d Allow skipping mysql for saas 2018-12-10 14:08:10 +01:00
Oliver Günther e047096c1d Disable watch mode 2018-10-25 12:04:58 +02:00
Jens Ulferts c72b89982e fail travis if preliminary steps fail 2018-10-02 10:00:57 +02:00
Jens Ulferts 1c4571180c update parallel_testing task 2018-10-01 09:47:52 +02:00
Oliver Günther a58636592d Merge pull request #6680 from opf/fix/optimize_travis_caching
Fix/optimize travis caching

[ci skip]
2018-09-25 07:32:07 +02:00
Jens Ulferts dc18ad856d check avoid caching node modules 2018-09-24 08:37:12 +02:00
Jens Ulferts ad2f428189 move ci script files 2018-09-19 08:10:23 +02:00
Jens Ulferts b843dc79a7 move additional steps into dedicated branches 2018-09-18 08:12:32 +02:00
Jens Ulferts 413139d65c rely on caching stage on travis 2018-09-17 20:28:11 +02:00
Oliver Günther fbb95f035e [28524] Disable no_auto_create_user sql_mode
It should be disabled by default and is removed with MySQL 8.0

https://community.openproject.com/wp/28524
2018-09-17 15:23:08 +02:00
Oliver Günther b45a63bdd2 Run npm job without DB 2018-07-24 11:08:48 +02:00
Oliver Günther 313c5594d4 Fix moves incorrectly loading legacy angularjs 2018-06-25 09:38:01 +02:00
Jens Ulferts 7a5a9b91ed place CLI env var in same file as running the spec to have them take effect 2018-06-11 23:51:40 +02:00