Fix tests
parent
291b6f1140
commit
663fab198f
|
@ -34,6 +34,7 @@ USER ambrose
|
||||||
# install user programs
|
# install user programs
|
||||||
|
|
||||||
# shell config
|
# shell config
|
||||||
|
RUN ./.install/dircolors.sh
|
||||||
RUN ./.install/pure.sh
|
RUN ./.install/pure.sh
|
||||||
RUN ./.install/thefuck.sh
|
RUN ./.install/thefuck.sh
|
||||||
RUN ./.install/zsh-autosuggestions.sh
|
RUN ./.install/zsh-autosuggestions.sh
|
||||||
|
|
|
@ -17,6 +17,7 @@ pipeline:
|
||||||
group: test
|
group: test
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
|
- ./.install/repositories.sh
|
||||||
- ./.install/neovim.sh
|
- ./.install/neovim.sh
|
||||||
- nvim -version
|
- nvim -version
|
||||||
- nvim +checkhealth +qa
|
- nvim +checkhealth +qa
|
||||||
|
@ -36,7 +37,7 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ./.install/sudo.sh
|
- ./.install/sudo.sh
|
||||||
- ./.install/thefuck.sh
|
- ./.install/thefuck.sh
|
||||||
- thefuck -v
|
- ./.local/bin/thefuck -v
|
||||||
when:
|
when:
|
||||||
status: [ failure, success ]
|
status: [ failure, success ]
|
||||||
test-yadm:
|
test-yadm:
|
||||||
|
@ -45,13 +46,14 @@ pipeline:
|
||||||
commands:
|
commands:
|
||||||
- ./.install/sudo.sh
|
- ./.install/sudo.sh
|
||||||
- ./.install/yadm.sh
|
- ./.install/yadm.sh
|
||||||
- yadm version
|
- ./.local/bin/yadm version
|
||||||
when:
|
when:
|
||||||
status: [ failure, success ]
|
status: [ failure, success ]
|
||||||
test-golang:
|
test-golang:
|
||||||
group: test
|
group: test
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
|
- ./.install/repositories.sh
|
||||||
- ./.install/golang.sh
|
- ./.install/golang.sh
|
||||||
- go version
|
- go version
|
||||||
- go get github.com/golang/example/hello
|
- go get github.com/golang/example/hello
|
||||||
|
@ -62,6 +64,7 @@ pipeline:
|
||||||
group: test
|
group: test
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
|
- ./.install/repositories.sh
|
||||||
- ./.install/node.sh
|
- ./.install/node.sh
|
||||||
- node -e "console.log(process.versions)"
|
- node -e "console.log(process.versions)"
|
||||||
when:
|
when:
|
||||||
|
@ -70,6 +73,7 @@ pipeline:
|
||||||
group: test
|
group: test
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
|
- ./.install/repositories.sh
|
||||||
- ./.install/node.sh
|
- ./.install/node.sh
|
||||||
- ./.install/yarn.sh
|
- ./.install/yarn.sh
|
||||||
- yarn --version
|
- yarn --version
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "Downloading LS_COLORS..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
wget https://raw.github.com/trapd00r/LS_COLORS/master/LS_COLORS -O ~/.dircolors
|
|
@ -10,6 +10,7 @@ echo
|
||||||
sudo apk add --no-cache --virtual .build-deps \
|
sudo apk add --no-cache --virtual .build-deps \
|
||||||
curl
|
curl
|
||||||
|
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
curl -fLo ~/.local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
|
curl -fLo ~/.local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v$KUBECTL_VERSION/bin/linux/amd64/kubectl
|
||||||
chmod a+x ~/.local/bin/kubectl
|
chmod a+x ~/.local/bin/kubectl
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ sudo apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
bash
|
bash
|
||||||
|
|
||||||
|
mkdir -p ~/.local/bin
|
||||||
curl -fLo ~/.local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
|
curl -fLo ~/.local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
|
||||||
chmod a+x ~/.local/bin/yadm
|
chmod a+x ~/.local/bin/yadm
|
||||||
|
|
||||||
|
|
17
.zshrc
17
.zshrc
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
# zsh settings
|
# zsh settings
|
||||||
export SAVEHIST=10000
|
export SAVEHIST=10000
|
||||||
export HISTFILE=~/.zsh_history
|
export HISTFILE=$HOME/.zsh_history
|
||||||
setopt append_history
|
setopt append_history
|
||||||
setopt extended_history
|
setopt extended_history
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
@ -23,7 +23,10 @@ bindkey -v
|
||||||
bindkey '^R' history-incremental-search-backward
|
bindkey '^R' history-incremental-search-backward
|
||||||
|
|
||||||
# zsh imports
|
# zsh imports
|
||||||
fpath=( ~/.zsh/functions $fpath )
|
fpath=( $HOME/.zsh/functions $fpath )
|
||||||
|
|
||||||
|
# ls colors
|
||||||
|
eval $(dircolors -b $HOME/.dircolors)
|
||||||
|
|
||||||
# editor
|
# editor
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
|
@ -35,7 +38,7 @@ autoload -U promptinit; promptinit
|
||||||
prompt pure
|
prompt pure
|
||||||
|
|
||||||
# autosuggestions
|
# autosuggestions
|
||||||
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=239'
|
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=239'
|
||||||
export ZSH_AUTOSUGGEST_USE_ASYNC=true
|
export ZSH_AUTOSUGGEST_USE_ASYNC=true
|
||||||
bindkey '^e' autosuggest-accept
|
bindkey '^e' autosuggest-accept
|
||||||
|
@ -50,11 +53,15 @@ export PATH="$(go env GOPATH)/bin:$PATH"
|
||||||
# aliases
|
# aliases
|
||||||
alias vim=nvim
|
alias vim=nvim
|
||||||
|
|
||||||
# iTerm2 shell integration
|
# gpg as ssh agent
|
||||||
|
test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
|
|
||||||
|
# iTerm2 integration
|
||||||
test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh"
|
test -e "$HOME/.iterm2_shell_integration.zsh" && source "$HOME/.iterm2_shell_integration.zsh"
|
||||||
# Hack to optionally get some oh-my-zsh back
|
# hack to optionally get some oh-my-zsh back
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
test -e "$HOME/.oh-my-zsh/plugins/osx/osx.plugin.zsh" && source "$HOME/.oh-my-zsh/plugins/osx/osx.plugin.zsh"
|
test -e "$HOME/.oh-my-zsh/plugins/osx/osx.plugin.zsh" && source "$HOME/.oh-my-zsh/plugins/osx/osx.plugin.zsh"
|
||||||
|
# legacy scripts
|
||||||
test -e "$HOME/.bin" && export PATH="$HOME/.bin:$PATH" # TODO: move to .local/bin
|
test -e "$HOME/.bin" && export PATH="$HOME/.bin:$PATH" # TODO: move to .local/bin
|
||||||
|
|
||||||
# tips
|
# tips
|
||||||
|
|
Loading…
Reference in New Issue