This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -ex | |
| BUILD_NUMBER=${TRAVIS_BUILD_NUMBER:-45} | |
| DEPLOY_ENV=${TRAVIS_DEPLOY_ENV:-staging} | |
| echo "Starting deployment using terraform, build number: $BUILD_NUMBER, environment: $DEPLOY_ENV" | |
| cd ./ops/terraform |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| provider "aws" { | |
| region = "${var.aws_region}" | |
| max_retries = 21 | |
| } | |
| terraform { | |
| backend "s3" { | |
| key = "terraform.tfstate" # This is overriden by the backend-config flag when calling deploy.sh | |
| region = "us-east-1" # Todo - i'm not sure where this can come through as a variable | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_deploy: | |
| - wget https://releases.hashicorp.com/terraform/0.11.5/terraform_0.11.5_linux_amd64.zip -O /tmp/terraform.zip | |
| - sudo unzip -d /usr/local/bin/ /tmp/terraform.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: node_js | |
| env: | |
| - TRAVIS_DEPLOY_ENV=staging | |
| APP_VERSION=v$TRAVIS_BUILD_NUMBER | |
| services: | |
| - docker | |
| node_js: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM risingstack/alpine:3.4-v6.9.4-4.2.0 | |
| ARG APP_VERSION=local | |
| ENV PORT 3001 | |
| ENV APP_VERSION ${APP_VERSION} | |
| EXPOSE 3001 | |
| COPY package.json package.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "es6", | |
| "module": "commonjs", | |
| "outDir": "dist", | |
| "sourceMap": true | |
| }, | |
| "files": [ | |
| "./node_modules/@types/mocha/index.d.ts", | |
| "./node_modules/@types/node/index.d.ts" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Http; | |
| namespace TestFileUpload | |
| { | |
| public class FileUploadController : ApiController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public BookingEventStep WithLocation(string location) | |
| { | |
| _webdriver.ScrollElementToMiddle(LocationInput); | |
| LocationInput.FillText(location); | |
| var wait = new WebDriverWait(_webdriver, TimeSpan.FromSeconds(10)); | |
| wait.Until(ExpectedConditions.ElementToBeClickable(By.ClassName("pac-item"))); | |
| LocationInput.SendKeys(Keys.ArrowDown); | |
| LocationInput.SendKeys(Keys.ArrowDown); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class LoginPage{ | |
| private IWebDriver _webDriver; | |
| public LoginPage(IWebDriver webDriver){ | |
| _webDriver = webDriver; | |
| } | |
| [FindsBy(How = How.Name, Using = "username")] | |
| private IWebElement UsernameInputElement {get;set;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SessionLifetimeManager<T> : Microsoft.Practices.Unity.LifetimeManager | |
| { | |
| private string key; | |
| public SessionLifetimeManager() | |
| { | |
| this.key = typeof(T).Name; | |
| } | |
| /// <summary> |