forked from nortikin/sverchok
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (75 loc) · 2.35 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: bash
sudo: enabled
branches:
only:
- master
- 279_master
install:
- |
#set -x
#set -e
if [ $TRAVIS_BRANCH = "master" ]
then BLENDER_VERSION=2.82
BLENDER_URL=https://ftp.nluug.nl/pub/graphics/blender/release/Blender2.82/blender-2.82a-linux64.tar.xz
SVERCHOK_DIR=scripts/addons/sverchok
BLENDER_TAR=$(basename $BLENDER_URL)
BLENDER_DIR=$(basename $BLENDER_URL .tar.xz)
else BLENDER_VERSION=2.79
BLENDER_URL=https://download.blender.org/release/Blender2.79/blender-2.79b-linux-glibc219-x86_64.tar.bz2
SVERCHOK_DIR=scripts/addons/sverchok
BLENDER_TAR=$(basename $BLENDER_URL)
BLENDER_DIR=$(basename $BLENDER_URL .tar.bz2)
fi
if [ ! -f installation/blender/blender ]
then
mkdir -p installation
cd installation
wget $BLENDER_URL
tar xf $BLENDER_TAR
if [ -d blender ]
then rm -rf blender
fi
mv $BLENDER_DIR blender
rm $BLENDER_TAR
pushd blender/
PYTHON=${BLENDER_VERSION}/python/bin/python3.7m
$PYTHON -m ensurepip
$PYTHON -m pip install --upgrade pip setuptools wheel
$PYTHON -m pip install --upgrade scipy geomdl scikit-image
popd
echo "Current directory after downloading blender: $(pwd)"
cd ..
fi
#mkdir -p ${PWD}/installation/blender/${BLENDER_VERSION}/${SVERCHOK_DIR}
ln -s ${PWD} ${PWD}/installation/blender/${BLENDER_VERSION}/${SVERCHOK_DIR}
mkdir -p ~/.config/blender/${BLENDER_VERSION}/config/
ln -s ${PWD}/tests/references/userpref.blend ~/.config/blender/${BLENDER_VERSION}/config/
env:
- BLENDER=${PWD}/installation/blender/blender-softwaregl
# Actually run all tests.
script:
- |
CHANGES=$(git log --stat $TRAVIS_COMMIT_RANGE docs .travis.yml build_docs.sh | wc -l)
if [ $CHANGES -gt 0 ]
then DOCS_UPDATED=Y
else DOCS_UPDATED=N
fi
export DOCS_UPDATED
- bash ./run_tests.sh
before_deploy:
- sudo apt-get update && sudo apt-get install -y python3-sphinx
- bash ./build_docs.sh
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
keep_history: true
file: docs/_build/sverchok_documentation.tar.bz2
draft: true
on:
repo: nortikin/sverchok
condition: $DOCS_UPDATED = Y
branch: master
cache:
directories:
- ${PWD}/installation