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

travis and docker files edited

This commit is contained in:
eoli3n 2017-12-26 00:49:10 +01:00
parent fc48621974
commit 0fabbd7cee
3 changed files with 9 additions and 3 deletions

@ -9,7 +9,7 @@ branches:
- dev
install:
- docker build -t archlinux/dotfiles docker/archlinux/Dockerfile
- docker build -t archlinux/dotfiles - < docker/archlinux/Dockerfile
script:
- docker run archlinux/dotfiles
- docker run archlinux/dotfiles test.sh

@ -42,4 +42,8 @@ WORKDIR /home/test/
ENV LANG="fr_FR.UTF-8"
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
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 git clone --recursive https://github.com/eoli3n/dotfiles
RUN cd /home/test/dotfiles; ./install.sh desktop | tee ansible.log
RUN echo -e "test" | chsh -s '/usr/bin/zsh'
ADD test.sh .
ENTRYPOINT /usr/bin/zsh

2
docker/archlinux/test.sh Executable file

@ -0,0 +1,2 @@
#!/bin/bash
cat ~/ansible.log | grep 'failed=0'