forked from IFRCGo/cbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
76 lines (76 loc) · 2.83 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: 2
jobs:
build:
docker:
- image: dranoel/cbs-devel:latest
working_directory: /workspace
steps:
- checkout
- run:
name: Interpolating Environment Variables to Set Other Environment Variables
# If you need to interpolate other environment variables to set an environment variable, the only place to do this at the moment is in bash.
# CircleCI 2.0 automatically sets a $BASH_ENV variable to a random name in /tmp, and will source this file for each step.
# https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
command: |
echo 'export DEBIAN_FRONTEND=noninteractive' >> $BASH_ENV
echo 'export WORKSPACE_DIR=/workspace' >> $BASH_ENV
- run:
name: Version
command: |
set -x
cat /etc/*release
- run:
name: Build
command: |
set -x
cd ${WORKSPACE_DIR}
bash ${PWD}/build.sh
- store_artifacts:
path: Source/Infrastructure/Application/bin/Release/netstandard2.0/
# - store_artifacts:
# path: Source/Infrastructure/AspNet/bin/Release/netstandard2.0/
test:
docker:
- image: dranoel/cbs-devel:latest
working_directory: /workspace
steps:
- checkout
- run:
name: Interpolating Environment Variables to Set Other Environment Variables
# If you need to interpolate other environment variables to set an environment variable, the only place to do this at the moment is in bash.
# CircleCI 2.0 automatically sets a $BASH_ENV variable to a random name in /tmp, and will source this file for each step.
# https://circleci.com/docs/2.0/env-vars/#interpolating-environment-variables-to-set-other-environment-variables
command: |
echo 'export DEBIAN_FRONTEND=noninteractive' >> $BASH_ENV
echo 'export WORKSPACE_DIR=/workspace' >> $BASH_ENV
- run:
name: Check Version
command: |
set -x
cat /etc/*release
- run:
name: Build
command: |
set -x
cd ${WORKSPACE_DIR}
bash ${PWD}/build.sh
- store_artifacts:
path: Source/Infrastructure/Application/bin/Release/netstandard2.0/
destination: infrastructure-application-bin-release-netstandard2
# - store_artifacts:
# path: Source/Infrastructure/AspNet/bin/Release/netstandard2.0/
# destination: infrastructure-AspNet-bin-release-netstandard2
workflows:
version: 2
build_and_test:
jobs:
- build:
filters:
branches:
only: master
- test:
requires:
- build
filters:
branches:
only: master