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

Commit c341273

Browse files
committed
Review fixes
1 parent a2e0cae commit c341273

File tree

5 files changed

+11
-42
lines changed

5 files changed

+11
-42
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

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/tarantool-graphql.spec

+1-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,11 @@ 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
2929
#Suggests: tarantool-lrexlib-pcre2
3030
#Suggests: tarantool-shard
3131
#Suggests: tarantool-http
32-
#Suggests: tarantool-avro-schema
3332

3433
%description
3534
Set of adapters for GraphQL query language to the Tarantool data model

tools/ubuntu.trusty.test.sh

+10-36
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,33 @@
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 ..
4728
# lua (with dev headers) is necessary for luacheck
48-
# maybe we can use tarantool headers?
4929
sudo apt-get install lua5.1
5030
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
31+
sudo apt-get install luarocks
5832
sudo luarocks install luacheck
5933
sudo pip install virtualenv
6034
make test

0 commit comments

Comments
 (0)