forked from nangtani/blender-addon-tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·52 lines (44 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dist: xenial
os:
# - osx
- linux
# - windows
env:
global:
- BLENDER_CACHE=$HOME/.cache/blender
- BL_ADDON=fake_addon
matrix:
- BLENDER_VERSION="3.0"
- BLENDER_VERSION="2.93"
- BLENDER_VERSION="2.92"
- BLENDER_VERSION="2.83"
language: python
python:
- 3.8
cache:
apt: true
directories:
- $HOME/.cache/pip
- ${BLENDER_CACHE}
addons:
apt:
packages:
- blender
before_install:
- mkdir -p ${BLENDER_CACHE}
- ls ${BLENDER_CACHE}
#- rm -rf ${BLENDER_CACHE}/*${BLENDER_VERSION}*
- pip install -r ${TRAVIS_BUILD_DIR}/requirements.txt --upgrade
- pip list
script:
- cd ${TRAVIS_BUILD_DIR}
- cd examples/testing-fake-addon/
#- pip install -r requirements.txt
- export PYTHONPATH=${TRAVIS_BUILD_DIR}
- pip install -r ${PYTHONPATH}/blender_addon_tester/requirements.txt
- python test_addon_blender.py ${BL_ADDON} ${BLENDER_VERSION}
#- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: change
on_failure: always