mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
a886d7a769
commit
d49e317c82
1 changed files with 40 additions and 59 deletions
|
@ -23,69 +23,50 @@ provides:
|
||||||
test:
|
test:
|
||||||
dependencies:
|
dependencies:
|
||||||
git-scm.org: ^2
|
git-scm.org: ^2
|
||||||
|
gnu.org/sed: '*'
|
||||||
|
fixture: |
|
||||||
|
SELECT 1
|
||||||
|
SELECT 1 + 2
|
||||||
|
SELECT LEN("Git Query Language")
|
||||||
|
SELECT "One" IN ("One", "Two", "Three")
|
||||||
|
SELECT "Git Query Language" LIKE "%Query%"
|
||||||
|
|
||||||
|
SELECT DISTINCT title AS tt message FROM commits
|
||||||
|
SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10
|
||||||
|
SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10
|
||||||
|
|
||||||
|
SELECT * FROM refs WHERE type = "branch"
|
||||||
|
SELECT * FROM refs ORDER BY type
|
||||||
|
|
||||||
|
SELECT * FROM commits
|
||||||
|
SELECT name, email FROM commits
|
||||||
|
SELECT name, email FROM commits ORDER BY name DESC, email ASC
|
||||||
|
SELECT name, email FROM commits WHERE name LIKE "%gmail%" ORDER BY name
|
||||||
|
SELECT * FROM commits WHERE LOWER(name) = "mxcl"
|
||||||
|
SELECT name FROM commits GROUP By name
|
||||||
|
SELECT name FROM commits GROUP By name having name = "mxcl"
|
||||||
|
|
||||||
|
SELECT * FROM branches
|
||||||
|
SELECT * FROM branches WHERE is_head = true
|
||||||
|
SELECT name, LEN(name) FROM branches
|
||||||
|
|
||||||
|
SELECT * FROM tags
|
||||||
|
SELECT * FROM tags OFFSET 1 LIMIT 1
|
||||||
script:
|
script:
|
||||||
- git clone https://github.com/pkgxdev/pkgx
|
- git clone https://github.com/pkgxdev/pkgx
|
||||||
- run: cat $FIXTURE | gitql --repos pkgx
|
- run: |
|
||||||
fixture: |
|
echo 'exit' >>$FIXTURE
|
||||||
SELECT 1
|
cat $FIXTURE | gitql --repos pkgx
|
||||||
SELECT 1 + 2
|
|
||||||
SELECT LEN("Git Query Language")
|
|
||||||
SELECT "One" IN ("One", "Two", "Three")
|
|
||||||
SELECT "Git Query Language" LIKE "%Query%"
|
|
||||||
|
|
||||||
SELECT DISTINCT title AS tt message FROM commits
|
|
||||||
SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10
|
|
||||||
SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10
|
|
||||||
|
|
||||||
SELECT * FROM refs WHERE type = "branch"
|
|
||||||
SELECT * FROM refs ORDER BY type
|
|
||||||
|
|
||||||
SELECT * FROM commits
|
|
||||||
SELECT name, email FROM commits
|
|
||||||
SELECT name, email FROM commits ORDER BY name DESC, email ASC
|
|
||||||
SELECT name, email FROM commits WHERE name LIKE "%gmail%" ORDER BY name
|
|
||||||
SELECT * FROM commits WHERE LOWER(name) = "mxcl"
|
|
||||||
SELECT name FROM commits GROUP By name
|
|
||||||
SELECT name FROM commits GROUP By name having name = "mxcl"
|
|
||||||
|
|
||||||
SELECT * FROM branches
|
|
||||||
SELECT * FROM branches WHERE is_head = true
|
|
||||||
SELECT name, LEN(name) FROM branches
|
|
||||||
|
|
||||||
SELECT * FROM tags
|
|
||||||
SELECT * FROM tags OFFSET 1 LIMIT 1
|
|
||||||
exit
|
|
||||||
if: <0.10.0
|
if: <0.10.0
|
||||||
- run: |
|
- run: |
|
||||||
gitql <$FIXTURE
|
gitql <$FIXTURE
|
||||||
gitql -q 'SELECT 1'
|
gitql -q 'SELECT 1'
|
||||||
fixture: |
|
if: '>=0.10.0<0.22.0 || >=0.22.1'
|
||||||
SELECT 1
|
working-directory: pkgx
|
||||||
SELECT 1 + 2
|
# bug in v0.22.0, queries without FROM error out, fixed in v0.22.1
|
||||||
SELECT LEN("Git Query Language")
|
- run: |
|
||||||
SELECT "One" IN ("One", "Two", "Three")
|
sed -i '/FROM/!d' $FIXTURE
|
||||||
SELECT "Git Query Language" LIKE "%Query%"
|
gitql <$FIXTURE
|
||||||
|
gitql -q 'SELECT 1 AS just_a_number FROM tags LIMIT 1'
|
||||||
SELECT DISTINCT title AS tt message FROM commits
|
if: 0.22.0
|
||||||
SELECT name, COUNT(name) AS commit_num FROM commits GROUP BY name ORDER BY commit_num DESC LIMIT 10
|
|
||||||
SELECT commit_count FROM branches WHERE commit_count BETWEEN 0 .. 10
|
|
||||||
|
|
||||||
SELECT * FROM refs WHERE type = "branch"
|
|
||||||
SELECT * FROM refs ORDER BY type
|
|
||||||
|
|
||||||
SELECT * FROM commits
|
|
||||||
SELECT name, email FROM commits
|
|
||||||
SELECT name, email FROM commits ORDER BY name DESC, email ASC
|
|
||||||
SELECT name, email FROM commits WHERE name LIKE "%gmail%" ORDER BY name
|
|
||||||
SELECT * FROM commits WHERE LOWER(name) = "mxcl"
|
|
||||||
SELECT name FROM commits GROUP By name
|
|
||||||
SELECT name FROM commits GROUP By name having name = "mxcl"
|
|
||||||
|
|
||||||
SELECT * FROM branches
|
|
||||||
SELECT * FROM branches WHERE is_head = true
|
|
||||||
SELECT name, LEN(name) FROM branches
|
|
||||||
|
|
||||||
SELECT * FROM tags
|
|
||||||
SELECT * FROM tags OFFSET 1 LIMIT 1
|
|
||||||
if: '>=0.10.0'
|
|
||||||
working-directory: pkgx
|
working-directory: pkgx
|
||||||
|
|
Loading…
Reference in a new issue