File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ jobs :
4+ build :
5+ working_directory : ~/py-graphqlparser
6+ docker :
7+ - image : ubuntu:16.04
8+ steps :
9+ - checkout
10+ - run :
11+ name : apt update
12+ command : apt-get -q update
13+ - run :
14+ name : apt required packages
15+ command : apt-get install -qy build-essential python python3 python3-pip python3-dev git cmake bison flex pkg-config
16+ - run :
17+ name : install cython
18+ command : pip3 install -q cython==0.27.3
19+ - run :
20+ name : git submodules
21+ command : |
22+ mkdir -p -m 700 ~/.ssh
23+ ssh-keyscan github.com >> ~/.ssh/known_hosts
24+ git submodule -q sync
25+ git submodule -q update -f --init
26+ - run :
27+ name : build libgraphqlparser
28+ command : |
29+ cd libgraphqlparser
30+ cmake .
31+ make
32+ - run :
33+ name : ast
34+ command : python2 ast/build_ast.py
35+ - run :
36+ name : build ext
37+ command : LDFLAGS="-L./libgraphqlparser" CFLAGS="-Ilibgraphqlparser/c -Ilibgraphqlparser" python3 setup.py build_ext
38+ - run :
39+ name : install package
40+ command : pip3 install -e .
41+ - run :
42+ name : install pytest
43+ command : pip3 install pytest
44+ - run :
45+ name : test
46+ command : python3 -m pytest
47+ environment :
48+ LD_LIBRARY_PATH : " ./libgraphqlparser"
Original file line number Diff line number Diff line change 11Graphql parser based on libgraphqlparser
22=========================================
33
4+ .. image :: https://circleci.com/gh/elastic-coders/py-graphqlparser.svg?style=svg
5+ :target: https://circleci.com/gh/elastic-coders/py-graphqlparser
6+
47Python2.7+ Python3.4+ class-based bindings to libgraphqlparser; just a thin layer on top of ``libgraphqlparser `` C API.
58
69Still **EXPERIMENTAL **
You can’t perform that action at this time.
0 commit comments