Skip to content

Commit 7d42ad1

Browse files
committed
break circle into scripts
1 parent 92da73b commit 7d42ad1

File tree

4 files changed

+44
-26
lines changed

4 files changed

+44
-26
lines changed

circle.yml

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
machine:
2-
environment:
3-
LD_LIBRARY_PATH: .:`cat /etc/ld.so.conf.d/* | grep -v -E "#" | tr "\\n" ":" | sed -e "s/:$//g"`
4-
pre:
5-
- sudo add-apt-repository -y ppa:boost-latest/ppa
6-
#- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
7-
- sudo rm -f -f /etc/apt/sources.list.d/neo4j.list
8-
- sudo apt-get update
9-
101
checkout:
112
post:
123
- git submodule sync
134
- git submodule update --init
14-
- for dep in midgard baldr sif mjolnir loki odin; do git clone --depth=1 --recurse-submodules --single-branch --branch=master https://github.com/valhalla/$dep.git deps/$dep; done
155

166
dependencies:
177
override:
18-
- sudo apt-get remove --purge -y libboost*
19-
- sudo apt-get install -y autoconf automake libtool make gcc-4.8 g++-4.8 libboost1.54-dev libboost-program-options1.54-dev libboost-filesystem1.54-dev libboost-system1.54-dev libboost-thread1.54-dev lcov protobuf-compiler libprotobuf-dev lua5.2 liblua5.2-dev
20-
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
21-
- scripts/install_service_deps.sh
22-
#valhalla dependencies
23-
- cd deps; for dep in midgard baldr sif mjolnir loki odin; do cd $dep; ./autogen.sh && ./configure CPPFLAGS=-DBOOST_SPIRIT_THREADSAFE && sudo make -j4 install; cd ..; done
8+
- scripts/dependencies.sh
249

2510
test:
26-
pre:
27-
- ./autogen.sh && ./configure --enable-coverage --with-valhalla-midgard=/usr/local --with-valhalla-baldr=/usr/local --with-valhalla-loki=/usr/local --with-valhalla-odin=/usr/local --with-valhalla-sif=/usr/local --with-valhalla-mjolnir=/usr/local CPPFLAGS=-DBOOST_SPIRIT_THREADSAFE
2811
override:
29-
- make test -j4
30-
post:
31-
- sudo make install
12+
- scripts/install.sh
3213

3314
general:
3415
artifacts:
3516
- config.log
3617
- test/*.log
3718
- Makefile
38-
- valhalla/config.h

scripts/dependencies.sh

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
set -e
3+
4+
export LD_LIBRARY_PATH=.:`cat /etc/ld.so.conf.d/* | grep -v -E "#" | tr "\\n" ":" | sed -e "s/:$//g"`
5+
sudo apt-get install -y autoconf automake libtool make gcc-4.8 g++-4.8 libboost1.54-dev libboost-program-options1.54-dev libboost-filesystem1.54-dev libboost-system1.54-dev libboost-thread1.54-dev lcov protobuf-compiler libprotobuf-dev
6+
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
7+
8+
#clone async
9+
mkdir -p deps
10+
for dep in midgard baldr sif; do
11+
git clone --depth=1 --recurse-submodules --single-branch --branch=master https://github.com/valhalla/$dep.git deps/$dep &
12+
done
13+
wait
14+
15+
#install the service deps in the background
16+
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
17+
$DIR/install_service_deps.sh &
18+
19+
#build sync
20+
for dep in midgard baldr sif; do
21+
pushd deps/$dep
22+
./autogen.sh
23+
./configure CPPFLAGS=-DBOOST_SPIRIT_THREADSAFE
24+
make -j4
25+
sudo make install
26+
popd
27+
done
28+
wait

scripts/install.sh

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -e
3+
4+
export LD_LIBRARY_PATH=.:`cat /etc/ld.so.conf.d/* | grep -v -E "#" | tr "\\n" ":" | sed -e "s/:$//g"`
5+
./autogen.sh
6+
./configure --enable-coverage
7+
make test -j4
8+
sudo make install

scripts/install_service_deps.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@ set -e
44
# grab the latest zmq library:
55
git clone --depth=1 --recurse-submodules --single-branch --branch=master https://github.com/zeromq/libzmq.git
66
pushd libzmq
7-
./autogen.sh && ./configure --without-libsodium --without-documentation && make -j4
7+
./autogen.sh
8+
./configure --without-libsodium --without-documentation
9+
make -j4
810
sudo make install
911
popd
10-
rm -rf libzmq
1112

1213
# grab experimental zmq-based server API:
1314
git clone --depth=1 --recurse-submodules --single-branch --branch=master https://github.com/kevinkreiser/prime_server.git
1415
pushd prime_server
15-
./autogen.sh && ./configure && make test -j4
16+
./autogen.sh
17+
./configure
18+
make -j4
1619
sudo make install
1720
popd
18-
rm -rf prime_server

0 commit comments

Comments
 (0)