1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-25 18:56:52 +03:00
Commit Graph

49 Commits

Author SHA1 Message Date
avele
0336942072
Frontend E2E tests (#404)
Frontend E2E tests
2019-10-29 00:54:54 +04:00
Artyom Kazak
d334d7e355 Ensure that the frontend is being built in production mode (#399)
* Travis ensure that the frontend is being built in production mode
2019-10-25 23:15:48 +04:00
Artyom Kazak
f2aa18b6f7
Update chromedriver (#403) 2019-10-25 18:17:54 +03:00
Artyom Kazak
c9e95986ba
Commit the JS bundle for the old frontend into the repo (#396) 2019-09-10 09:24:54 +03:00
Vladislav Sabanov
e371f8d129 Load into postgres and check it. (#383)
* Insert all categories from Acid to Postgres

* Check postgres == acidstate

* Fix schema

* Redo the way undocumented definitions are counted (#381)

* Redo the way undocumented definitions are counted

* Fix YAML

* Fix a typo

* Generate swagger.json for branches (#380)

* Generate swagger.json for branches

* Fix

* Fix again

* Fix once more

* [skip ci] Regenerate swagger.json

* Don't log debug info to stdout

* Push even if the branch is ahead

* Fix

* Empty

* [skip ci] Regenerate swagger.json

* Don't use "skip ci"

* Enable all unobjectionable extensions (#384)

* Enable OverloadedStrings by default

* Remove pragmas for default extensions

* Enable some other extensions

* Enable TemplateHaskell

* Add logger

* Update cli

* Fix orders updater

* Cut UTC off. Precision 12 -> 9

* Delete item (trait) from category (item) if it marked 'deleted'
And add item (trait) to category (item) if it not marked 'deleted'

* Remove pragmas

* Update makefile, and check untill True with remote base

* Add check equality in travis

* Fix travis: wait for postgres

* Fix travis. Use native service

* Fix redirection

* Fix condition

* Make checks simple

* Refactor on comments. Everything but the last one.
Dumb or not dumb is still the question. (Concerning queries)
2019-08-23 07:49:44 +00:00
Artyom Kazak
ce62066598
Generate swagger.json for branches (#380)
* Generate swagger.json for branches

* Fix

* Fix again

* Fix once more

* [skip ci] Regenerate swagger.json

* Don't log debug info to stdout

* Push even if the branch is ahead

* Fix

* Empty

* [skip ci] Regenerate swagger.json

* Don't use "skip ci"
2019-08-19 17:58:24 +03:00
Artyom Kazak
a100905cbf Redo the way undocumented definitions are counted (#381)
* Redo the way undocumented definitions are counted

* Fix YAML

* Fix a typo
2019-08-19 12:35:34 +00:00
Vladislav Sabanov
593cb30fc5
Add insert/update transactions (#355)
* add insert transactions

* Fix Add, Add Set[wip], Test them

* Set function is completed and delete one also

* Add moveItem

* Add moveTrait

* Use ItemRow (#356)

* fix travis

* make corrections to the comments

* Add rest row types

* prettify

* Update back/src/Guide/Database/Set.hs

Co-Authored-By: Artyom Kazak <artyom@aelve.com>

* Add row types to get functions. Make ttype convertions

* Formatting

* Use 'do' for constructing rows

* Rename "column" to "columns"

* Fix an article

* Fix boolean capitalization

* Fix Haddock

* Rename TraitType constructors

* Fix sql query

* Fix select in schema

* Reexport more modules from Guide.Database

* Name the #created UTCTime arg

* Restore consistency

* Expand _order comments

* Rename mismatched row fields

* Add lenses for rows

* Replace set functions with 'modifyCategoryRow' and so on

* Document 'exposeFields' and 'exposeFieldsPrefixed'

* Rename exposeFields

* Improve logging in 'setupDatabase'

* Abstract 'makeLensesWith' to Utils module

* Less default parameters in 'addCategory'

* Rewrite docs for makeClassWithLenses
2019-08-10 17:13:40 +05:00
Artyom Kazak
f3050638f7
Use travis_retry with stack setup (#330)
* Use travis_retry with stack setup

* Comment
2019-07-11 19:10:42 +03:00
Artyom Kazak
1b22041506
Migrate to LTS 13 and Ubuntu Xenial (#302) 2019-06-26 11:35:52 +03:00
Artyom Kazak
dadadc39b5
Further Travis improvements (#291)
* Use system GHC

* Fix

* Fix fix

* Further fix

* CI

* Try to avoid breaking the cache

* Fix

* CI

* Extra rm

* CI

* Don't cache back/.stack-work

* CI (building the cache)

* CI again (really build the cache)

* And now rebuild

* Revert "Don't cache back/.stack-work"

This reverts commit e66256ae74.

* Don't remove GHC

* CI

* CI

* GHC *is* faster to install than to cache
2019-05-20 21:16:55 +02:00
Artyom Kazak
b55ccbd891
Fix some bugs in the Travis config and reduce the number of jobs (#290) 2019-05-17 22:44:52 +02:00
Vladislav Sabanov
9524e2263e
Update chromedriver (#281) 2019-04-24 23:26:53 +05:00
Vladislav Sabanov
7d9d8ec84e
Make docker and upload (#279)
* Make docker and upload

* Try to allow failures

* Allow failures npm

* Or True

* Or true

* Remove or true

* Fix config files

* Test cp

* Find dist

* Fix stage

* where is make

* Fix cd

* Remove checkers

* Fix dockerfile

* Add env to dockerfile

* Comment envs

* Set api=localhost

* Fix dockerfile and win

* Trigger on push
2019-04-24 20:25:12 +05:00
Vladislav Sabanov
892d5c7558
Swap slave with async (#273)
* Swap slave with async

* Refactor with mapConcurrently_

* Move functions from let to high level

* Separate ekg and spock

* Fix comments
2019-03-20 11:49:02 +05:00
Vladislav Sabanov
93236f1542
Add imports to test (#272)
* Add imports to test

And swap with imports in other modules.

* Add comments

* Fix travis and add comments

* Fix travis config
2019-03-17 10:21:44 +05:00
Dmitrij Pavluk
fbc949f3e4 Task/log monad (#264)
* monad DiT

* addition of monad DiT to gaider

* add deriving

* fix of exceptions

* Logger.hs

* logging

* configs

* fix

* cathing of exception

* logger structure

* configs fixes

* log format

* add time format to config

* add logs

* add logs

* add show instances to db actions

* add log to matomo

* add emptyOnExceptyon

* fixing of tests

* add test for logs

* add test for api

* add test for api

* sdd tests to api

* fix of tests

* fix of tests

* fix of errors

* add api tests

* add new tests for log

* add new tests for log

* add new tests for log

* add new tests for log & api

* ordering of API.hs

* add test of traits to api

* fixes to tests

* fixes of test

* add atributes to log

* attributes to logs

* fix to log

* Fix proposals

* Fix error level style

* Try to fix travis tests

* Add comment to servant error log

* Revert openFile to check travis tests

* Abstract withTempFile

* Rework the way handlers are logged

* Fix typos

* Don't use pack

* Add explicit export lists and warn about missing export lists

* Fix comments

* Get rid of useless H.

* Make export lists consistent

* Rewrite config comments

* Log to stderr by default, not to /var/log/guide.log

* Don't use module X

* Rewrite Guider.Logger.Init slightly

* No {- -} comments

* Separate logTests from webspec module

* Swap throwM with Di.Core.throw

* Fix logging

* No more .ghci

* Formatting, etc

* Remove loggers we're not going to use

* Comment

* Typo

* Comments

* searchQuery -> query

It's called "query" in the API

* Rename

* More logging

* Reorder things

* Fix test compilation

* Api -> ApiSpec

* Remove constantly failing footer test

* Rename logTest

* Fix failing log test

* TODO

* We don't do caching anymore

* Increase test time for move item up

* Add haddocked test

* Add uncommented function for test

* Up haddock test

* Add quotes

* Remove ':'

* Add curl stack

* Delete test function

* Up beforeHaddocked to 251

* Increase second threadDelay to 1 million

* Check test fixes

* Remove commented code

* Return bracket function

* Add comment
2019-02-26 10:40:42 +05:00
Vladislav Sabanov
65800eda6a
[WIP] Remove kinds and add hackage as option (#249)
* Split hackage

* WIP

* Migrate to newer safecopy-migrate

* Fix migrate

* Rename description to summary for item

* Fix link to templates

* Frontend tests fix for pr #249

* Change the path back

* WIP. Fix templates

* Update back/src/Guide/Api/Types.hs

* Remove unnecessary stuff from .gitignore

* Revert style changes

* Two spaces

* _itemDescription has been renamed

* Remove the Hackage test

* name_on_hackage -> hackage

* Fix Hackage param' type

* front changes from kind to hackage

* Fix tests

* Try fix templete

* Revert last commit

* Comment front test in travis
2019-01-05 16:08:42 +05:00
Artyom Kazak
70283a8fa7 Travis improvements (#253)
* Fix xvfb

* Install Stack differently

* Revert to Ubuntu Trusty

* Fix test path
2019-01-02 17:07:52 +04:00
Artyom Kazak
1758dab793
[WIP] Push a Docker image after a Travis build (#252)
Push a Docker image after a Travis build
2018-12-28 15:07:18 +11:00
Artyom Kazak
c32852ab77
Move the backend to /back/ (#240) 2018-12-09 23:02:03 +01:00
Vladislav Sabanov
ac15cfa047
Add Guider (#245)
* Add guider

* Implement with hoistServer

* Fix travis

* Fix catchError and guiderToHandler

* Fix catchError

* Fix def

* Fix redundent
2018-11-25 13:48:42 +05:00
Gigiman
e51268fb7e
Vue category toc (#228)
* TestCafe added to project. First test written

* Search input test added

* Seacth input test changed, travis job for testcafe tests added

* Travis bugfix test

* Travis testcafe bugfix test try 2

* Travis testcafe bugfix test ry 3

* Travis testcafe test sleep increased to 10

* Test adding category added but bug with click occurs - check!!!

* Category test (testing the group where test was creating) added - bug fix

* Article component rewrite

* Article component rewritten

* Big with rendering content.html in v-for

* Collapse bug fix

* MInor category visual changes/fixes

* Description, reactivity bug fix

* merge

* Refactoring after code review

* Conflict in styles resolved
2018-10-31 02:09:40 +05:00
Artyom Kazak
07067a0842 [travis] Break into two phases 2018-09-02 19:45:34 +02:00
Artyom Kazak
28513326b4 [travis] Increase the cache timeout 2018-09-02 18:09:23 +02:00
Artyom Kazak
63348e0a7f Parallel builds 2018-09-02 12:11:45 +02:00
Artyom Kazak
367323307c Fix CI 2018-09-02 12:03:17 +02:00
Jens Krause
87bafb6bb5
Upgrade chromedriver + selenium-server-standalone
to avoid `travis` error of `WebDriverException: disconnected: unable to connect to renderer`
2017-11-01 21:07:43 +01:00
Artyom
e76eb5a819
[travis] Update chromedriver 2017-09-09 11:32:30 +03:00
Artyom
4ad47ec6f9
[travis] Build the JS part 2017-08-13 19:40:43 +03:00
Artyom
e6b3409d29
[travis] Use newer Selenium and chromedriver 2017-08-13 16:07:48 +03:00
Artyom
22fa7e9fd0
[travis] Install Chrome 2017-08-13 15:59:57 +03:00
Artyom
80d3ca3594
Give Selenium more time to start 2017-01-31 04:15:40 +03:00
Artyom
821f15baab
Test database loading with the same resolver 2017-01-31 03:54:23 +03:00
Artyom
5d19c77a97
Add Travis-CI notifications to Slack 2017-01-31 03:18:33 +03:00
Artyom
e001e2823e
Reenable testing that the official database can be loaded 2017-01-31 01:06:50 +03:00
Artyom
3bce4c508e Download Chromedriver 2016-11-15 13:36:26 +03:00
Artyom
fec63b8a41 To hell with Travis optimisation
It doesn't work.
2016-09-13 01:56:47 +03:00
Artyom
d92c333701 More intelligent Travis optimisation 2016-09-13 01:42:38 +03:00
Artyom
c38991e521 Fixup 2016-09-13 01:03:16 +03:00
Artyom
732a35657c Optimise Travis cache 2016-09-13 00:57:41 +03:00
Artyom
e3d26fb84f Update to newer Selenium 2016-09-10 00:17:34 +03:00
Artyom
71b72e9291 Use travis_retry in the Travis script
It will retry a failing download automatically
2016-09-01 02:15:45 +03:00
Artyom
eae26eff61 [travis] Silence Selenium 2016-08-17 12:29:50 +03:00
Artyom
e75cdc4d91 [travis] Don't test twice; don't sdist 2016-08-17 12:24:42 +03:00
Artyom
8d32446250 [travis] Install Selenium 2016-08-17 12:12:46 +03:00
Artyom
c72815c436 Big switch to Mustache (only half-done)
* Render some elements of some pages with Mustache
* Switch to Stack
* Add a bit of tests
* Turn the project into a library
2016-08-17 11:18:57 +03:00
Artyom
5c64b2f36b [Travis] Test loading the official database 2016-04-08 18:33:33 +03:00
Artyom
cab27e77ab Create the project 2016-02-02 12:36:07 +03:00