-
-
- +
-
{{#link-to "account" account}}Repositories{{/link-to}}
{{#if view.displayUser}}
- - +
-
{{#link-to "accounts.info"}}Profile{{/link-to}}
@@ -14,7 +14,7 @@ {{#if config.billingEndpoint}} -
- Billing + Billing
{{/if}}
diff --git a/app/templates/profile/tabs/user.hbs b/app/templates/profile/tabs/user.hbs
index 93ee5043..b10cf139 100644
--- a/app/templates/profile/tabs/user.hbs
+++ b/app/templates/profile/tabs/user.hbs
@@ -1,4 +1,4 @@
- - - {{user.login}} + {{user.login}}
- +
- My Repositories {{#if config.pro}} -
- +
- Running ({{startedJobsCount}}/{{allJobsCount}}) {{/if}} -
- +
-
{{#link-to "profile" trackEvent="add-repository-from-list" title="Add New Repository"}}
{{/link-to}}
diff --git a/app/templates/repos/show/tabs.hbs b/app/templates/repos/show/tabs.hbs
index d771665a..e6cae01c 100644
--- a/app/templates/repos/show/tabs.hbs
+++ b/app/templates/repos/show/tabs.hbs
@@ -1,34 +1,34 @@
-
-
- +
- {{#if repo.slug}} {{#link-to "repo" repo current-when="repo.index"}} Current {{/link-to}} {{/if}} -
- +
- {{#if repo.slug}} {{#link-to "branches" repo}} Branches {{/link-to}} {{/if}} -
- +
- {{#if repo.slug}} {{#link-to "builds" repo}} Build History {{/link-to}} {{/if}} -
- +
- {{#if repo.slug}} {{#link-to "pullRequests" repo}} Pull Requests {{/link-to}} {{/if}} -
- +
- {{#if build.id}} {{#if repo.slug}} {{#link-to "build" repo build}} @@ -37,7 +37,7 @@ {{/if}} {{/if}} -
- +
- {{#if job.id}} {{#if repo.slug}} {{#link-to "job" repo job}} @@ -46,14 +46,14 @@ {{/if}} {{/if}} -
- +
- {{#if repo.slug}} {{#link-to "settings" repo}} Settings {{/link-to}} {{/if}} -
- +
- {{#if repo.slug}} {{#link-to "requests" repo}} Requests @@ -61,7 +61,7 @@ {{/if}} {{#if config.caches_enabled}} -
- +
- {{#if repo.slug}} {{#link-to "caches" repo}} Caches @@ -70,7 +70,7 @@ {{/if}} -
- +
-
{{#if request.id}}
{{#if repo.slug}}
{{#link-to "request" repo request}}
diff --git a/app/templates/request.hbs b/app/templates/request.hbs
index 0f556e01..71c922c6 100644
--- a/app/templates/request.hbs
+++ b/app/templates/request.hbs
@@ -1,10 +1,10 @@
-+
{{status}}{{#unless isAccepted}}: {{message}}{{/unless}}
{{#if isPullRequest}} This request is based on the - #{{pullRequestNumber}} + #{{pullRequestNumber}} pull request. {{else}} This request is based on a commit {{format-commit commit}} by {{commit.authorName}} diff --git a/app/templates/requests.hbs b/app/templates/requests.hbs index 14a0bce2..603b2220 100644 --- a/app/templates/requests.hbs +++ b/app/templates/requests.hbs @@ -1,7 +1,7 @@ {{#if config.pro}}
Travis Lint for clean .yml files - lint.travis-ci.org/{{repo.slug}} + lint.travis-ci.org/{{repo.slug}}
+diff --git a/app/templates/top.hbs b/app/templates/top.hbs index a62e3c5c..2e7716b2 100644 --- a/app/templates/top.hbs +++ b/app/templates/top.hbs @@ -4,7 +4,7 @@{{#if job.repo.slug}} - + {{#link-to "job" job.repo job}}{{job.repo.slug}}{{/link-to}} {{/if}} @@ -17,7 +17,7 @@Duration: - + {{format-duration job.duration}}
diff --git a/app/templates/settings/index.hbs b/app/templates/settings/index.hbs index eb576cb7..f373c693 100644 --- a/app/templates/settings/index.hbs +++ b/app/templates/settings/index.hbs @@ -15,7 +15,7 @@-
+
{{input value=settings.maximum_number_of_builds size="4" pattern='/^[0-9]+$/'}}
-
+
- Blog
- Status @@ -29,25 +29,27 @@ {{/if}} -
- +
-
{{#if auth.signedOut}} {{/if}} {{#if auth.signedIn}} - {{#link-to "profile" class="signed-in"}}{{userName}}
{{/link-to}} + {{#link-to "profile" class="signed-in"}}{{userName}} +
+ {{/link-to}} {{/if}} {{#if auth.signingIn}} @@ -60,7 +62,7 @@
{{#if config.billingEndpoint}}
- - Billing + Billing {{/if}}
- diff --git a/app/utils/keys-map.coffee b/app/utils/keys-map.coffee index 7f6a7236..89c9b703 100644 --- a/app/utils/keys-map.coffee +++ b/app/utils/keys-map.coffee @@ -3,6 +3,7 @@ languageConfigKeys = { php: 'PHP' node_js: 'Node.js' perl: 'Perl' + perl6: 'Perl6' python: 'Python' scala: 'Scala' ruby: 'Ruby' diff --git a/app/views/pre.coffee b/app/views/pre.coffee index 7b6e4d96..708deab4 100644 --- a/app/views/pre.coffee +++ b/app/views/pre.coffee @@ -23,6 +23,24 @@ Log.Scroll.prototype = $.extend new Log.Listener, $('#main').scrollTop(0) $('html, body').scrollTop(element.offset()?.top - (window.innerHeight / 3)) # weird, html works in chrome, body in firefox +Log.Limit = (max_lines, limitedLogCallback) -> + @max_lines = max_lines || 1000 + @limitedLogCallback = limitedLogCallback || (->) + this + +Log.Limit.prototype = Log.extend new Log.Listener, + count: 0, + insert: (log, node, pos) -> + if node.type == 'paragraph' && !node.hidden + @count += 1 + if @limited + @limitedLogCallback() + return @count + +Object.defineProperty Log.Limit.prototype, 'limited', + get: -> + @count >= @max_lines + View = BasicView.extend templateName: 'jobs/pre' currentUserBinding: 'controller.auth.currentUser' @@ -66,7 +84,10 @@ View = BasicView.extend console.log 'log view: create engine' if Log.DEBUG @scroll = new Log.Scroll beforeScroll: => @unfoldHighlight() - @engine = Log.create(limit: Log.LIMIT, listeners: [@scroll]) + @limit = new Log.Limit Log.LIMIT, => + @set('limited', true) + @engine = Log.create(listeners: [@scroll, @limit]) + @engine.limit = @limit @logFolder = new LogFolder(@$().find('#log')) @lineSelector = new LinesSelector(@$().find('#log'), @scroll, @logFolder) @observeParts() @@ -85,13 +106,8 @@ View = BasicView.extend console.log 'log view: parts did change' if Log.DEBUG for part, i in parts.slice(start, start + added) # console.log "limit in log view: #{@get('limited')}" - break if @get('limited') + break if @engine?.limit?.limited @engine.set(part.number, part.content) - @propertyDidChange('limited') - - limited: (-> - @engine?.limit?.limited - ).property() plainTextLogUrl: (-> if id = @get('log.job.id') diff --git a/ci/prepare_testem.rb b/ci/prepare_testem.rb new file mode 100644 index 00000000..143268d5 --- /dev/null +++ b/ci/prepare_testem.rb @@ -0,0 +1,10 @@ +require 'json' + +pull_request = ENV['TRAVIS_PULL_REQUEST'] != 'false' + +testem = JSON.parse(File.read('testem.json')) + +testem['launch_in_ci'] = ['PhantomJS'] +testem['launch_in_ci'] += ['SL_chrome', 'SL_firefox'] unless pull_request + +File.open('testem.json', 'w') { |f| f.write testem.to_json } diff --git a/package.json b/package.json index ec6ac9c6..474b9a91 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,6 @@ "ember-cli-uglify": "1.0.1", "ember-data": "1.0.0-beta.16.1", "ember-export-application-global": "^1.0.2", - "ember-try": "0.0.5" + "ember-try": "0.0.7" } } diff --git a/public/images/svg/notice-flag.svg b/public/images/svg/notice-flag.svg new file mode 100644 index 00000000..16ab669c --- /dev/null +++ b/public/images/svg/notice-flag.svg @@ -0,0 +1,7 @@ + + + diff --git a/testem.json b/testem.json index 7f180924..5f909db9 100644 --- a/testem.json +++ b/testem.json @@ -3,9 +3,11 @@ "test_page": "tests/index.html?hidepassed", "launch_in_ci": [ "SL_chrome", - "SL_firefox" + "SL_firefox", + "PhantomJS" ], "launch_in_dev": [ + "PhantomJS" ], "launchers": { "SL_chrome": {
{{#link-to "repo" repo}}{{repo.slug}}{{/link-to}}
{{description}}
diff --git a/app/templates/repos.hbs b/app/templates/repos.hbs index f69e9684..7bf3f1d4 100644 --- a/app/templates/repos.hbs +++ b/app/templates/repos.hbs @@ -22,10 +22,10 @@ {{#collection 'repos-list' content=this}} {{#with view.repo as repo}} -{{#if repo.slug}} - + {{#link-to "repo" repo class="slug"}}{{repo.slug}}{{/link-to}} {{/if}}
@@ -44,7 +44,7 @@Duration: - + {{format-duration repo.lastBuildDuration}}
@@ -52,7 +52,7 @@Finished: - + {{format-time repo.lastBuildFinishedAt}}
diff --git a/app/templates/repos/list/tabs.hbs b/app/templates/repos/list/tabs.hbs index 7faf4ba2..fc8723a8 100644 --- a/app/templates/repos/list/tabs.hbs +++ b/app/templates/repos/list/tabs.hbs @@ -1,16 +1,16 @@-
-