Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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