Skip to content

Commit 0213bc0

Browse files
committed
use virtualenv for platform.sh and use make and requirements for travis
1 parent 5446afa commit 0213bc0

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/_build/doctrees
22
/_build/html
3+
/.venv/
4+
/.idea/
35
*.pyc

.platform.app.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@ web:
4343
# The size of the persistent disk of the application (in MB).
4444
disk: 512
4545

46-
# Build time dependencies.
4746
dependencies:
4847
python:
49-
sphinx: "1.3.6"
48+
virtualenv: "15.1"
5049

5150
# The hooks that will be performed when the package is deployed.
5251
hooks:
5352
build: |
54-
pip install git+https://github.com/fabpot/sphinx-php.git
55-
make -C _build html
53+
virtualenv .venv
54+
. .venv/bin/activate
55+
export PIP_USER=
56+
pip install pip==9.0.1 wheel==0.29.0
57+
pip install -r _build/.requirements.txt
58+
make -C _build html

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ sudo: false
66
cache:
77
directories: [$HOME/.cache/pip]
88

9-
install: pip install sphinx~=1.3.0 git+https://github.com/fabpot/sphinx-php.git
9+
install: pip install -r _build/.requirements.txt sphinx==1.3.0
1010

11-
script: sphinx-build -nW -c _build/ -b html -d _build/doctrees . _build/html
11+
script: SPHINXOPTS="-nW" make -eC _build html
1212

1313
branches:
1414
except:

_build/.requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git+https://github.com/fabpot/sphinx-php.git@master#egg_name=sphinx-php

0 commit comments

Comments
 (0)