Signed-off-by: Jean Privat <jean@pryen.org>
&& printf "PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK\nexport PATH\n" >> "/etc/profile.d/android.sh"
# Setup environment variables
-
ENV ANDROID_HOME /opt/android-sdk-linux
ENV ANDROID_NDK /opt/android-ndk
ENV PATH $PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_NDK
-
-# Run tests
-RUN cd /nit/tests \
- # Basic tests
- && ./testfull.sh || true \
- && rm -rf out/ alt/*.nit \
- # Nitunits
- && ../bin/nitunit ../lib ../contrib || true \
- && rm -rf .nitunit \
- && ccache -C
--- /dev/null
+# This is a full install of Nit on a debian base.
+# Full because most dependencies are installed so that most tests can be run
+
+FROM nitlang/nit:full
+MAINTAINER Jean Privat <jean@pryen.org>
+
+# Run tests
+RUN cd /nit/tests \
+ # Basic tests
+ && ./testfull.sh || true \
+ && rm -rf out/ alt/*.nit \
+ # Nitunits
+ && ../bin/nitunit ../lib ../contrib || true \
+ && rm -rf .nitunit \
+ && ccache -C