Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add circle config for validating my changes on fresh machines #1

Merged
merged 12 commits into from
Sep 26, 2018
Prev Previous commit
Update ci config
  • Loading branch information
creichert committed Sep 26, 2018
commit f5e0dbc0927d975debffee1a1946f7ea7699deaf
18 changes: 14 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,33 @@ jobs:
- checkout

- run: apt update
- run: apt install xinit x11-xserver-utils xserver-xorg libx11-dev libxrandr-dev libxft-dev xvfb -y --no-install-recommends
- run: |
apt install -y --no-install-recommends \
xvfb xinit x11-xserver-utils \
xserver-xorg libx11-dev \
libxrandr-dev libxft-dev

- run: apt install stow emacs -y --no-install-recommends

# avoid stow tree-folding the whole dir
- run: mkdir -p ~/.stack/{programs,snapshots}

# remove pre-existing dotfiles (stow will not)
- run: rm ~/.profile ~/.bashrc ~/.gitconfig

- run: make dotfiles
- run: xvfb-run make dotemacs
- run: xvfb-run make theme

- restore_cache:
keys:
- v1-cache-{{ .Branch }}
- v1-cache
- v1-dotcache-{{ .Branch }}
- v1-dotcache

- run: xvfb-run make xmonad

- save_cache:
key: v1-cache-{{ .Branch }}
key: v1-dotcache-{{ .Branch }}
paths:
- ~/.stack/

Expand Down