Skip to content

Commit ef7e8ca

Browse files
committed
use CircleCI v2
1 parent 367d6a1 commit ef7e8ca

File tree

2 files changed

+52
-20
lines changed

2 files changed

+52
-20
lines changed

.circleci/config.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
version: 2
2+
jobs:
3+
build:
4+
machine: true
5+
working_directory: ~/postfix
6+
7+
steps:
8+
- checkout
9+
- run:
10+
name: Install Docker Compose
11+
command: |
12+
set -x
13+
curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
14+
chmod +x ~/docker-compose
15+
sudo mv ~/docker-compose /usr/local/bin/docker-compose
16+
17+
- run:
18+
name: Build Postfix Docker image
19+
command: |
20+
docker info
21+
docker build -t htmlgraphic/postfix:latest .
22+
23+
24+
# LIVE Build
25+
26+
- run:
27+
name: Start LIVE Container
28+
command: |
29+
docker-compose -f docker-compose.yml up -d
30+
docker ps -a
31+
sleep 10
32+
33+
- run: mkdir -p ~/postfix/logs/container-build
34+
35+
- run:
36+
name: LIVE Build Tests
37+
command: |
38+
docker logs postfix | grep "$SASL_USER:$SASL_PASS"
39+
40+
- run:
41+
name: Container Logs
42+
command: |
43+
docker logs postfix > ~/postfix/logs/container-build/log_output-LIVE.txt
44+
45+
46+
47+
- store_artifacts:
48+
path: ~/postfix/logs/container-build
49+
destination: raw-test-output
50+
51+
- store_test_results:
52+
path: ~/postfix/logs/container-build

circle.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)