forked from ThePrimeagen/refactoring.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (28 loc) · 1.02 KB
/
Dockerfile
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
FROM ubuntu:latest
# Make code directory
RUN mkdir -p code/refactoring.nvim
# update, software-properties-common, git
RUN apt-get update && \
apt install -y software-properties-common && \
apt install -y git && \
apt install -y curl && \
apt install -y build-essential && \
apt install -y luarocks
RUN luarocks install argparse && luarocks install luacheck
RUN mkdir -p /tmp/
WORKDIR /tmp
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install stylua
# Clone dependencies
RUN git clone https://github.com/nvim-treesitter/nvim-treesitter.git /code/nvim-treesitter
RUN git clone https://github.com/nvim-lua/plenary.nvim.git /code/plenary.nvim
RUN add-apt-repository --yes ppa:neovim-ppa/unstable && \
apt-get install -y neovim
# Run tests when run container
# CMD cd /code/refactoring.nvim && make ci-install-deps && make test
CMD cd /code/refactoring.nvim && \
make lint && \
make fmt && \
make ci-install-deps && \
make test