-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
27 lines (23 loc) · 1.1 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
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (https://www.gitpod.io/docs/config-gitpod-file).
image: condaforge/mambaforge:22.9.0-1
tasks:
- name: main
# build with mamba in cwd (backed-up)
init: |
echo "Building development environment..."
mamba env create -f environment.yml --prefix ./.warlock
echo "Development environment ready!"
# adjust PS1 + activate dev. env. + compile demon + install demonanalysis
command: |
conda config --set changeps1 False
parse_git_branch() { git branch --show-current ; }
export PS1="\e[1;37m(\$(parse_git_branch)) \e[0;33m\w \e[1;37m$\e[0m "
echo "Activating the environment..."
conda activate ./.warlock
echo "Compiling demon..."
g++ resources/demon_model/src/demon.cpp -o resources/demon_model/bin/demon -I.warlock/include -lm
echo "Installing demonanalysis..."
Rscript -e "devtools::install('resources/demonanalysis', upgrade=FALSE)"
echo "Ready to work!"
echo "Remember to switch to a feature branch before starting the development :)"