-
Notifications
You must be signed in to change notification settings - Fork 634
/
config.yml
60 lines (52 loc) · 1.85 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: 2.0
jobs:
build:
docker:
- image: madmongo1/fedora-devel:latest
working_directory: /tmp
steps:
- run:
name: fix ssh keys
working_directory: ~
command: |
ssh-keyscan github.com >> githubKey
ssh-keygen -lf githubKey
cat githubKey >> ~/.ssh/known_hosts
- run:
name: clone boost
working_directory: /tmp
command: |
BOOST_BRANCH=master
if [ "${CIRCLE_BRANCH}" != "master" -a "${CIRCLE_BRANCH}" != "refs/heads/master" ]
then
BOOST_BRANCH=develop
fi
git clone -b $BOOST_BRANCH --depth 1 https://github.com/boostorg/boost.git
- run:
name: update submodules
working_directory: /tmp/boost
command: |
git submodule update --init --recursive --depth 10 --jobs 4
- run:
name: checkout beast version
working_directory: /tmp/boost/libs/beast
command: |
git remote add circle ${CIRCLE_REPOSITORY_URL}
git fetch circle
git checkout circle/${CIRCLE_BRANCH}
git submodule update --init --recursive
- run:
name: bootstrap
working_directory: /tmp/boost
command: ./bootstrap.sh
- run:
name: copy headers
working_directory: /tmp/boost
command: ./b2 headers
- run:
name: build tests
working_directory: /tmp/boost
command: |
./b2 -j 2 toolset=clang stdlib=libc++ cxxstd=latest cxxflags=-fcoroutines-ts variant=release,debug libs/beast/test
./b2 -j 2 cxxstd=latest libs/beast/test
./b2 -j 2 cxxstd=latest libs/beast/example