2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00
Commit Graph

41 Commits

Author SHA1 Message Date
Gavin D'souza
31d9de4dec ci: Remove install script tests
The script has been untested and unmaintained for a while. We've asked
for help in maintenance but nobody seems to want to undertake it.

With newer versions of distros and packages coming out each day, setups
get more and more volatile. Making these tests run in the CI don't
reflect how it would go down irl as no server comes with the same base
config. Apart from the base sanity, these tests are just a waste of
carbon. Removing them.
2022-04-28 11:03:25 +05:30
Aradhya
df76415e6b refactor: running utils tests before bench tests 2022-02-24 12:40:00 +05:30
Aradhya
8fb6796250 test: Added tests for app utils 2022-02-23 21:44:55 +05:30
Gavin D'souza
b2e0fd15c6 ci: Don't install bench in sudo 2021-11-13 00:25:01 +05:30
Gavin D'souza
a2ecb398dd ci: Use Nodejs version 14 for Tests 2021-11-12 23:15:49 +05:30
Gavin D'souza
89bc45e2d0 ci: Run all builds on 3.7, 3.8, 3.9
* Drop CI testing for older versions: 2.7, 3.5, 3.6
2021-04-23 12:22:17 +05:30
Gavin D'souza
5c8e9f2e55 chore: Use 3.5, 3.7 and 3.8 to test install.py
3.4 isn't available so let's not!
2020-08-14 21:16:04 +05:30
Gavin D'souza
892b449cd6 chore: Use 3.4, 3.6 and 3.8 to test install.py
Previously, tests were run for 3.6, 3.7 and 3.8; Changed the targets to
have more range of the versions
2020-08-14 20:45:50 +05:30
Gavin D'souza
3ea6634328 fix: run test builds for py2.7 and py3.7 2020-08-05 14:18:52 +05:30
Gavin D'souza
939d3d5c6d chore: run specified test alone 2020-07-13 19:18:35 +05:30
Gavin D'souza
6dc784fe4d fix(tests): print traceback from errors 2020-07-13 19:01:51 +05:30
gavin
b237a0d2cf
Revert "chore: dont run travis for docs updates" 2020-07-06 11:23:16 +05:30
Gavin D'souza
45684ca685 chore: depth 2 should suffice 2020-05-29 11:32:55 +05:30
Gavin D'souza
9eca22bac4 chore: dont run travis for docs updates 2020-05-29 11:15:34 +05:30
Gavin D'souza
803fa2d6ac fix: update easy install location 2020-05-02 20:07:16 +05:30
gavin
1f5c7ec201
chore: add travis, deepsource (#900)
* chore: added deepsource config

* chore: updated travis config

* chore: updated travis config

* chore: updated travis tests for 2.7, 3.6, 3.7, 3.8

* chore: quiet installs and sudo easy install

* fix(tests): add mariadb versioning

* fix(travis): print compat for pyhton 3

* fix: drop deprecated function usage

* chore(tests): update test_init

* tests: update branch to use version-12 for testing and use git module

* chore: quieten git command outputs on branch switch

* fix: execute 'setup production' via cli

* style: sort imports

* chore: update mariadb variables in .travis.yml

* chore: seperate jobs for easy install and production setup

* chore: use exec_cmd to log command output

* chore: pin tests to ubuntu trusty

* chore: use playbooks to install mariadb

* chore: mariadb fixes in travis

* chore: pin dist to ubuntu 18.04

* chore: setup envs according by type of test

* chore: ignore auto backup, procfile, assets build

* chore: change app frammeclient to frappe_theme

* test: try travis_wait

* tests: update and restructure tests

* tests: restructure flow of setUp, tearDown

* fix: python class inheritence fix

* chore: use local frappe repo instead of remote pull

* tests: skip assets during get-app

* fix(tests): remove reinstalling app after get_app called

* fix(tests): updated test_install_app

* fix: broken remove_app
tests: broken tests

* tests: no backup while dropping new_sites

* tests: added certain tests and py obj fixes

* tests: seperate basic and production setup tests

* tests: update travis, remove basic setup

* chore: move from function calls to exec_cmd

* chore: tests fixes

* chore: removed sudo from basic setup runs

* chore: use "sudo" for setting up sudoers

* fix: allow get_app from local folder

* fix: use gitpython to switch branch instead of exec_cmd

* chore: use test to check for file existing

* chore: restructure bench tests

* fix: fetch app repo before checking for version upgrade during
switch_branch

* fix: gitpython error in usage

* fix: boolean return value of file_exists

* fix: dont decode file contents

* fix: bench names and close open files

* chore: update bench config multiple benches

* chore: check where production fails

* chore: mention python version for init

* chore: remove node production test in CI

* fix: compatibility and permissions fixes

* chore: setup sudoers after prod setup

* fix: set remote upstream after local clone

* fix: disable production via cli

* chore(tests): fix upstream link

* chore: split tests and remove unused imports
2020-03-09 17:47:43 +05:30
gavin
495a038c45
fix(easy-install): compatibility for easy install on PY2 (#937)
* fix: compatibility for easy install on PY2

* test: remove python-distutils from travis

* chore: handle specific CalledProcessError for setuptools

Co-authored-by: Chinmay Pai <chinmaydpai@gmail.com>
2020-02-27 21:19:20 +05:30
Chinmay D. Pai
bf47661f3e
chore: setup distutils using apt instead of pip
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 20:34:43 +05:30
Chinmay D. Pai
0a9effdfb4
chore: setup distutils inside travis
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-02-20 20:12:28 +05:30
gavin
66dd5af087 Revert "fix: pip pinned to 19.3.1 after v20 breaking" 2020-02-10 14:56:55 +05:30
Gavin D'souza
7498c8e497 fix: pip pinned to 19.3.1 after v20 breaking
reference: https://github.com/pypa/pip/issues/7217
2020-01-21 17:49:18 +05:30
Aditya Hase
f57635eebf fix(travis): Make install script verbose 2019-07-23 20:00:05 +05:30
Aditya Hase
1c8b4c0325 fix(travis): Use Ubuntu 16.04 2019-07-23 19:57:10 +05:30
Ameya Shenoy
642935a8a8
removed pip lockdown on 9.0.3 2018-08-15 18:02:03 +00:00
Ameya Shenoy
a5de7d4af6
Merge branch 'master' into trav_fix 2018-07-03 14:34:02 +05:30
Ameya Shenoy
297f0d4bc5 modified mode install method 2018-07-03 13:31:13 +05:30
Ameya Shenoy
814c4565cb
travis permissions fix 2018-04-27 17:45:22 +05:30
Ameya Shenoy
4c13cb4289
frooze pip at 9.0.3 2018-04-16 11:22:32 +05:30
Ameya Shenoy
4249e2dad7
mogodb removed from travis 2018-01-11 15:21:09 +05:30
Rushabh Mehta
aea6bf5e4b Develop (#463)
* Add arguments for mysql_root_password and admin_password
Consider existing passwords.txt

* Remove duplicated --overwrite after rebase

* python 3 compatible changes for `update_npm_packages` (#434)

* Fix travis (#446)

* python 3 compatible changes for `update_npm_packages`

* install urllib3 pyOpenSSL ndg-httpsclient pyasn1 to fix wkhtmltopdf download failure on Travis

* use latest version of ansible

* test should look for mysqlclient-1.3.10 not mysqlclient-1.3.8

* `exec_cmd` causes TypeError on Python 3 (#451) (#452)

* python 3 compatible changes for `update_npm_packages`

* add universal_newlines=True to Popen

* Added docker specific changes to bench (#460)

* Added skip_bench_mkdir flag

* added skip_bench_mkdir and skip_redis_config_generation

* Removed the brackets around not in the utils.py/redis.generate_config()

* Replace lines 56-61 in utils.py since the tests failed.

* Reinstated lines 56-61

* printing the dirname

* Removed the rogue break

* Update utils.py
2017-08-03 16:33:57 +05:30
Sagar Vora
48b82043c1 use deprecated trusty build for now 2017-06-22 16:26:58 +05:30
Anand Doshi
68564849e6 [fix] installer and travis 2016-06-28 13:22:58 +05:30
Valmik Jangla
b0f571108d Added switch-to-branch command 2016-06-08 12:05:45 +05:30
Anand Doshi
149dbae7a3 [test] test_setup_production_v6 2016-04-27 22:22:46 +05:30
Anand Doshi
5e8229c2ba [fix] config generation and deprecate bench/config.json 2016-03-22 23:44:27 +05:30
Anand Doshi
c3a2abe71f [travis] use setup_frappe.sh for testing 2016-03-22 13:17:57 +05:30
shreyas
04de9cd7a7 [Travis] Bypass the prompt while purging mysql 2016-03-14 12:13:03 +05:30
shreyas
4851619838 [Enhancement] Adding Playbooks and roles to the bench 2016-03-03 11:40:13 +05:30
shreyas
2e9c285a2c [Enhancements]Installing pip and bench 2016-03-02 16:53:51 +05:30
Anand Doshi
26356f2b3e [test] python site-packages 2016-02-29 20:07:23 +05:30
Anand Doshi
6797768572 [enhancement] multi-bench setup and test cases for bench with [travis] 2016-02-25 20:01:23 +05:30