2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 00:21:23 +00:00
bench/.travis.yml
2022-08-01 14:15:23 +05:30

61 lines
2.0 KiB
YAML

language: python
dist: focal
sudo: true
git:
depth: 1
addons:
mariadb: '10.6'
matrix:
include:
- name: "Python 3.7 Basic Setup"
python: 3.7
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.8 Basic Setup"
python: 3.8
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.9 Basic Setup"
python: 3.9
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.10 Basic Setup"
python: "3.10"
script: python bench/tests/test_init.py TestBenchInit.basic
- name: "Python 3.7 Production Setup"
python: 3.7
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.10 Production Setup"
python: "3.10"
script: python bench/tests/test_setup_production.py TestSetupProduction.production
- name: "Python 3.7 Tests"
python: 3.7
script: python -m unittest -v bench.tests.test_utils && python -m unittest -v bench.tests.test_init
- name: "Python 3.10 Tests"
python: "3.10"
script: python -m unittest -v bench.tests.test_utils && python -m unittest -v bench.tests.test_init
install:
- wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb;
sudo apt install ./wkhtmltox_0.12.6-1.focal_amd64.deb;
- nvm install 14;
nvm use 14;
- mkdir -p ~/.bench;
cp -r $TRAVIS_BUILD_DIR/* ~/.bench;
python -m pip install -U --no-cache-dir --force-reinstall urllib3 pyOpenSSL ndg-httpsclient pyasn1 wheel setuptools pip;
python -m pip install -U -e ~/.bench;
- mariadb --host 127.0.0.1 --port 3306 -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'";
mariadb --host 127.0.0.1 --port 3306 -u root -ptravis -e "SET GLOBAL character_set_server = 'utf8mb4'";
mariadb --host 127.0.0.1 --port 3306 -u root -ptravis -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'";
mariadb --host 127.0.0.1 --port 3306 -u root -ptravis -e "FLUSH PRIVILEGES";