mirror of
https://github.com/frappe/bench.git
synced 2024-11-12 08:16:28 +00:00
104 lines
3.0 KiB
YAML
104 lines
3.0 KiB
YAML
language: python
|
|
dist: bionic
|
|
sudo: true
|
|
|
|
git:
|
|
depth: 1
|
|
|
|
cache:
|
|
- pip
|
|
- npm
|
|
- yarn
|
|
|
|
addons:
|
|
mariadb: '10.3'
|
|
|
|
matrix:
|
|
include:
|
|
- name: "Python 3.7 Basic Setup"
|
|
python: 3.7
|
|
env: TEST=bench
|
|
script: python bench/tests/test_init.py TestBenchInit.basic
|
|
|
|
- name: "Python 3.8 Basic Setup"
|
|
python: 3.8
|
|
env: TEST=bench
|
|
script: python bench/tests/test_init.py TestBenchInit.basic
|
|
|
|
- name: "Python 3.9 Basic Setup"
|
|
python: 3.9
|
|
env: TEST=bench
|
|
script: python bench/tests/test_init.py TestBenchInit.basic
|
|
|
|
- name: "Python 3.7 Production Setup"
|
|
python: 3.7
|
|
env: TEST=bench
|
|
script: python bench/tests/test_setup_production.py TestSetupProduction.production
|
|
|
|
- name: "Python 3.8 Production Setup"
|
|
python: 3.8
|
|
env: TEST=bench
|
|
script: python bench/tests/test_setup_production.py TestSetupProduction.production
|
|
|
|
- name: "Python 3.9 Production Setup"
|
|
python: 3.9
|
|
env: TEST=bench
|
|
script: python bench/tests/test_setup_production.py TestSetupProduction.production
|
|
|
|
- name: "Python 3.7 Tests"
|
|
python: 3.7
|
|
env: TEST=bench
|
|
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
|
|
|
- name: "Python 3.8 Tests"
|
|
python: 3.8
|
|
env: TEST=bench
|
|
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
|
|
|
- name: "Python 3.9 Tests"
|
|
python: 3.9
|
|
env: TEST=bench
|
|
script: python -m unittest -v bench.tests.test_init && python -m unittest -v bench.tests.test_utils
|
|
|
|
- name: "Python 3.7 Easy Install"
|
|
python: 3.7
|
|
env: TEST=easy_install
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
|
|
|
- name: "Python 3.8 Easy Install"
|
|
python: 3.8
|
|
env: TEST=easy_install
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
|
|
|
- name: "Python 3.9 Easy Install"
|
|
python: 3.9
|
|
env: TEST=easy_install
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
|
|
|
install:
|
|
- pip3 install urllib3 pyOpenSSL ndg-httpsclient pyasn1
|
|
|
|
- if [ $TEST == "bench" ];then
|
|
wget -q -O /tmp/wkhtmltox.tar.xz https://github.com/frappe/wkhtmltopdf/raw/master/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz;
|
|
tar -xf /tmp/wkhtmltox.tar.xz -C /tmp;
|
|
sudo mv /tmp/wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf;
|
|
sudo chmod o+x /usr/local/bin/wkhtmltopdf;
|
|
|
|
nvm install 14;
|
|
nvm use 14;
|
|
|
|
mkdir -p ~/.bench;
|
|
cp -r $TRAVIS_BUILD_DIR/* ~/.bench;
|
|
pip3 install -q -U -e ~/.bench;
|
|
|
|
mysql -u root -e "SET GLOBAL character_set_server = 'utf8mb4'";
|
|
mysql -u root -e "SET GLOBAL collation_server = 'utf8mb4_unicode_ci'";
|
|
mysql -u root -e "UPDATE mysql.user SET Password=PASSWORD('travis') WHERE User='root'";
|
|
mysql -u root -e "FLUSH PRIVILEGES";
|
|
fi
|
|
|
|
- if [ $TEST == "easy_install" ];then
|
|
mkdir -p /tmp/.bench;
|
|
cp -r $TRAVIS_BUILD_DIR/* /tmp/.bench;
|
|
fi
|