3
3
build :
4
4
machine : true
5
5
working_directory : ~/apache
6
- parallelism : 3
6
+ environment :
7
+ CIRCLE_ARTIFACTS : ~/logs/container-build
8
+
7
9
steps :
8
10
- checkout
9
11
@@ -25,34 +27,55 @@ jobs:
25
27
make run
26
28
docker ps -a
27
29
30
+
31
+ - run : |
32
+ mkdir -p $CIRCLE_ARTIFACTS
33
+ docker logs apache_web_1 > $CIRCLE_ARTIFACTS/log_output.txt
34
+
28
35
- run :
29
36
name : DEV Build Tests
30
37
command : |
31
- docker exec -it apache_web_1 /bin/bash /opt/tests/build_tests.sh
38
+ docker exec apache_web_1 /bin/bash -c "/usr/bin/wget -q -O- http://127.0.0.1"
39
+
40
+ - run :
41
+ name : DEV Build Tests 1
42
+ command : |
43
+ docker exec apache_web_1 /bin/bash -c "export"
44
+
45
+ - run :
46
+ name : DEV Build Tests 2
47
+ command : |
48
+ docker exec apache_web_1 /bin/bash /opt/tests/build_tests.sh
32
49
33
- - run : |
34
- docker logs apache_web_1 > log_output
35
- mv log_output $CIRCLE_ARTIFACTS/log_output.txt
36
50
37
51
- run :
38
52
name : Kill running containers
39
53
command : |
40
54
make stop && make rm
41
55
42
56
57
+
58
+ - store_artifacts :
59
+ path : ~/logs/container-build
60
+ destination : raw-test-output
61
+
62
+ - store_test_results :
63
+ path : ~/logs/container-build
64
+
65
+
43
66
# LIVE Build
44
67
45
- - run :
46
- name : Start LIVE Container
47
- command : |
48
- docker-compose up -d
49
- docker ps -a
68
+ # - run:
69
+ # name: Start LIVE Container
70
+ # command: |
71
+ # docker-compose up -d
72
+ # docker ps -a
50
73
51
- - run :
52
- name : LIVE Build Tests
53
- command : |
54
- docker exec -it apache_web_1 /bin/bash /opt/tests/build_tests.sh
74
+ # - run:
75
+ # name: LIVE Build Tests
76
+ # command: |
77
+ # docker exec -it apache_web_1 /bin/bash /opt/tests/build_tests.sh
55
78
56
- - run : |
57
- docker logs apache_web_1 > log_output
58
- mv log_output $CIRCLE_ARTIFACTS/log_output-LIVE.txt
79
+ # - run: |
80
+ # docker logs apache_web_1 > log_output
81
+ # mv log_output $CIRCLE_ARTIFACTS/log_output-LIVE.txt
0 commit comments