Skip to content

Commit d930c3e

Browse files
authored
Merge pull request #461 from e0404/rc/v2.10.1
1st Patch Release for Blaise - v2.10.1
2 parents e3126c5 + 1d2bc93 commit d930c3e

File tree

183 files changed

+2407
-1481
lines changed

Some content is hidden

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

183 files changed

+2407
-1481
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
### Bug description
2+
Describe the new feature you want to contribute and reference respective issues if this specific enhancement was asked for.
3+
4+
### Approach
5+
Describe how you implemented the feature:
6+
- How does my feature change matRad code?
7+
- Are there any new parameters associated with the feature that need to be documented? (maybe think about providing defaults in MatRad_Config)
8+
- Are there external dependencies (toolboxes, mex files, etc.)?
9+
10+
### Open Questions and/or Concerns
11+
Use a github checklists to adress any concerns like. e.g.
12+
- [ ] I wasn't sure about this or that variable and if I did the correct thing with it
13+
- [ ] I am not sure if this is compatible with the latest Matlab version
14+
- [ ] etc.
15+
This self-defined checklist then has to be checked before merge by reviewers and yourself.
16+
17+
### References
18+
Any helpful external information (e.g. links to stackoverflow question, blogposts, external software websites, etc.)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
### Release Version
2+
Version of new Release and Type (new major release, minor release, patch release)
3+
4+
### Release Checklist
5+
6+
- [ ] Version number changed in matRad_getVersion
7+
- [ ] Adapted Changelog.txt
8+
- [ ] All required mex files compiled
9+
- [ ] Third Party libraries / scripts up to date
10+
- [ ] Standalone(s) generated and tested
11+
- [ ] Wiki adapted
12+
- [ ] Optional changes to README.md
13+
- [ ] Check license information
14+
15+
### References
16+
Any references regarding new functionality etc.
17+

.travis.yml

Lines changed: 72 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,102 @@
1-
language: cpp
2-
group: travis_latest
3-
4-
matrix:
1+
jobs:
52
include:
63
# works on Precise and Trusty
7-
- os: linux
4+
- name: "Ubuntu Octave"
5+
os: linux
6+
language: cpp
7+
dist: focal # 20.04 -> Octave 5.2
8+
services:
9+
- xvfb
810
addons:
911
apt:
10-
sources:
11-
- ubuntu-toolchain-r-test
12+
update: true
1213
packages:
13-
- g++-7
14-
env:
15-
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
16-
- os: osx
17-
- os: windows
14+
- gdb
15+
- gfortran
16+
- fonts-freefont-otf
17+
- gnuplot-x11
18+
- libgdcm-dev
19+
- octave
20+
- liboctave-dev
21+
- name: "Ubuntu Matlab"
22+
os: linux
23+
language: matlab
24+
dist: focal
25+
- name: "OSX Octave"
26+
os: osx
27+
language: cpp
28+
addons:
29+
homebrew:
30+
update: true
31+
packages:
32+
- llvm
33+
- libomp
34+
- gdcm
35+
- octave
36+
cache:
37+
directories:
38+
- $HOME/Library/Caches/Homebrew
39+
- name: "Windows Octave"
40+
os: windows
41+
language: cpp
42+
cache:
43+
directories:
44+
- $HOME/AppData/Local/Temp/chocolatey
45+
- /C/ProgramData/chocolatey/
1846
allow_failures:
1947
- os: windows
2048
- os: osx
2149

2250
before_install:
2351
# Linux setup
24-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "Testing matRad on linux..." ; fi
25-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then eval "${MATRIX_EVAL}" ; fi
26-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo chmod +x before_install_linux.sh ; fi
27-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo ./before_install_linux.sh; fi
52+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then echo "Testing matRad on linux with Octave..." ; fi
53+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then sudo chmod +x .travis/before_install_linux.sh ; fi
54+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then sudo .travis/before_install_linux.sh; fi
55+
56+
# Linux Matlab Setup
57+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then echo "Testing matRad on linux with Matlab..." ; fi
58+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then sudo chmod +x .travis/runtests.sh ; fi
59+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then sudo chmod +x MCsquare/bin/MCsquare_linux ; fi
2860

2961
# OSX setup
30-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then echo "Testing matRad on Mac OSX..." ; fi
31-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install octave > /dev/null ; fi
32-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install llvm > /dev/null ; fi
33-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libomp > /dev/null ; fi
34-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo chmod +x before_install_osx.sh ; fi
35-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sudo ./before_install_osx.sh; fi
62+
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then echo "Testing matRad on Mac OSX..." ; fi
63+
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then sudo chmod +x .travis/before_install_osx.sh ; fi
64+
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then sudo .travis/before_install_osx.sh; fi
3665

3766
# Windows Setup
38-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then echo "Testing matRad on Windows..." ; fi
39-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install octave.portable ; fi
40-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' ; fi
41-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then bash ./before_install_win_gitbash.sh ; fi
67+
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then echo "Testing matRad on Windows..." ; fi
68+
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then choco install octave.portable ; fi
69+
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then bash .travis/before_install_win_gitbash.sh ; fi
4270

4371

4472
before_script:
45-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ulimit -c unlimited -S ; fi
73+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then ulimit -c unlimited -S ; fi
4674

4775

4876
after_failure:
4977
## Linux stack trace
5078
# find core file
51-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) ; fi
79+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1) ; fi
5280
# print stack trace
53-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch /usr/bin/octave-cli ; fi
54-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tail runtests.log ; fi
81+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then gdb -c "$COREFILE" -ex "thread apply all bt" -ex "set pagination 0" -batch /usr/bin/octave-cli ; fi
82+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then tail runtests.log ; fi
5583

5684
script:
57-
# Linux script
58-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
85+
# Linux Octave script
86+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Octave" ]]; then travis_wait 45 .travis/runtests.sh octave-cli ; fi
87+
# Linux Matlab script
88+
- if [[ "$TRAVIS_JOB_NAME" == "Ubuntu Matlab" ]]; then travis_wait 45 .travis/runtests.sh matlab; fi
5989
# OSX script
60-
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
90+
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then travis_wait 45 .travis/runtests.sh octave-cli ; fi
6191
# Windows script
62-
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then travis_wait 45 ./runtests.sh octave-cli ; fi
92+
- if [[ "$TRAVIS_JOB_NAME" == "Windows Octave" ]]; then travis_wait 45 "cmd.exe //C RefreshEnv.cmd & .travis/runtests.sh octave-cli" ; fi
93+
94+
before_cache:
95+
- if [[ "$TRAVIS_JOB_NAME" == "OSX Octave" ]]; then brew cleanup; fi
6396

6497
notifications:
65-
slack: e0404:u5tBXbO6D1mEwzJuFZV0MmqJ
98+
slack:
99+
if: repo = e0404/matRad
100+
rooms:
101+
- e0404:u5tBXbO6D1mEwzJuFZV0MmqJ
102+

.travis/before_install_linux.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
sudo chmod +x .travis/runtests.sh
4+
sudo chmod +x MCsquare/bin/MCsquare_linux
5+
6+
mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak
7+
8+
octave --no-gui --eval "pkg install -forge dicom"
9+
octave --no-gui --eval "pkg install -forge nan"
File renamed without changes.

.travis/before_install_osx.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
sudo chmod +x .travis/runtests.sh
4+
sudo chmod +x MCsquare/bin/MCsquare_mac
5+
6+
mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak
7+
8+
octave --no-gui --eval "pkg install -forge dicom"
9+
octave --no-gui --eval "pkg install -forge nan"
File renamed without changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
sudo chmod +x .travis/runtests.sh
4+
#sudo chmod +x MCsquare/MCsquare_windows.exe
5+
6+
#mv optimization/optimizer/ipopt.m optimization/optimizer/ipopt.m.bak
7+
8+
#octave --no-gui --eval "pkg install -forge dicom"
9+
#octave --no-gui --eval "pkg install -forge nan"
10+
11+
cmd.exe //C RefreshEnv.cmd
File renamed without changes.

runtests.sh renamed to .travis/runtests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fi
1818
if [ -z "$Switches" ] ; then
1919
case "$Runner" in
2020
*matlab* )
21-
Switches="-nodesktop -r"
21+
Switches="-batch"
2222
;;
2323

2424
*octave* )

0 commit comments

Comments
 (0)