Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created December 25, 2016 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/28b6cce83d940f569cfb9e7c48e0b536 to your computer and use it in GitHub Desktop.
Save guitarrapc/28b6cce83d940f569cfb9e7c48e0b536 to your computer and use it in GitHub Desktop.
dependencies:
pre:
# refer .net core installation for Ubuntu 16.x : https://www.microsoft.com/net/core#linuxubuntu
- sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
- sudo apt-get update
# refer dotnet version : https://www.microsoft.com/net/download/linux
# do not use .net core 1.1
# - sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177
# use .net core 1.0
- sudo apt-get install dotnet-dev-1.0.0-preview2-003156
override:
- dotnet restore
test:
override:
# build runner
- cd AWSLambdaCSharpIntroduction/LambdaShared && dotnet build
- cd AWSLambdaCSharpIntroduction/GithubWebhook/GithubWebhook && dotnet build
- cd AWSLambdaCSharpIntroduction/SendToChatwork/SendToChatwork && dotnet build
- cd AWSLambdaCSharpIntroduction/SimpleAsyncFunction/SimpleAsyncFunction && dotnet build
- cd AWSLambdaCSharpIntroduction/SimpleClassFunction && dotnet build
- cd AWSLambdaCSharpIntroduction/SlackSlashCommandWebhook/SlackSlashCommandWebhook && dotnet build
# test runner
- cd AWSLambdaCSharpIntroduction/GithubWebhook/GithubWebhook.Tests && dotnet test
- cd AWSLambdaCSharpIntroduction/SendToChatwork/SendToChatwork.Tests && dotnet test
- cd AWSLambdaCSharpIntroduction/SimpleAsyncFunction/SimpleAsyncFunction.Tests && dotnet test
- cd AWSLambdaCSharpIntroduction/SlackSlashCommandWebhook/SlackSlashCommandWebhook.Tests && dotnet test
deployment:
master:
branch: master
commands:
- cd AWSLambdaCSharpIntroduction/GithubWebhook/GithubWebhook && dotnet lambda deploy-function
- cd AWSLambdaCSharpIntroduction/SendToChatwork/SendToChatwork && dotnet lambda deploy-function
- cd AWSLambdaCSharpIntroduction/SimpleAsyncFunction/SimpleAsyncFunction && dotnet lambda deploy-function
- cd AWSLambdaCSharpIntroduction/SimpleClassFunction && dotnet lambda deploy-function
- cd AWSLambdaCSharpIntroduction/SlackSlashCommandWebhook/SlackSlashCommandWebhook && dotnet lambda deploy-function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment