-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
main.yml
70 lines (68 loc) · 1.9 KB
/
main.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
- name: add LLVM repository
apt_repository:
repo: deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-8 main
state: present
validate_certs: false
- name: test dependencies (1/2)
apt: { name: "{{ item }}", install_recommends: no, update_cache: yes, cache_valid_time: 3600 }
with_items:
- build-essential
- cmake
- curl
- gdb
- git
- jq
- sqlite3
- libblas-dev
- libbz2-dev
- libcairo-dev
- libclang-8-dev # dstep
- libcurl4-gnutls-dev
- libevent-dev
- libgcrypt20-dev
- libgpg-error-dev
- libgtk-3-0
- liblapack-dev
- liblzo2-dev
- libopenblas-dev
- libreadline-dev
- libssl-dev
- libxml2-dev
- libxslt1-dev
- libzmq3-dev
- llvm-8-dev # ldc
- mongodb-server
- moreutils # sponge et.al.
- ninja-build # ldc
- pkg-config
- python-dev
- python-yaml
- python3-nose
- redis-server
- rsync
- unzip
- name: test dependencies (2/2)
apt: { deb: "{{ item }}", install_recommends: no }
with_items:
- https://bintray.com/sociomantic-tsunami/dlang/download_file?file_path=libebtree6_6.0.s7-rc5-xenial_amd64.deb
- https://bintray.com/sociomantic-tsunami/dlang/download_file?file_path=libebtree6-dev_6.0.s7-rc5-xenial_amd64.deb
- name: disable mongodb journaling
lineinfile: { dest: /etc/mongodb.conf, regexp: "^{{ item.key }} *=", line: "{{ item.key }} = {{ item.value }}" }
with_dict:
journal: 'false'
nojournal: 'true'
notify: restart mongodb
- name: use ld.gold
alternatives: { name: ld, link: /usr/bin/ld, path: /usr/bin/ld.gold }
- name: add load_travis_script command
copy:
dest: /usr/local/bin/get_travis_test_script
mode: 0555
content: |
#!/usr/bin/env python
import sys, yaml
script = yaml.load(open('.travis.yml', 'r')).get('script', '')
if isinstance(script, list):
script = '\n'.join(script)
print(script)