1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 15:01:59 +01:00

travis test on dev

This commit is contained in:
eoli3n 2017-12-26 00:00:29 +01:00
parent caa4551381
commit fc48621974
2 changed files with 17 additions and 4 deletions

15
.travis.yml Normal file

@ -0,0 +1,15 @@
sudo: required
services:
- docker
branches:
only:
- master
- dev
install:
- docker build -t archlinux/dotfiles docker/archlinux/Dockerfile
script:
- docker run archlinux/dotfiles

@ -1,4 +1,4 @@
FROM base/archlinux
FROM base/archlinux:latest
# Locales keyboard
RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \
@ -40,8 +40,6 @@ RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER test
WORKDIR /home/test/
ENV LANG="fr_FR.UTF-8"
RUN git clone --recursive https://github.com/eoli3n/dotfiles
RUN cd /tmp; curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=packer-git
RUN cd /tmp; makepkg PKGBUILD --install --needed --noconfirm
RUN cd /home/test/dotfiles; ./install.sh desktop ||:
RUN echo -e "test" | chsh -s '/usr/bin/zsh'
ENTRYPOINT git clone --recursive https://github.com/eoli3n/dotfiles && cd /home/test/dotfiles; ./install.sh desktop && echo -e "test" | chsh -s '/usr/bin/zsh'