-
Notifications
You must be signed in to change notification settings - Fork 21
/
.gitpod.yml
81 lines (73 loc) · 2.4 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
tasks:
- name: Compile project
command: |
curl --proto '=https' --tlsv1.2 -sSfL "https://git.io/Jc9bH" | bash -s selfinstall; # Install bashbox
bashbox build --release;
touch /workspace/.binit;
if ! command -v dotsh 1>/dev/null; then {
sudo ln -sf $PWD/dotsh /usr/bin/dotsh
} fi
gp sync-done compile;
exit;
- name: Open all src/ *.sh files
command: |
gp sync-await compile;
gp ports await 23000 1>/dev/null;
for file in install.sh src/utils/* src/variables.sh src/main.sh; do {
gp open "$file";
} done
exit;
- name: Bind mount repos dir
command: |
dir="$HOME/.dotfiles/repos";
target_dir="$PWD/${dir##*/}"
if test -e "$dir"; then {
mkdir -p "$target_dir";
sudo mount --bind "$dir" "$target_dir";
} fi
exit 0;
- name: Live testing
command: |
printf "\033[3J\033c\033[3J"
# DOTFILES_TMUX_NO_TAKEOVER
gp sync-await compile;
source "$HOME/.bashbox/env";
bashbox livetest; # `livetest` is a custom project command defined in `Bashbox.sh`
- name: First-time config
command: |
printf "\033[3J\033c\033[3J"
# DOTFILES_TMUX_NO_TAKEOVER
gp sync-await compile;
source "$HOME/.bashbox/env";
if test ! -e "$HOME/.dotfiles/src/variables.sh"; then
dotsh config
else
echo "Skipped because you're already using dotsh";
exit 0
fi
- name: Test
init: echo hello world
vscode:
extensions:
- mads-hartmann.bash-ide-vscode
- timonwong.shellcheck
ports:
- port: 33000
onOpen: ignore
github:
prebuilds:
# enable for the default branch (defaults to true)
master: true
# enable for all branches in this repo (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: false
# 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