Skip to content

Commit

Permalink
Now with Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
rbock committed Sep 13, 2015
1 parent a2de206 commit ec23282
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
language: cpp

os:
- linux
- osx

osx_image: xcode7
Expand Down Expand Up @@ -42,7 +43,7 @@ install:
before_script:
- mkdir build
- cd build
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" ]]; then export CXXFLAGS="--coverage"; fi
- if [[ "$CXX" = "g++" && "$CONFIG" = "Debug" && "$TRAVIS_OS_NAME" = "linux" ]]; then export CXXFLAGS="--coverage"; fi
- cmake .. -DCMAKE_BUILD_TYPE=$CONFIG

script:
Expand Down
4 changes: 2 additions & 2 deletions tests/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ int Function(int, char**)
static_assert(not sqlpp::is_numeric_t<TT>::value, "type requirement");
static_assert(not sqlpp::is_text_t<TT>::value, "type requirement");

if (nullptr and db(select(exists(select(t.alpha).from(t).where(true)))).front().exists)
if (false and db(select(exists(select(t.alpha).from(t).where(true)))).front().exists)
{ /* do something */
}
}
Expand Down Expand Up @@ -286,7 +286,7 @@ int Function(int, char**)
static_assert(sqlpp::is_integral_t<TT>::value, "type requirement");
static_assert(not sqlpp::is_floating_point_t<TT>::value, "type requirement");

if (nullptr and db(select(count(t.alpha)).from(t).where(true)).front().count)
if (false and db(select(count(t.alpha)).from(t).where(true)).front().count)
{ /* do something */
}
}
Expand Down

0 comments on commit ec23282

Please sign in to comment.