diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2018-06-01 18:23:25 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2018-06-01 18:23:25 +0900 |
commit | 76a2dcb5a95c3027eeb811c0abb9331928c13653 (patch) | |
tree | e946779887bdac7c16ff722e347dd034c96c6ad7 | |
parent | 68ec3d1c1049fa2554b9d8e4f810dd0e40b6379b (diff) |
Add Dockerfile for running tests
make docker
make docker-test
-rw-r--r-- | Dockerfile | 11 | ||||
-rw-r--r-- | Makefile | 10 |
2 files changed, 20 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a37d2e20 --- /dev/null +++ b/Dockerfile @@ -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 ] @@ -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 |