Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Commit 10a54e8

Browse files
committed
Review fixes
1 parent a2e0cae commit 10a54e8

File tree

7 files changed

+26
-48
lines changed

7 files changed

+26
-48
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ git:
1313
depth: 100500
1414

1515
env:
16-
global:
17-
- PRODUCT=tarantool-graphql
1816
matrix:
1917
- OS=el DIST=6
2018
- OS=el DIST=7

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ lint:
2424

2525
.PHONY: test
2626
test: lint
27-
virtualenv -p python2 ./.env-2
28-
. ./.env-2/bin/activate && \
27+
virtualenv -p python2.7 ./.env-2.7
28+
. ./.env-2.7/bin/activate && \
2929
pip install -r ./test-run/requirements.txt && \
3030
pip install tarantool && \
3131
cd test && ./test-run.py

graphql/accessor_general.lua

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
---
44
--- It provides basic logic for such space-like data storages and abstracted
55
--- away from details from where tuples are arrived into the application.
6-
package.cpath = package.cpath .. ";/usr/share/tarantool/pcre2/?.so"
76

87
local ffi = require('ffi')
98
local json = require('json')

graphql/core/parse.lua

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
package.path = package.path .. ";/usr/share/tarantool/lulpeg/?.lua"
21
local lpeg = require 'lulpeg'
32
local P, R, S, V = lpeg.P, lpeg.R, lpeg.S, lpeg.V
43
local C, Ct, Cmt, Cg, Cc, Cf, Cmt = lpeg.C, lpeg.Ct, lpeg.Cmt, lpeg.Cg, lpeg.Cc, lpeg.Cf, lpeg.Cmt

rpm/prebuild-el-6.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
set -exu # Strict shell (w/o -o pipefail)
4+
5+
sudo yum -y install https://centos6.iuscommunity.org/ius-release.rpm
6+
sudo yum -y install python27
7+
sudo yum -y install python27-devel

rpm/tarantool-graphql.spec

+7-3
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ BuildRequires: tarantool-lrexlib-pcre2
2424

2525
# Dependencies for a user
2626
Requires: tarantool >= 1.9.0.0
27-
Requires: tarantool-avro-schema >= 2.0.0
27+
Requires: tarantool-avro-schema >= 2.0.71
2828
Requires: tarantool-lulpeg
29+
# Dependencies below are not mandatory, they extend tarantool-graphql
30+
# functionality. Currently we build packages for distros which do not have
31+
# package manager versions which supports Suggests tag. We left section
32+
# below commented till all actual distros will have necessary package manager
33+
# versions.
2934
#Suggests: tarantool-lrexlib-pcre2
30-
#Suggests: tarantool-shard
35+
#Suggests: tarantool-shard >= 2.1.0
3136
#Suggests: tarantool-http
32-
#Suggests: tarantool-avro-schema
3337

3438
%description
3539
Set of adapters for GraphQL query language to the Tarantool data model

tools/ubuntu.trusty.test.sh

+10-39
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,30 @@
22

33
set -euxo pipefail # Strict shell
44

5-
#sudo apt-get -qq update
6-
#curl http://download.tarantool.org/tarantool/1.9/gpgkey |
7-
#sudo apt-key add -release=`lsb_release -c -s`
8-
9-
# install https download transport for APT
10-
#sudo apt-get -y install apt-transport-https
11-
12-
#curl -s https://packagecloud.io/install/repositories/tarantool/1_7/script.deb.sh | sudo bash
13-
#sudo apt-get update > /dev/null
14-
#sudo apt-get -q -y install tarantool tarantool-dev
15-
165
sudo apt-get -qq update
17-
curl http://download.tarantool.org/tarantool/1.9/gpgkey |
18-
sudo apt-key add -release=`lsb_release -c -s`
6+
curl http://download.tarantool.org/tarantool/1.9/gpgkey | \
7+
sudo apt-key add -
8+
release=`lsb_release -c -s`
199

2010
# install https download transport for APT
2111
sudo apt-get -y install apt-transport-https
2212

2313
# append two lines to a list of source repositories
2414
sudo rm -f /etc/apt/sources.list.d/*tarantool*.list
25-
echo "deb http://download.tarantool.org/tarantool/1.9/ubuntu/ trusty main" |
26-
sudo tee /etc/apt/sources.list.d/tarantool_1_9.list
27-
echo "deb-src http://download.tarantool.org/tarantool/1.9/ubuntu/ trusty main" |
28-
sudo tee -a /etc/apt/sources.list.d/tarantool_1_9.list
29-
30-
sudo apt-get update > /dev/null
31-
sudo apt-get -q -y install tarantool tarantool-dev
15+
echo "deb http://download.tarantool.org/tarantool/1.9/ubuntu/ ${release} main" | \
16+
sudo tee /etc/apt/sources.list.d/tarantool_1_9.list
17+
echo "deb-src http://download.tarantool.org/tarantool/1.9/ubuntu/ ${release} main" | \
18+
sudo tee -a /etc/apt/sources.list.d/tarantool_1_9.list
3219

33-
cd ..
34-
git clone https://github.com/rtsisyk/msgpuck
35-
cd msgpuck
36-
cmake .
37-
sudo make install
38-
cd ..
39-
cd graphql
20+
sudo apt-get update
21+
sudo apt-get -y install tarantool tarantool-dev libmsgpuck-dev
4022
git submodule update --recursive --init
4123
tarantoolctl rocks install lulpeg
4224
tarantoolctl rocks install lrexlib-pcre
4325
tarantoolctl rocks install http
4426
tarantoolctl rocks install shard "${SHARD_VERSION}"
4527
tarantoolctl rocks install avro-schema "${AVRO_SCHEMA}"
46-
cd ..
47-
# lua (with dev headers) is necessary for luacheck
48-
# maybe we can use tarantool headers?
49-
sudo apt-get install lua5.1
50-
sudo apt-get install liblua5.1-0-dev
51-
wget "http://luarocks.github.io/luarocks/releases/luarocks-2.4.4.tar.gz"
52-
tar xf luarocks-2.4.4.tar.gz
53-
cd luarocks-2.4.4
54-
./configure
55-
make build
56-
sudo make install
57-
cd ../graphql
28+
sudo apt-get install luarocks
5829
sudo luarocks install luacheck
5930
sudo pip install virtualenv
6031
make test

0 commit comments

Comments
 (0)