2016-02-25 12:11:08 +00:00
|
|
|
language: python
|
2020-03-09 12:17:43 +00:00
|
|
|
dist: bionic
|
|
|
|
sudo: true
|
2016-02-25 12:11:08 +00:00
|
|
|
|
2020-03-09 12:17:43 +00:00
|
|
|
git:
|
2020-05-29 06:02:55 +00:00
|
|
|
depth: 2
|
2020-03-09 12:17:43 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
- pip
|
|
|
|
- npm
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
addons:
|
|
|
|
mariadb: '10.3'
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: "Python 2.7 Basic Setup"
|
|
|
|
python: 2.7
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_init
|
|
|
|
|
|
|
|
- name: "Python 3.6 Basic Setup"
|
|
|
|
python: 3.6
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_init
|
|
|
|
|
|
|
|
- name: "Python 3.7 Basic Setup"
|
|
|
|
python: 3.7
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_init
|
|
|
|
|
|
|
|
- name: "Python 3.8 Production Setup"
|
|
|
|
python: 3.8
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_setup_production
|
|
|
|
|
|
|
|
- name: "Python 2.7 Production Setup"
|
|
|
|
python: 2.7
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_setup_production
|
|
|
|
|
|
|
|
- name: "Python 3.6 Production Setup"
|
|
|
|
python: 3.6
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_setup_production
|
|
|
|
|
|
|
|
- name: "Python 3.7 Production Setup"
|
|
|
|
python: 3.7
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_setup_production
|
|
|
|
|
|
|
|
- name: "Python 3.8 Production Setup"
|
|
|
|
python: 3.8
|
|
|
|
env: TEST=bench
|
|
|
|
script: python -m unittest -v bench.tests.test_setup_production
|
|
|
|
|
|
|
|
- name: "Python 3.6 Easy Install"
|
|
|
|
python: 3.6
|
|
|
|
env: TEST=easy_install
|
2020-05-02 14:37:16 +00:00
|
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
2020-03-09 12:17:43 +00:00
|
|
|
|
|
|
|
- name: "Python 3.7 Easy Install"
|
|
|
|
python: 3.7
|
|
|
|
env: TEST=easy_install
|
2020-05-02 14:37:16 +00:00
|
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
2020-03-09 12:17:43 +00:00
|
|
|
|
|
|
|
- name: "Python 3.8 Easy Install"
|
|
|
|
python: 3.8
|
|
|
|
env: TEST=easy_install
|
2020-05-02 14:37:16 +00:00
|
|
|
script: sudo python $TRAVIS_BUILD_DIR/install.py --user travis --run-travis --production --verbose
|
2016-02-25 12:11:08 +00:00
|
|
|
|
2020-05-29 05:45:34 +00:00
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
|
|
|
|
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
|
|
|
|
fi
|
|
|
|
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '\.md$|^docs' || {
|
|
|
|
echo "Only docs were updated, stopping build process."
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2016-02-25 12:11:08 +00:00
|
|
|
install:
|
2020-03-09 12:17:43 +00:00
|
|
|
- pip 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;
|
|
|
|
|
|
|
|
mkdir -p ~/.bench;
|
|
|
|
cp -r $TRAVIS_BUILD_DIR/* ~/.bench;
|
|
|
|
pip install -q -U -e ~/.bench;
|
|
|
|
sudo pip 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
|