-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathplaybook.yml
More file actions
36 lines (36 loc) · 1.34 KB
/
playbook.yml
File metadata and controls
36 lines (36 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: Setup testing environment on Travis CI
hosts: 127.0.0.1
connection: local
gather_facts: False
sudo: True
vars:
- cask_version: '0.7.2'
tasks:
- name: Install prerequisites to add package repositories
apt: pkg=python-apt state=present
- name: Add 3rd party repositories
apt_repository: repo='{{item}}' update_cache=false state=present
with_items:
- ppa:cassou/emacs # Stable Emacs 24.3
- ppa:ubuntu-elisp/ppa # Nightly Emacs trunk builds
- ppa:arankine/backports # Ninja
- ppa:kalakris/cmake # CMake
- name: apt update cache
apt: update_cache=true force=yes
- name: Install additional dependencies
apt: name={{item}} state=latest install_recommends=false force=yes
with_items:
- build-essential
- unzip
- emacs24-nox
- ninja-build
- cmake
- name: Download Cask
get_url: url=https://github.com/cask/cask/archive/v{{cask_version}}.tar.gz
dest=/usr/src/cask-{{cask_version}}.tar.gz
- name: Extract Cask
unarchive: src=/usr/src/cask-{{cask_version}}.tar.gz copy=no dest=/opt/
creates=/opt/cask-{{cask_version}}/bin/cask
- name: Put Cask into PATH
file: path=/usr/local/bin/cask state=link
src=/opt/cask-{{cask_version}}/bin/cask