Add circleci file

This commit is contained in:
nicolas.dorier 2018-10-28 20:06:04 +09:00
parent c46c15c258
commit 9b261daa6d

32
.circleci/config.yml Normal file
View File

@ -0,0 +1,32 @@
version: 2
jobs:
build:
machine:
docker_layer_caching: true
steps:
- checkout
- run: docker build .
test:
machine: true
steps:
- checkout
- run:
command: |
lsb_release -a
wget -q https://packages.microsoft.com/config/ubuntu/14.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
cd BTCPayServer.Tests
docker-compose up -d
sleep 60
docker ps
dotnet test
workflows:
version: 2
build_and_test:
jobs:
- test