forked from AdaptiveConsulting/ReactiveTraderCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
35 lines (30 loc) · 1.04 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
35
general:
branches:
ignore:
- gh-pages
machine:
services:
- docker
dependencies:
cache_directories:
- "~/docker"
- deploy/docker/build/servers/dotnetcache
- deploy/docker/build/web/.npm
override:
- docker info
- cd deploy/e2e && chmod 755 ensurePermissions && ./ensurePermissions
- cd deploy/e2e && ./loadContainers
- cd deploy/e2e && ./buildContainers $CIRCLE_BUILD_NUM:
timeout: 1200
- cd deploy/e2e && ./runContainers $CIRCLE_BUILD_NUM
- cd deploy/e2e && ./saveContainers
test:
override:
- docker ps
- for i in {1..10}; do curl http://localhost:2113/web/index.html && break; sleep 1; if [[ $i == 10 ]];then false;fi; done
- . ./deploy/config && docker run -a STDOUT --net=host $serversContainer.$CIRCLE_BUILD_NUM bash -c "dotnet test --configuration Release ./Adaptive.ReactiveTrader.Server.IntegrationTests/Adaptive.ReactiveTrader.Server.IntegrationTests.csproj"
deployment:
hub:
branch: [master, dev]
commands:
- cd deploy/e2e && ./pushContainers $CIRCLE_BUILD_NUM