mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-24 13:47:39 +00:00
Add Dockerfile for running tests
make docker make docker-test
This commit is contained in:
parent
68ec3d1c10
commit
76a2dcb5a9
11
Dockerfile
Normal file
11
Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM archlinux/base:latest
|
||||
RUN pacman -Sy && pacman --noconfirm -S awk tar git curl tmux zsh fish ruby procps
|
||||
RUN gem install --no-ri --no-rdoc minitest
|
||||
RUN echo '. /usr/share/bash-completion/completions/git' >> ~/.bashrc
|
||||
RUN echo '. ~/.bashrc' >> ~/.bash_profile
|
||||
|
||||
# Do not set default PS1
|
||||
RUN rm -f /etc/bash.bashrc
|
||||
COPY . /fzf
|
||||
RUN /fzf/install --all
|
||||
CMD tmux new 'ruby /fzf/test/test_go.rb > out && touch ok' && cat out && [ -e ok ]
|
10
Makefile
10
Makefile
@ -128,4 +128,12 @@ target/$(BINARYARM8): $(SOURCES) vendor
|
||||
bin/fzf: target/$(BINARY) | bin
|
||||
cp -f target/$(BINARY) bin/fzf
|
||||
|
||||
.PHONY: all release release-all test install clean
|
||||
docker:
|
||||
docker build -t fzf-arch .
|
||||
docker run -it fzf-arch tmux
|
||||
|
||||
docker-test:
|
||||
docker build -t fzf-arch .
|
||||
docker run -it fzf-arch
|
||||
|
||||
.PHONY: all release release-all test install clean docker docker-test
|
||||
|
Loading…
Reference in New Issue
Block a user