-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
34 lines (31 loc) · 1.51 KB
/
circle.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
deployment:
dockerhub:
branch: master
commands:
- $DOCKER_HUB_TRIGGER_CS
dependencies:
cache_directories:
- packages
- "~/.apt-cache"
pre:
# https://discuss.circleci.com/t/add-ability-to-cache-apt-get-programs/598/4
- sudo rm -rf /var/cache/apt/archives && sudo ln -s ~/.apt-cache /var/cache/apt/archives && mkdir -p ~/.apt-cache/partial
- mkdir -p packages
override:
# http://www.mono-project.com/docs/getting-started/install/linux/
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
- sudo apt-get update
# http://www.mono-project.com/docs/getting-started/install/linux/#usage
- sudo apt-get install -y mono-complete
- sudo apt-get install -y referenceassemblies-pcl
- sudo apt-get install -y ca-certificates-mono
- sudo apt-get install -y nunit-console
- cd packages; wget --no-check-certificate https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
- mono packages/nuget.exe restore
test:
override:
- xbuild /p:Configuration=Debug ErnespnServices.sln
- nunit-console ApiServiceTests/bin/Debug/ApiServiceTests.dll
- nunit-console CalculatorServiceTests/bin/Debug/CalculatorServiceTests.dll
- nunit-console TodoServiceTests/bin/Debug/TodoServiceTests.dll