Skip to content

Commit 9986439

Browse files
committed
reducing steps, creating tests to more closely match local dev steps
1 parent ea7b754 commit 9986439

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 2
22
jobs:
33
build:
44
machine: true
5-
working_directory: ~/apache
5+
working_directory: ~/logs
66

77
steps:
88
- checkout
@@ -16,7 +16,7 @@ jobs:
1616
- run:
1717
name: Build Apache Docker image
1818
command: |
19-
docker build -t htmlgraphic/apache:envoyer .
19+
make build
2020
2121
2222
# DEV Build
@@ -31,22 +31,22 @@ jobs:
3131
docker ps -a
3232
sleep 10
3333
34-
- run: mkdir -p ~/apache/logs/container-build
34+
- run: mkdir -p ~/logs/container-build
3535

3636
- run:
3737
name: Container Logs
3838
command: |
39-
docker logs apache_web_1 > ~/apache/logs/container-build/log_output-DEV.txt
39+
docker logs apache > ~/logs/container-build/log_output-DEV.txt
4040
4141
- run:
4242
name: Global Environment Vars
4343
command: |
44-
docker exec apache_web_1 /bin/bash -c "export"
44+
docker exec apache /bin/bash -c "export"
4545
4646
- run:
4747
name: DEV Build Tests
4848
command: |
49-
docker exec apache_web_1 /bin/bash /opt/tests/build_tests.sh
49+
docker exec apache /bin/bash /opt/tests/build_tests.sh
5050
5151
5252
- run:
@@ -72,14 +72,14 @@ jobs:
7272
- run:
7373
name: Container Logs
7474
command: |
75-
docker logs apache_hg-web_1 > ~/apache/logs/container-build/log_output-LIVE.txt
75+
docker logs apache_hg-web_1 > ~/logs/container-build/log_output-LIVE.txt
7676
7777
7878
7979
- store_artifacts:
80-
path: ~/apache/logs/container-build
80+
path: ~/logs/container-build
8181
destination: raw-test-output
8282

8383
- store_test_results:
84-
path: ~/apache/logs/container-build
84+
path: ~/logs/container-build
8585

docker-compose.local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ version: "3"
22
services:
33
web:
44
image: 'htmlgraphic/apache:envoyer'
5+
container_name: apache
56
volumes:
67
- "/Volumes/Case/SITES/docker:/data" # <- Change to preferred local working dir
78
#- "/c/Users/southpark/docker:/data"

shippable.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,18 @@ env:
99

1010
build:
1111
pre_ci:
12-
- docker build --no-cache -t htmlgraphic/apache:$BRANCH .
13-
#- sudo apt-get update && apt-get -y install python-pip
14-
#- sudo pip install -U docker-compose
12+
- make build
1513
pre_ci_boot:
1614
image_name: htmlgraphic/apache
1715
image_tag: $BRANCH
1816
pull: false
1917
ci:
2018
- "bash app/run.sh &"
21-
- sleep 5
2219
- "/usr/sbin/postconf -n"
2320
- sleep 5
2421
- "bash tests/build_tests.sh"
2522
on_failure:
26-
- docker logs apache_web_1
23+
- docker logs apache
2724
# on_success:
2825
# - docker push htmlgraphic/apache:$BRANCH
2926

0 commit comments

Comments
 (0)