aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-07-28 11:22:00 -0600
committerCody Hiar <cody.hiar@investopedia.com>2016-07-28 11:22:00 -0600
commitc9de8b808ce7e984dd9620fa6f54b01279dd67a2 (patch)
tree32c66a32cf7d63555b8f71bc662f60190d9bf57d /Dockerfile
parentcd3c06cdc7f62cd5017311eea3277bec9dd02542 (diff)
Adding php linting
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile30
1 files changed, 29 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 28d9703..2c6e9a6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -18,14 +18,19 @@ RUN apt-get update && apt-get install -y \
python-dev \
python-pip \
python3-dev \
+ python3-pip \
git \
- python3-pip
+ php5
# Install Neovim
RUN add-apt-repository ppa:neovim-ppa/unstable -y
RUN apt-get update && apt-get install -y \
neovim
+#####################################
+# Python Linting
+#####################################
+
# Install the neovim python plugins
RUN pip install neovim flake8 flake8-docstrings flake8-import-order flake8-quotes pep8 pep8-naming pep257
RUN pip3 install neovim
@@ -37,6 +42,10 @@ RUN git clone https://github.com/thornycrackers/.nvim.git /root/.config/nvim
RUN nvim +PlugInstall +qa
RUN nvim +UpdateRemotePlugins +qa
+#####################################
+# Javscript Linting
+#####################################
+
# Install nodejs 6
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
RUN apt-get install -y \
@@ -49,3 +58,22 @@ RUN npm install -g eslint@\^2.10.2 eslint-config-airbnb eslint-plugin-import esl
# Install the eslintrc.json
ADD eslintrc.json /root/.eslintrc.json
+
+#####################################
+# PHP Linting
+#####################################
+
+# Download composer and move it to new location
+RUN curl -sS https://getcomposer.org/installer | php
+RUN mv composer.phar /usr/local/bin/composer
+
+# Composer install Code Sniff
+RUN composer global require "squizlabs/php_codesniffer=*"
+# Install Symfony 2 coding standard
+RUN composer global require --dev escapestudios/symfony2-coding-standard:~2.0
+
+# Update the path to include composer bins
+ENV PATH "$PATH:/root/.composer/vendor/bin"
+
+# Add Symfony 2 coding standard to the phpcs paths
+RUN phpcs --config-set installed_paths /root/.composer/vendor/escapestudios/symfony2-coding-standard