-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
52 lines (48 loc) · 1.8 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
tasks:
- name: Prepare development environment
before: |
touch dev.db
cp .env.example .env
python shell_scripts/add_secret_json.py "$GOOGLE_JSON_FILENAME" "$GOOGLE_JSON_VALUE"
sed -i "s|\[OPENAI_API_KEY\]|$OPENAI_API_KEY|" .env
sed -i "s|\[PATH/TO/GOOGLE/KEY.JSON\]|$GOOGLE_JSON_FILENAME|" .env
init: |
sudo apt-get update
sudo apt-get install sqlite3 libsqlite3-dev -y
pipenv install --dev
pipenv shell
flask db upgrade
npm install
npm run-script build
command: |
pipenv install
npm install
npm start
vscode:
extensions:
- ms-python.python
- yzhang.markdown-all-in-one
- eamodio.gitlens
- lextudio.restructuredtext
github:
prebuilds:
# enable for main/default branch
main: true
# enable for other branches (defaults to false)
branches: true
# 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: true
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: true