Skip to content

Commit e4e8218

Browse files
committed
run travis build tests in circle-ci
1 parent 6523329 commit e4e8218

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

.circleci/config.yml

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
# Use the latest 2.1 version of CircleCI pipeline process engine.
2-
# See: https://circleci.com/docs/configuration-reference
31
version: 2.1
42

5-
# Define a job to be invoked later in a workflow.
6-
# See: https://circleci.com/docs/configuration-reference/#jobs
7-
jobs:
8-
say-hello:
9-
# Specify the execution environment. You can specify an image from Docker Hub or use one of our convenience images from CircleCI's Developer Hub.
10-
# See: https://circleci.com/docs/configuration-reference/#executor-job
3+
executors:
4+
build-executor:
115
docker:
12-
- image: cimg/base:stable
13-
# Add steps to the job
14-
# See: https://circleci.com/docs/configuration-reference/#steps
6+
- image: ubuntu:20.04
7+
8+
jobs:
9+
build:
10+
executor: build-executor
1511
steps:
16-
- checkout
1712
- run:
18-
name: "Say hello"
19-
command: "echo Hello, World!"
13+
name: Install dependencies
14+
command: |
15+
apt-get update
16+
apt-get install -y libpcre3 libpcre3-dev zlib1g-dev libssl-dev
17+
- run:
18+
name: Set environment variables
19+
command: |
20+
export NGINX_VERSION=1.18.0
21+
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
22+
- run:
23+
name: Build and test
24+
command: make prepare-travis-env nginx test
2025

21-
# Orchestrate jobs using workflows
22-
# See: https://circleci.com/docs/configuration-reference/#workflows
2326
workflows:
24-
say-hello-workflow:
27+
version: 2
28+
build:
2529
jobs:
26-
- say-hello
30+
- build

0 commit comments

Comments
 (0)