Skip to content

Commit 95d6edf

Browse files
committed
debug output vars
output log after build testing more exec options
1 parent e054a2c commit 95d6edf

File tree

1 file changed

+40
-17
lines changed

1 file changed

+40
-17
lines changed

.circleci/config.yml

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ jobs:
33
build:
44
machine: true
55
working_directory: ~/apache
6-
parallelism: 3
6+
environment:
7+
CIRCLE_ARTIFACTS: ~/logs/container-build
8+
79
steps:
810
- checkout
911

@@ -25,34 +27,55 @@ jobs:
2527
make run
2628
docker ps -a
2729
30+
31+
- run: |
32+
mkdir -p $CIRCLE_ARTIFACTS
33+
docker logs apache_web_1 > $CIRCLE_ARTIFACTS/log_output.txt
34+
2835
- run:
2936
name: DEV Build Tests
3037
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
3249
33-
- run: |
34-
docker logs apache_web_1 > log_output
35-
mv log_output $CIRCLE_ARTIFACTS/log_output.txt
3650
3751
- run:
3852
name: Kill running containers
3953
command: |
4054
make stop && make rm
4155
4256
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+
4366
# LIVE Build
4467

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
5073

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
5578

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

Comments
 (0)