{"id":4537,"date":"2018-02-13T09:20:52","date_gmt":"2018-02-13T14:20:52","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=4537"},"modified":"2018-02-13T09:20:52","modified_gmt":"2018-02-13T14:20:52","slug":"codeship-integration","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/","title":{"rendered":"Load Testing on Codeship with Redline13 &#8211; it just makes sense"},"content":{"rendered":"<p><a href=\"https:\/\/codeship.com\/features\" target=\"_blank\" rel=\"noopener\"><strong>Codeship<\/strong><\/a> &#8211; A Continuous Integration Platform in the cloud that fits your needs.<\/p>\n<p><strong>Codeship + Redline13<\/strong> &#8211; makes load testing easy and (almost) free.<\/p>\n<p>Codeship provides Basic and Pro.<\/p>\n<ul>\n<li>For Codeship Pro integration, read\u00a0Codeship Pro Integration<\/li>\n<\/ul>\n<p>When looking at the easy and quick nature of building software with Codeship it just made sense to put together a Codeship integration.\u00a0 Redline13 already has the <a href=\"https:\/\/www.redline13.com\/ApiDoc\" target=\"_blank\" rel=\"noopener\">API<\/a>\u00a0and examples to do this.<\/p>\n<p>With this Codeship integration, you have the tools for your Codeship build to kick off a Redline13 load test (of any scale), wait for results, and report back if your test is considered a success or failure.<\/p>\n<h3>1 &#8211; In your Codeship environment you can add the following variables.<\/h3>\n<ul>\n<li>REDLINE_API_KEY &#8211; your api\u00a0key from\u00a0https:\/\/www.redline13.com\/Account\/apikey<\/li>\n<li>TIMEOUT &#8211; How long to wait for your test to run<\/li>\n<li>SUCCESS_RATE &#8211; Percent of tests that must complete success for build to pass<\/li>\n<li>RESPONSE_TIME &#8211; Average response time must be less than this for build to pass<\/li>\n<\/ul>\n<figure id=\"attachment_4538\" class=\"wp-caption aligncenter\" style=\"max-width: 730px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4538\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Environment-Variables.png\" alt=\"Setting environment variables in Codeship at the project level\" width=\"730\" height=\"421\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Environment-Variables.png 1386w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Environment-Variables-300x173.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Environment-Variables-1024x591.png 1024w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Environment-Variables-768x443.png 768w\" sizes=\"auto, (max-width: 730px) 100vw, 730px\" \/><figcaption class=\"wp-caption-text\">Setting environment variables in Codeship at the project level<\/figcaption><\/figure>\n<h3>2. Setup your Codeship\u00a0project and execute script to complete your Codeship Integration<\/h3>\n<ul>\n<li>You can execute\u00a0this script many ways, this demo shows using script and custom command.<\/li>\n<li>Redline13 APIs can be called from nodejs, php, python, or any language of your choice<\/li>\n<li>If you running JMeter, Gatling, or Custom Tests you will probably be passing in files from your repo &#8211; please adjust the path in the curl command below to find your test files<\/li>\n<li>You need to add both setup\u00a0and test commands<\/li>\n<li>Setup Command\n<ul>\n<li>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">## Download script\ncurl -sSL https:\/\/raw.githubusercontent.com\/redline13\/codeship-redline13\/master\/codeship-basic.sh &gt; codeship.sh\n\n## Make it executable\nchmod +x codeship.sh<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>Test Command\n<ul>\n<li>The curl command you pass in can be customized to run any supported load test with your own configuration of cloud load agents.<\/li>\n<li>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">## Execute Script and pass in CURL command to run test.\n## Note the escaped quotes to properly pass in the command\n.\/codeship.sh 'curl -s https:\/\/www.redline13.com\/Api\/LoadTest -H \\\"X-Redline-Auth: ${REDLINE_API_KEY}\\\" -F testType=jmeter-test -F name=CodeShipAndRedLine13 -F \\\"file=@`pwd`\/tests\/Plexify.jmx\\\" -F numServers=1 -F storeOutput=T -F servers[0][location]=us-east-1 -F servers[0][size]=m3.medium -F servers[0][num]=1 -F servers[0][onDemand]=T -F servers[0][usersPerServer]=1'<\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>3. Converting existing load test into a Codeship Load Test<\/h3>\n<ul>\n<li>Goto the report page for any load test<\/li>\n<li>Click the Export button<\/li>\n<li>Select the CI system you would like to export to.<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-4602 alignnone\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Export-Button.png\" alt=\"\" width=\"581\" height=\"119\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Export-Button.png 977w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Export-Button-300x61.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Export-Button-768x157.png 768w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/li>\n<\/ul>\n<h3>4. Here is what it looks like in Codeship when your job builds<\/h3>\n<ul>\n<li>You can see results and progress on the test running.<\/li>\n<li><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4601 aligncenter\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Basic-Example-Output.png\" alt=\"\" width=\"1426\" height=\"986\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Basic-Example-Output.png 1426w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Basic-Example-Output-300x207.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Basic-Example-Output-1024x708.png 1024w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship-Basic-Example-Output-768x531.png 768w\" sizes=\"auto, (max-width: 1426px) 100vw, 1426px\" \/><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Happy testing.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codeship &#8211; A Continuous Integration Platform in the cloud that fits your needs. Codeship + Redline13 &#8211; makes load testing easy and (almost) free. Codeship provides Basic and Pro. For Codeship Pro integration, read\u00a0Codeship Pro Integration When looking at the easy and quick nature of building software with Codeship it just made sense to put together a Codeship integration.\u00a0 Redline13 already has the API\u00a0and examples to do this. With this Codeship integration, you have the tools<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4559,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,24,25,35],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-user","4":"post-4537","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-codeship","10":"category-continuous-integration","11":"category-load-testing"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Codeship Integration with Redline13 for easy load testing<\/title>\n<meta name=\"description\" content=\"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Codeship Integration with Redline13 for easy load testing\" \/>\n<meta property=\"og:description\" content=\"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-13T14:20:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship.png\" \/>\n\t<meta property=\"og:image:width\" content=\"225\" \/>\n\t<meta property=\"og:image:height\" content=\"225\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"RedLine13\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"RedLine13\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\"},\"author\":{\"name\":\"RedLine13\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\"},\"headline\":\"Load Testing on Codeship with Redline13 &#8211; it just makes sense\",\"datePublished\":\"2018-02-13T14:20:52+00:00\",\"dateModified\":\"2018-02-13T14:20:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\"},\"wordCount\":367,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"articleSection\":[\"Blog\",\"Codeship\",\"Continuous Integration\",\"Load Testing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\",\"name\":\"Codeship Integration with Redline13 for easy load testing\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2018-02-13T14:20:52+00:00\",\"dateModified\":\"2018-02-13T14:20:52+00:00\",\"description\":\"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Load Testing on Codeship with Redline13 &#8211; it just makes sense\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\",\"name\":\"RedLine13\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"caption\":\"RedLine13\"},\"sameAs\":[\"http:\/\/127.0.0.1\"],\"url\":\"https:\/\/www.redline13.com\/blog\/author\/user\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Codeship Integration with Redline13 for easy load testing","description":"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/","og_locale":"en_US","og_type":"article","og_title":"Codeship Integration with Redline13 for easy load testing","og_description":"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.","og_url":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/","og_site_name":"RedLine13","article_published_time":"2018-02-13T14:20:52+00:00","og_image":[{"width":225,"height":225,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2018\/02\/Codeship.png","type":"image\/png"}],"author":"RedLine13","twitter_card":"summary_large_image","twitter_misc":{"Written by":"RedLine13","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/"},"author":{"name":"RedLine13","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28"},"headline":"Load Testing on Codeship with Redline13 &#8211; it just makes sense","datePublished":"2018-02-13T14:20:52+00:00","dateModified":"2018-02-13T14:20:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/"},"wordCount":367,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"articleSection":["Blog","Codeship","Continuous Integration","Load Testing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/","url":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/","name":"Codeship Integration with Redline13 for easy load testing","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2018-02-13T14:20:52+00:00","dateModified":"2018-02-13T14:20:52+00:00","description":"Codeship + Redline13 - makes load testing easy and (almost) free. Five simple steps for a Redline13 Codeship integration.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2018\/02\/codeship-integration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Load Testing on Codeship with Redline13 &#8211; it just makes sense"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28","name":"RedLine13","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","caption":"RedLine13"},"sameAs":["http:\/\/127.0.0.1"],"url":"https:\/\/www.redline13.com\/blog\/author\/user\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=4537"}],"version-history":[{"count":0,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4537\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/4559"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=4537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=4537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=4537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}