This repository has been archived by the owner on Feb 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
wercker.yml
47 lines (43 loc) · 1.67 KB
/
wercker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
box: ubuntu:16.04
build:
steps:
- script:
name: install dotnet core
code: |
apt-get update
apt-get install apt-transport-https -y
apt-get install curl
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update
apt-get install dotnet-sdk-2.0.0 -y
- script:
name: install and run eventstore
code: |
apt-get install wget tzdata curl iproute2 -y
wget https://eventstore.org/downloads/EventStore-OSS-Ubuntu-14.04-v4.1.0.tar.gz
tar xfv EventStore-OSS-Ubuntu-14.04-v4.1.0.tar.gz
pushd ./EventStore-OSS-Ubuntu-14.04-v4.1.0
nohup ./eventstored --run-projections All --mem-db --log ~/logs &
popd
# Build
- script:
name: Build project
code: |
./build.sh
# Run tests
- script:
name: Run tests
code: |
dotnet restore
dotnet test test/EventStore.ClientAPI.NetCore.Tests/EventStore.ClientAPI.NetCore.Tests.csproj --no-build --logger trx;LogFileName=~/TestResults.xml
after-steps:
- script:
name: copy log files
code: |
echo "copying test results"
cp ./test/EventStore.ClientAPI.NetCore.Tests/TestResults/*.trx $WERCKER_REPORT_ARTIFACTS_DIR
echo "copying server logs"
cp -R ~/logs $WERCKER_REPORT_ARTIFACTS_DIR
# TODO: copy test output