-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
71 lines (71 loc) · 2.55 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
version: 2
jobs:
build:
docker:
- image: praqma/native-conan: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: git submodule update --init
- run:
name: Build
command: |
set -x
cd ${WORKSPACE_DIR}
bash ${PWD}/build.sh
- store_artifacts:
path: /workspace/3rdparty/conan-gtest-example-master/build/lib
destination: liby
- store_artifacts:
path: /workspace/3rdparty/conan-gtest-example-master/build/graph
destination: graphy
test:
docker:
- image: praqma/native-conan: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: git submodule update --init
- run:
name: Test
command: |
set -x
cd ${WORKSPACE_DIR}
bash ${PWD}/test.sh
workflows:
version: 2
build_and_test:
jobs:
- build
- test:
requires:
- build
filters:
branches:
only: master