-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (31 loc) · 1.04 KB
/
.gitlab-ci.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
#|
#| GitLab Continuous Integration config file
#|
# See https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
image: debian:testing-slim
before_script:
- apt-get update -yqq
- apt-get install -yqq stow bash zsh shellcheck bats
- useradd --create-home --skel /dev/null --shell /bin/bash tobias
stages:
- build
- test
install-dotfiles:
stage: build
script:
- rm -Rf $HOME/.profile $HOME/.bashrc $HOME/.config
- mkdir -p $HOME/.local/share && mkdir $HOME/.config
- cp -R $CI_BUILDS_DIR/gnumoksha/dotfiles $HOME/.local/share/dotfiles
- cd $HOME/.local/share/dotfiles
- export DOTFILES=$HOME/.local/share/dotfiles; yes | ./install.sh
# - su tobias -c 'mkdir -p $HOME/.local/share && mkdir $HOME/.config'
# - su tobias -c 'cp -R $CI_BUILDS_DIR/gnumoksha/dotfiles $HOME/.local/share/dotfiles'
# - su tobias -c 'cd $HOME/.local/share/dotfiles && yes | ./install.sh'
code-analysis:
stage: test
script:
- shellcheck shell/plugins/*.sh
unit-test:
stage: test
script:
- bats shell/plugins/tests/