forked from compserv/hknweb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (27 loc) · 780 Bytes
/
.travis.yml
File metadata and controls
29 lines (27 loc) · 780 Bytes
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
language: python
dist: xenial
cache:
directories:
- $HOME/.cache/pip
python:
- "3.7"
- "3.8"
- "3.9"
env:
# TODO: add test env (where DEBUG=False, secret key unencrypted)
- HKNWEB_MODE=dev
install:
- wget https://repo.anaconda.com/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"
# Useful for debugging any issues with conda
- conda info -a
# Create conda, activate, and install dependencies
- make conda PYTHON_VERSION=$(python3 -c "import sys; ver = sys.version_info; print(f'{ver.major}.{ver.minor}')")
- conda activate hknweb
- python --version
- make install
script:
- make migrate
- make check-conda
- python ./manage.py check