This repository has been archived by the owner on Dec 22, 2022. It is now read-only.
forked from GridTools/gt4py
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitpod.yml
33 lines (32 loc) · 1.51 KB
/
.gitpod.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
image:
file: .gitpod.Dockerfile
tasks:
- before: |
mkdir -p ~/.cache
mkdir -p /workspace/.caches/pre-commit
ln -s /workspace/.caches/pre-commit ~/.cache/pre-commit
init: |
pip install -e .
pip install -r requirements-dev.txt
PYENV_PYTHON_VERSION=$(python --version | cut -d ' ' -f 2)
cp ~/.pyenv/versions/${PYENV_PYTHON_VERSION}/lib/python${PYENV_PYTHON_VERSION:0:3}/site-packages/easy-install.pth /workspace/.pip-modules/lib/python${PYENV_PYTHON_VERSION:0:3}/site-packages/
cp ~/.pyenv/versions/${PYENV_PYTHON_VERSION}/lib/python${PYENV_PYTHON_VERSION:0:3}/site-packages/*.egg-link /workspace/.pip-modules/lib/python${PYENV_PYTHON_VERSION:0:3}/site-packages/
pre-commit install --install-hooks
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: false
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: false
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false