forked from PnX-SI/GeoNature
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.08 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
language: python
python:
- "3.5"
before_install:
- sudo apt-get install -y libgdal1-dev libgdal-dev
- sudo apt-get install -y python-gdal
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
# install dependencies
install:
- cd backend
- pip install -r requirements-dev.txt
- cd tests/travis_test
- ./travis_test.sh
# install frontend
#- cd ../../../frontend
#- nvm install 8.16.0
#- npm install
script:
## test backend
- cd ../../../backend
- pytest --disable-warnings --ignore=tests/usershub-geonature
- cd ../docs/
- make html
# # create a repository for frontend doc
# - mkdir build/html/frontend
# - cd ../frontend
#- npm run build
#- npm run compodoc
# deploy github pages on commit on master
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # set in the Travis dashboard
local_dir: docs/build/html
fqdn: http://docs.geonature.fr
target_branch: gh-pages
on:
branch: master
notifications:
email:
recipients:
- geonature@ecrins-parcnational.fr
on_failure: never
on_success: never