Skip to content

Commit 269ccd4

Browse files
committed
Add jobs for the makefiles to build.
1 parent 32e82df commit 269ccd4

File tree

3 files changed

+138
-0
lines changed

3 files changed

+138
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with magpar. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- magpar
43+
- magpar_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-magpar }
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with nmag. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- nmag
43+
- nmag_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-nmag }
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
# This Ansible playbook is a provision playbook designed to be used with
3+
# vagrant. This playbook provisions a machine suitable for micromagnetic
4+
# simulation with OOMMF. It is executed by the virtual machine.
5+
6+
- hosts: all
7+
8+
# We install docutils here instead of using the role directly, so that the
9+
# welcome file can be created before the superuser is added.
10+
pre_tasks:
11+
12+
- name: Install pip.
13+
apt:
14+
pkg=python-pip
15+
state=latest
16+
update_cache=yes
17+
cache_valid_time=86400
18+
sudo: yes
19+
20+
- name: Install docutils for Python to build documentation.
21+
pip:
22+
name=docutils
23+
sudo: yes
24+
25+
- name: Define directory in which to place welcome file.
26+
set_fact:
27+
WELCOME_DIR: /etc/skel/Desktop
28+
29+
- name: Create welcome directory.
30+
file:
31+
name={{ WELCOME_DIR }}
32+
state=directory
33+
sudo: yes
34+
35+
- name: Convert documentation to HTML and place in welcome directory.
36+
shell: rst2html.py /vagrant/extra_resources/welcome.rst Welcome.html
37+
chdir={{ WELCOME_DIR }}
38+
creates={{ WELCOME_DIR }}/Welcome.html
39+
sudo: yes
40+
41+
roles:
42+
- oommf
43+
- oommf_examples
44+
- xserver
45+
- { role: add_super_user, AUTOLOGIN: true }
46+
- { role: set_hostname, HOSTNAME: virtualmicromagnetics-oommf }

0 commit comments

Comments
 (0)