Commit graph

29 commits

Author SHA1 Message Date
Kamil Trzcinski
16592e2b45 Fix review comments
- Remove unused Gitlab::Application.routes.url_helpers from Ci::Build
- Remove too much logic from a view, use Ci::Commit.matrix_builds
- Use ci_status_with_icon
- Don't describe symbols
2016-03-14 13:33:26 +01:00
Kamil Trzcinski
0672258915 Cleanup CiCommit and CiBuild
- Remove all view related methods from Ci::Build and CommitStatus
- Remove unused Ci::Commit and Ci::Build methods
- Use polymorphism to render different types of CommitStatus
2016-03-14 13:20:35 +01:00
Kamil Trzcinski
73be775cd7 Fix ci_build trace trait 2016-02-19 19:31:57 +01:00
Grzegorz Bizon
86a49dfb88 Move build erasable implementation from concern to model
Discussion:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/2560#note_3659905
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
21152d7d51 Use DELETE verb for erasing a build content
Also added API specs for that
2016-02-19 17:24:59 +01:00
Grzegorz Bizon
89b181204c Use build artifacts trait in build specs 2016-02-19 17:24:03 +01:00
Tomasz Maczukin
49d5c35b69 Fix old usages of ci_runner factory 2016-02-19 13:18:49 +01:00
Douwe Maan
30b0d06e9f Fix specs 2016-01-28 15:10:48 +01:00
Kamil Trzcinski
9b0f57781e Add method that calculates total size for artifacts subfolder 2016-01-20 21:55:13 +01:00
Kamil Trzcinski
ac652d82f1 Let the CI runner know about builds that this build depends on
This allows us to implement artifacts passing: runner will download artifacts from all prior builds
2016-01-14 19:45:55 +01:00
Grzegorz Bizon
f80d7a868e Update build model specs 2016-01-14 12:48:16 +01:00
Grzegorz Bizon
cfffc9eff2 Update build specs for artifacts browser support 2016-01-14 12:48:15 +01:00
Grzegorz Bizon
5ff7ec42dc Add method that checks if artifacts browser is supported
This is needed because of backward compatibility. Previously artifacts
archive had `.tar.gz` format, but artifacts browser requires ZIP format
now.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
8eeed761a9 Update specs for CI Build, add artifacts? method
`artifacts?` method checks if artifacts archive is available.
2016-01-14 12:48:14 +01:00
Grzegorz Bizon
9e0e9342a4 Rename method that returns url to CI build artifacts download 2016-01-14 12:48:14 +01:00
Douwe Maan
17ed42e362 Merge branch 'issue_3452' 2015-12-21 17:43:58 +01:00
Jared Szechy
5a3237fd8d Fix build coverage regex.
Added a spec for regex captures as well.

Fixes #2644
2015-12-20 13:18:14 -05:00
Rubén Dávila
0861b67f45 Fix broken spec. #3452 2015-12-16 14:37:57 -05:00
Rubén Dávila
3f83a1585f Add link to MR from Build detail page. #3452 2015-12-16 11:54:48 -05:00
Kamil Trzcinski
dd8102f2d1 Fix specs 2015-12-11 18:02:10 +01:00
Kamil Trzcinski
513d551c8f Fix after column rename 2015-12-11 18:02:10 +01:00
Kamil Trzcinski
64bfd9d71a Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00
Kamil Trzcinski
e80e3f5372 Migrate CI::Project to Project 2015-12-11 18:02:09 +01:00
Douwe Maan
1e8d703a85 Tag model specs 2015-12-09 10:50:51 +01:00
Kamil Trzcinski
d0e3e823a2 Implement Build Artifacts
- Offloads uploading to GitLab Workhorse
- Use /authorize request for fast uploading
- Added backup recipes for artifacts
- Support download acceleration using X-Sendfile
2015-11-10 12:51:50 +01:00
Kamil Trzciński
a3a80eac11 Merge branch 'show_pending_warning' into 'master'
Show warning when build is pending and there are not runners

This change is based on: !1530.

This resolves #2967.



See merge request !1573
2015-10-14 18:57:05 +00:00
Kamil Trzcinski
7af4f5215e Show warning if build doesn't have runners with specified tags or runners didn't connect recently
Slightly refactor runner status detection: moving it to Runner class

Signed-off-by: Kamil Trzcinski <ayufan@ayufan.eu>
2015-10-14 17:29:18 +02:00
Kamil Trzcinski
7b5ab3ded5 Added CI_BUILD_TAG, _STAGE, _NAME and _TRIGGERED to CI builds 2015-10-14 17:28:17 +02:00
Kamil Trzcinski
914cfbd2f1 Implement Commit Status API 2015-10-12 11:53:49 +02:00
Renamed from spec/models/ci/build_spec.rb (Browse further)