Skip to content

Commit e484aa2

Browse files
committed
Merge pull request #411 from leecoder/0.11-devel
Integration with Travis CI
2 parents 01bf00c + f36b485 commit e484aa2

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: cpp
2+
compiler:
3+
- gcc
4+
- clang
5+
env: BOOST_ROOT=$TRAVIS_BUILD_DIR/../boost_1_55_0
6+
7+
before_install:
8+
- curl -s http://cznic.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2|tar xfj - -C ..
9+
install:
10+
- cd $BOOST_ROOT
11+
- ./bootstrap.sh --with-toolset=$CC
12+
- ./b2 -j4 --stagedir=.
13+
- cd -
14+
15+
script:
16+
- cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=$CC -DCMAKE_CXX_COMPILER=$CXX
17+
- make all test

boost/network/protocol/stream_handler.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ namespace boost { namespace network {
4444
}
4545

4646
stream_handler(boost::asio::io_service& io, boost::shared_ptr<boost::asio::ssl::context> ctx = boost::shared_ptr<boost::asio::ssl::context>()) {
47-
tcp_sock_ = boost::make_shared< tcp_socket >(io);
47+
tcp_sock_ = boost::make_shared< tcp_socket >(boost::ref(io));
4848
ssl_enabled = false;
4949
if(ctx) {
5050
/// SSL is enabled
51-
ssl_sock_ = boost::make_shared< ssl_socket >(io, *ctx);
51+
ssl_sock_ = boost::make_shared< ssl_socket >(boost::ref(io),
52+
boost::ref(*ctx));
5253
ssl_enabled = true;
5354
}
5455
}
@@ -182,4 +183,4 @@ namespace boost { namespace network {
182183
}
183184
}
184185

185-
#endif
186+
#endif

libs/network/test/http/client_get_timeout_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_1_0, client, client_types) {
2222
}
2323

2424
BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_with_options, client, client_types) {
25-
typename client::request request("http://commondatastorage.googleapis.com/cpp-netlib-downloads/0.11.0/cpp-netlib-0.11.0.zip");
25+
typename client::request request("http://cznic.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2");
2626
typename client::response response;
2727
typename client::options options;
2828
client client_(options.timeout(1));
@@ -33,7 +33,7 @@ BOOST_AUTO_TEST_CASE_TEMPLATE(http_get_test_timeout_with_options, client, client
3333
#ifdef BOOST_NETWORK_ENABLE_HTTPS
3434

3535
BOOST_AUTO_TEST_CASE_TEMPLATE(https_get_test_timeout_with_options, client, client_types) {
36-
typename client::request request("https://codeload.github.com/cpp-netlib/cpp-netlib/zip/0.11-devel");
36+
typename client::request request("https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.8.2.tar.bz2");
3737
typename client::response response;
3838
typename client::options options;
3939
client client_(options.timeout(1));

0 commit comments

Comments
 (0)