Skip to content

Commit

Permalink
Add Travis CI support
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSodaSea committed Dec 27, 2017
1 parent 3b2f28f commit d3d95a3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 9 deletions.
43 changes: 43 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
language: cpp

sudo: required

matrix:
include:
- env: CONFIG=debug FLAGS="-m32"
compiler: gcc
- env: CONFIG=release FLAGS="-m32"
compiler: gcc
- env: CONFIG=debug FLAGS="-m64"
compiler: gcc
- env: CONFIG=release FLAGS="-m64"
compiler: gcc
- env: CONFIG=debug FLAGS="-m32"
compiler: clang
- env: CONFIG=release FLAGS="-m32"
compiler: clang
- env: CONFIG=debug FLAGS="-m64"
compiler: clang
- env: CONFIG=release FLAGS="-m64"
compiler: clang

before_script:
- sudo apt-add-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install -y g++-multilib lib32stdc++6 libc6-dev-i386
- cd ..
- git clone -q --branch=master https://github.com/SuperSodaSea/Corecat.git
- cd Corecat
- git checkout -fq master
- cp -r include ../Textcat/include
- cd ../Textcat
- cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=$CONFIG -DCMAKE_CXX_FLAGS=$FLAGS

script:
- make -C build

after_success:
- ./build/XML_DOMReader data/test1.xml
- ./build/XML_DOMWriter
- ./build/XML_SAXReader data/test1.xml
- ./build/XML_SAXWriter
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Textcat is a module of *The Cats Project*. It is designed to be a collection of
CI | Status
:---: | :---:
AppVeyor | [![AppYeyor](https://ci.appveyor.com/api/projects/status/github/SuperSodaSea/Textcat?branch=master&svg=true)](https://ci.appveyor.com/project/SuperSodaSea/Textcat)
Travis CI | [![Travis CI](https://travis-ci.org/SuperSodaSea/Textcat.svg?branch=master)](https://travis-ci.org/SuperSodaSea/Textcat)

Currently supported format:

Expand Down
13 changes: 4 additions & 9 deletions doc/XML.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,17 @@ Specification for DOM:

#include "Cats/Textcat/XML.hpp"

using namespace Cats::Textcat;
using namespace Cats::Textcat::XML;

int main() {

std::ios::sync_with_stdio(false);

char data[] = R"(<list><person name="SuperSodaSea" gender="male" age="16"/></list>)";
char data[] = R"(<list><person name="SuperSodaSea" gender="male" age="17"/></list>)";

XML::Document document;
document.parse<XML::Parser::Flag::Default>(data);
XMLDocument document;
document.parse<>(data);
std::cout << document << std::endl;

return 0;

}
```
[Corecat]: https://github.com/SuperSodaSea/Corecat

0 comments on commit d3d95a3

Please sign in to comment.