Commit Graph

73 Commits

Author SHA1 Message Date
Mario Werner
27a1b787c8 test in c++ 98, 03 and 11 mode 2016-02-07 18:32:23 +01:00
Mario Werner
6a79a3279b build and test in c++11 and in c++98 mode 2016-02-07 18:23:02 +01:00
Mario Werner
be961bae0f fixed typo in python script 2016-02-01 10:41:45 +01:00
Mario Werner
0a4acc9656 use the cmake and ctest to drive the appveyor build 2016-02-01 10:22:47 +01:00
Mario Werner
0fb474be3a outlined the compiler feature tests to improve script readability 2016-01-29 13:03:47 +01:00
vitaut
22f61140d1 Format CMake files, ignore generated files and don't copy header 2016-01-13 07:14:32 -08:00
Mario Werner
daf74ae0b1 upgrades to cmake 2.8.12 and adds config and export support
This commit upgrades cmake to 2.8.12 to implement proper cmake
`find_package` support using config and export file generation.
Having this support enables users to use installed cppformat
with a simple `find_package` call. Directly using a version
from a build directory is also supported.

main.cpp:
```
 #include <cppformat/format.h>
int main(int argc, char** argv)
{
  for(int i = 0; i < argc; ++i)
    fmt::print("{}: {}\n",i,argv[i]);
  return 0;
}

```

CMakeLists.txt:
```
cmake_minimum_required(VERSION 2.8.12)

project(cppformat-test)

find_package(cppformat REQUIRED)

add_executable(cppformat-test "main.cpp")
target_link_libraries(cppformat-test cppformat)

```
Configuring when cppformat is installed under `CMAKE_INSTALL_PREFIX`: `cmake <PATH_TO_TEST_SRC>`

Configuring when cppformat is installed `ELSEWHERE`: `cmake -Dcppformat_DIR=<ELSEWHERE>/lib/cmake/cppformat <PATH_TO_TEST_SRC>`

Configuring when cppformat is only built: `cmake -Dcppformat_DIR=<cppformat_BUILD_DIR> <PATH_TO_TEST_SRC>`
2016-01-12 12:47:19 +01:00
vitaut
fac207816c Update release script 2015-11-30 08:23:16 -08:00
vitaut
289885e8c0 Fix branch detection on Travis 2015-11-23 08:47:46 -08:00
vitaut
96731cebe1 Print branch name 2015-11-23 08:21:22 -08:00
vitaut
ef5e5e02b4 Only update docs from master branch on travis 2015-11-12 08:47:07 -08:00
vitaut
11f946efff Make release script create a GitHub release 2015-11-12 07:39:09 -08:00
vitaut
5e37698911 Implement release script 2015-11-11 08:41:29 -08:00
vitaut
477962884e Add a release script 2015-11-10 08:20:21 -08:00
vitaut
9beb01d8e5 Add an appveyor/cmake workaround 2015-11-04 10:19:59 -05:00
vitaut
3814a07c44 Handle fast forward in update-coverity-branch.py 2015-10-20 07:14:40 -07:00
vitaut
317ff51fd9 Add a script to update the coverity branch 2015-10-19 08:08:23 -07:00
vitaut
931173ab77 Move appveyor.yml to support 2015-10-19 08:05:09 -07:00
vitaut
cdcdacef9c Handle undefined $PLATFORM 2015-08-07 07:21:43 -07:00
vitaut
43081b833a Build both on x86 and x64 2015-08-07 07:08:12 -07:00
vitaut
2c6e32f6ff Simplify appveyor config 2015-08-07 06:41:07 -07:00
vitaut
0332284ce3 Fix MinGW build on Appveyor by changing search path order
C:\MinGW\bin should go first to prevent executables from older
version of MinGW in C:\MinGW\mingw32 being picked up.
2015-06-29 07:22:45 -07:00
vitaut
279749168a Try to work around an issue with msbuild caused by Appveyor update 2015-06-27 08:38:26 -07:00
vitaut
99edb141ec Don't try updating cppformat.github.io without permissions 2015-06-04 12:52:42 -07:00
vitaut
d8a3b74664 Simplify download with urllib.urlretrieve 2015-05-24 08:03:22 -07:00
vitaut
5a61d54eb7 Install newer version of Doxygen because of a bug in version 1.7.6.1 (#162) 2015-05-24 07:48:06 -07:00
vitaut
c389ec05a1 Redirect from RTD to GitHub Pages 2015-05-22 06:47:05 -07:00
vitaut
dfe2a65b5d Remove diagnostics and re-enable build configs 2015-05-21 20:25:15 -07:00
vitaut
efba235246 Regenerate key and prevent leakage 2015-05-21 19:29:45 -07:00
vitaut
44fabfc803 Add diagnostics 2015-05-21 19:01:47 -07:00
vitaut
37141a1e3f Install less-plugin-clean-css 2015-05-21 08:26:36 -07:00
vitaut
719208c24b Now do the same as root 2015-05-21 08:14:47 -07:00
vitaut
3e49279267 Add APT key 2015-05-21 08:03:00 -07:00
vitaut
595845153d Fix nodesource.list creation 2015-05-21 07:20:26 -07:00
vitaut
f77b00e1f7 Try installing new version of lessc 2015-05-21 07:04:56 -07:00
vitaut
eb20f8aece Try installing lessc 2015-05-20 18:22:53 -07:00
vitaut
fbc2fcb3e2 Create a link for node_modules 2015-05-20 12:29:47 -07:00
vitaut
469f3674cf Ignore build files and simplify building docs locally 2015-05-20 08:28:54 -07:00
vitaut
f9936c4859 Build docs on travis 2015-05-20 08:06:12 -07:00
vitaut
a5757c86df FMT_EXTRA_TESTS -> FMT_PEDANTIC and use it to control extra warnings 2015-05-12 07:35:29 -07:00
vitaut
6dd532b456 Add mingw bin directory to path and enable mingw build 2015-03-12 06:13:51 -07:00
Victor Zverovich
da547f5533 Fix mingw build, take 2 2015-03-10 09:43:12 -07:00
Victor Zverovich
961097315c Fix mingw build 2015-03-10 09:18:31 -07:00
Victor Zverovich
f9e1c2bd59 Use preinstalled mingw on appveyor 2015-03-10 08:52:39 -07:00
Victor Zverovich
4ff6ab396c Fix biicode build script 2015-03-04 09:24:54 -08:00
Victor Zverovich
14d1fb561f Don't run biicode on Travis 2015-03-04 09:22:52 -08:00
Victor Zverovich
7ae6dfbcba Fix cmake command 2015-03-04 08:57:56 -08:00
Victor Zverovich
bdada10c2c Only run biicode-build on Linux and print cmake version 2015-03-04 08:53:51 -08:00
Victor Zverovich
65cf5414c9 Temporarily disable biicode build 2015-03-04 08:33:13 -08:00
Victor Zverovich
cb40e7c60b Fix biicode-build script 2015-03-04 08:24:35 -08:00