1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-26 06:08:35 +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 # Locales keyboard
RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \ RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen \
&& locale-gen \ && locale-gen \
@ -40,8 +40,6 @@ RUN echo "test ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
USER test USER test
WORKDIR /home/test/ WORKDIR /home/test/
ENV LANG="fr_FR.UTF-8" 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; 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 /tmp; makepkg PKGBUILD --install --needed --noconfirm
RUN cd /home/test/dotfiles; ./install.sh desktop ||: ENTRYPOINT git clone --recursive https://github.com/eoli3n/dotfiles && cd /home/test/dotfiles; ./install.sh desktop && echo -e "test" | chsh -s '/usr/bin/zsh'
RUN echo -e "test" | chsh -s '/usr/bin/zsh'