Skip to content

Commit f431687

Browse files
committed
Initial commit
0 parents  commit f431687

File tree

279 files changed

+1541
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+1541
-0
lines changed

.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
*.fig binary
2+
*.mat binary
3+
*.mdl binary diff merge=mlAutoMerge
4+
*.mdlp binary
5+
*.mex* binary
6+
*.mlapp binary
7+
*.mldatx binary
8+
*.mlproj binary
9+
*.mlx binary
10+
*.p binary
11+
*.sfx binary
12+
*.sldd binary
13+
*.slreqx binary merge=mlAutoMerge
14+
*.slmx binary merge=mlAutoMerge
15+
*.sltx binary
16+
*.slxc binary
17+
*.slx binary merge=mlAutoMerge
18+
*.slxp binary
19+
20+
## Other common binary file types
21+
*.docx binary
22+
*.exe binary
23+
*.jpg binary
24+
*.pdf binary
25+
*.png binary
26+
*.xlsx binary

.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# List of untracked files to ignore
2+
3+
# Autosave files
4+
*.asv
5+
*.m~
6+
*.autosave
7+
*.slx.r*
8+
*.mdl.r*
9+
10+
# MATLAB Drive
11+
*.MATLABDriveTag
12+
13+
# Compiled files
14+
*.mex*
15+
*.p
16+
17+
# Compressed files
18+
*.zip
19+
20+
# Packaged app and toolbox files
21+
*.mlappinstall
22+
*.mltbx
23+
24+
# Deployable archives
25+
*.ctf
26+
27+
# Generated helpsearch folders
28+
helpsearch*/
29+
30+
# Defined Simulink cache folder
31+
Utilities/SimulinkCache/*
32+
33+
# Standard code generation folders
34+
slprj/
35+
sccprj/
36+
codegen/
37+
38+
# Code generation file
39+
*.eep
40+
*.elf
41+
*.hex
42+
*.bin
43+
44+
# Cache files
45+
*.slxc
46+
47+
# Project settings
48+
Utilities/ProjectSettings.mat

.gitlab-ci.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
stages:
2+
# Set up two testing paths
3+
- setup
4+
- test
5+
- release
6+
- cleanup
7+
8+
setup-job:
9+
tags:
10+
- matlab
11+
stage: setup
12+
script:
13+
- cd ..
14+
- if (test-path utilities) { rm -r -force utilities }
15+
- git clone [email protected]:modular-curriculum-content/utilities.git
16+
- cd $CI_PROJECT_NAME
17+
allow_failure: false
18+
19+
#cleanup-job:
20+
# tags:
21+
# - matlab
22+
# stage: cleanup
23+
# script:
24+
# - cd ..
25+
# - rm -r -force utilities
26+
# - cd $CI_PROJECT_NAME
27+
# allow_failure: false
28+
29+
30+
smoke-test:
31+
# Smoke tests should run all the time
32+
tags:
33+
# Add additional tags like (e.g. - arduino) as required
34+
# Make sure that the runner you plan to use matches the tags
35+
- matlab
36+
stage: test
37+
script:
38+
- matlab -batch "openProject(pwd);
39+
results = runtests(fullfile('SoftwareTests','SmokeTests.m'));
40+
disp(table(results)); assertSuccess(results);"
41+
when: always
42+
allow_failure: true
43+
44+
smoke-test-solution:
45+
tags:
46+
- matlab
47+
stage: release
48+
script:
49+
- matlab -batch "proj = openProject(pwd);
50+
addpath(genpath(proj.RootFolder));
51+
results = runtests(fullfile('InternalFiles','Tests','CI','SolnSmokeTests.m'));
52+
disp(table(results)); assertSuccess(results);"
53+
rules:
54+
# This test should always run when merging to main
55+
# And be available for manual running on any push
56+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
57+
when: always
58+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
59+
when: manual
60+
allow_failure: true
61+
62+
file-test:
63+
tags:
64+
- matlab
65+
stage: release
66+
script:
67+
- matlab -batch "proj = openProject(pwd);
68+
addpath(proj.RootFolder+'/InternalFiles/Tests/CI');
69+
results = runtests('OpenCloseFileTest.m');
70+
disp(table(results)); assertSuccess(results);"
71+
rules:
72+
# This test should always run when merging to main
73+
# And be available for manual running on any push
74+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
75+
when: always
76+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
77+
when: manual
78+
allow_failure: true
79+
80+
release-testing:
81+
tags:
82+
- matlab
83+
stage: release
84+
script:
85+
- matlab -batch "proj = openProject(pwd);
86+
cd ..;
87+
addpath(genpath(fullfile('utilities','TestingResources')));
88+
runCMTests"
89+
rules:
90+
# This test should always run when merging to main
91+
# And be available for manual running on any push
92+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH
93+
when: always
94+
- if: $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
95+
when: manual
96+
allow_failure: true

AppliedLinAlg.prj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<MATLABProject xmlns="http://www.mathworks.com/MATLABProjectFile" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0"/>

Data/CartwheelGalaxy.png

1.88 MB

Data/ExerciseHidden.jpg

1.98 MB

Data/ExerciseHidden.png

1.88 MB

Data/Mouse.mat

2.56 KB
Binary file not shown.

Data/Photographs/myImg0.png

223 KB

Data/SqNum0.jpg

21.6 KB

0 commit comments

Comments
 (0)