forked from SDFIdk/FIRE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (42 loc) · 1.33 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
language: python
python:
- "3.7"
script:
# Set up conda
- sudo apt-get update
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a
# Remove conda packages that are only available on Windows
- sed -i '/msys2/d' environment-dev.yml
- sed -i '/m2-zip/d' environment-dev.yml
# Remove QGIS: Takes forever to install and is not used in currently implemented tests
- sed -i '/qgis/d' environment-dev.yml
- conda env create -f environment-dev.yml
- conda activate fire-dev
# Install fire
- pip install -e .
# Copy config file to suitable location
- cp .circleci/fire.ini ~/.fire.ini
# Build docs
- sphinx-build -b html ./docs ./docs/_build
# GitHub pages ignores folder starting with _, can be avoid by
# adding a .nojekyll file
- touch ./docs/_build/.nojekyll
deploy:
provider: pages:git
token: $GITHUB_TOKEN
cleanup: false
local_dir: docs/_build/
name: FIRE
email: fire@sdfe.dk
keep_history: false
commit_message: Deploy %{project_name} to %{url}:%{target_branch} [skip ci]
edge: true
on:
branch: 8.1