Skip to content

Commit

Permalink
Merge pull request #504 from ripleymj/realign-courses
Browse files Browse the repository at this point in the history
Realign courses
  • Loading branch information
laurelmay authored Aug 7, 2022
2 parents 3342a2a + 8ec06a6 commit 9766387
Show file tree
Hide file tree
Showing 29 changed files with 21 additions and 466 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,9 @@ jobs:
- name: Install dependencies
run: |
pip3 install pyyaml pygobject pylint click PyGithub jinja2 aiohttp
# We cannot just do roles/*/*/*py because we do not want to lint the
# finch scripts which we cannot change
- name: Run pylint
run: |
pylint roles/common/*/*.py scripts/*.py
pylint roles/*/*/*.py scripts/*.py
Shell:
name: Run Shell linting
runs-on: ubuntu-20.04
Expand Down
18 changes: 3 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,17 @@ using these tasks and the VM is available
* VM management script
* JMU wireless printing

### CS101
* Eclipse (with checkstyle plugin)
* Finch robot
### CS101 / CS149
* Mint packages (basic-prog-pkgs role)
* artha
* bless
* chromium-browser
* geany
* idle
* libreoffice
* logisim
* meld
* sqlitebrowser
* sqlite / sqlitebrowser
* thonny
* wireshark

### CS149
* Eclipse (with checkstyle plugin)
* jGRASP
* Visual Studio Code (with Java and checkstyle plugins)

### CS159
* Eclipse (with checkstyle plugin)
* Visual Studio Code (with Java and checkstyle plugins)

### CS261
* Mint packages (adv-prog-pkgs role)
Expand Down
8 changes: 3 additions & 5 deletions local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
- { role: user, tags: always }
- { role: wireless_printing, tags: always }
- { role: filezilla, tags: always }
- { role: basic_prog_pkgs, tags: ["cs101"] }
- { role: basic_prog_pkgs, tags: ["cs101", "cs149"] }
- { role: adv_prog_pkgs, tags: ["cs261", "cs361", "cs432"] }
- { role: eclipse, tags: ["cs101", "cs149", "cs159"] }
- { role: jgrasp, tags: ["cs149"] }
- { role: finch, tags: ["cs101"] }
- { role: eclipse, tags: ["cs159"] }
- { role: y86, tags: ["cs261", "cs432"] }
- { role: programming_langs, tags: ["cs430"] }
- { role: vscode, tags: ["cs149"] }
- { role: vscode, tags: ["cs159"] }
51 changes: 0 additions & 51 deletions roles/basic_prog_pkgs/files/.idlerc/config-keys.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions roles/basic_prog_pkgs/files/.idlerc/config-main.cfg

This file was deleted.

2 changes: 0 additions & 2 deletions roles/basic_prog_pkgs/files/mimeapps.list

This file was deleted.

29 changes: 6 additions & 23 deletions roles/basic_prog_pkgs/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,10 @@
name: '{{ basic_prog_pkgs_intro_development }}'
state: latest

- name: Copy idlerc prefs
ansible.builtin.copy:
src: .idlerc
dest: '{{ item.homedir }}'
owner: '{{ item.uid }}'
group: '{{ item.gid }}'
directory_mode: "0750"
mode: "0640"
loop: "{{ real_users }}"
- name: Copy mimeapps Idle pref
ansible.builtin.copy:
src: mimeapps.list
dest: '{{ item.homedir }}/.config/'
owner: '{{ item.uid }}'
group: '{{ item.gid }}'
mode: "0640"
force: no
loop: "{{ real_users }}"
- name: Set Idle pref in existing mimeapps
ansible.builtin.lineinfile:
path: '{{ item.homedir }}/.config/mimeapps.list'
regexp: '^text/x-python='
line: 'text/x-python=idle-python3.6.desktop;gedit.desktop;pluma.desktop'
- name: Install intro pip packages
ansible.builtin.pip:
name: '{{ basic_prog_pkgs_pip }}'
state: present
become: yes
become_user: "{{ item.user }}"
loop: "{{ real_users }}"
18 changes: 8 additions & 10 deletions roles/basic_prog_pkgs/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
---
# vars file for basic-prog-pkgs
basic_prog_pkgs_intro_development:
- artha
- bless
- chromium-browser
- fonts-crosextra-caladea
- fonts-crosextra-carlito
- geany
- idle
- flake8
- ipython3
- libreoffice
- libreoffice-templates
- libreoffice-style-tango
- logisim
- meld
- python-is-python3
- python3-flake8-docstrings
- sqlite
- sqlitebrowser
- thonny
- wireshark

basic_prog_pkgs_pip:
- darglint
38 changes: 0 additions & 38 deletions roles/finch/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions roles/finch/defaults/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion roles/finch/files/55-finch.rules

This file was deleted.

18 changes: 0 additions & 18 deletions roles/finch/files/dance2.py

This file was deleted.

36 changes: 0 additions & 36 deletions roles/finch/files/maze.py

This file was deleted.

2 changes: 0 additions & 2 deletions roles/finch/handlers/main.yml

This file was deleted.

20 changes: 0 additions & 20 deletions roles/finch/meta/main.yml

This file was deleted.

62 changes: 0 additions & 62 deletions roles/finch/tasks/main.yml

This file was deleted.

2 changes: 0 additions & 2 deletions roles/finch/tests/inventory

This file was deleted.

5 changes: 0 additions & 5 deletions roles/finch/tests/test.yml

This file was deleted.

10 changes: 0 additions & 10 deletions roles/finch/vars/main.yml

This file was deleted.

Loading

0 comments on commit 9766387

Please sign in to comment.