-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify api -- auto or manual geomag indices make CI cover more by default add azure add octave CI fix indices for test
- Loading branch information
Showing
20 changed files
with
260 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
jobs: | ||
|
||
- job: Ubuntu | ||
pool: | ||
vmImage: ubuntu-latest | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
- script: sudo apt install -yq --no-install-recommends gfortran | ||
displayName: 'Install Prereqs' | ||
- script: pip install -e .[tests] | ||
displayName: 'Build Python' | ||
- script: pytest -r a -v | ||
displayName: 'PyTest' | ||
|
||
- job: MacOS | ||
pool: | ||
vmImage: macOS-10.14 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
- script: brew install gcc | ||
displayName: 'Install Prereqs' | ||
- script: pip install -e .[tests] | ||
displayName: 'Build Python' | ||
- script: pytest -r a -v | ||
displayName: 'PyTest' | ||
|
||
- job: MacOS | ||
pool: | ||
vmImage: macOS-10.14 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
- script: brew install gcc octave | ||
displayName: 'Install Prereqs' | ||
- script: pip install -e .[tests] | ||
displayName: 'Build Python' | ||
- script: pytest -r a -v | ||
displayName: 'PyTest' | ||
|
||
- job: WindowsMinGW | ||
pool: | ||
vmImage: windows-2019 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '3.6' | ||
addToPath: true | ||
- script: cinst -y mingw | ||
displayName: 'Install Prereqs' | ||
- script: pip install -e .[tests] | ||
displayName: 'Build Python' | ||
- script: pytest -r a -v | ||
displayName: 'PyTest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
function build(build_sys, srcdir, builddir) | ||
% build with 'meson' or 'cmake' | ||
|
||
validateattributes(build_sys, {'char'}, {'vector'}) | ||
|
||
if nargin < 3 | ||
cwd = fileparts(mfilename('fullpath')); | ||
srcdir = [cwd, filesep,'..', filesep, 'src']; | ||
builddir = [cwd, filesep,'..',filesep,'build']; | ||
end | ||
|
||
assert(exist(srcdir,'dir')==7, ['source directory ',srcdir,' does not exist']) | ||
assert(exist(builddir,'dir')==7, ['build directory ',builddir,' does not exist']) | ||
|
||
switch build_sys | ||
case 'meson', build_meson(srcdir, builddir) | ||
case 'cmake', build_cmake(srcdir, builddir) | ||
otherwise error('Specifiy "meson" or "cmake" to build this project.') | ||
end | ||
|
||
end | ||
|
||
|
||
function build_cmake(srcdir, builddir) | ||
%% build using CMake | ||
|
||
validateattributes(srcdir,{'char'},{'vector'}) | ||
validateattributes(builddir,{'char'},{'vector'}) | ||
|
||
runcmd('cmake --version') | ||
|
||
if ispc | ||
wopts = '-G "MinGW Makefiles" -DCMAKE_SH="CMAKE_SH-NOTFOUND"'; | ||
else | ||
wopts = ''; | ||
end | ||
|
||
ccmd = ['cmake ', wopts, ' -S ', srcdir, ' -B ', builddir]; | ||
|
||
runcmd(ccmd) | ||
|
||
runcmd(['cmake --build ',builddir, ' --parallel']) | ||
|
||
end | ||
|
||
|
||
function build_meson(srcdir, builddir) | ||
%% build using Meson + Ninja | ||
|
||
validateattributes(srcdir,{'char'},{'vector'}) | ||
validateattributes(builddir,{'char'},{'vector'}) | ||
|
||
disp('Meson: ') | ||
runcmd('meson --version') | ||
|
||
disp('Ninja: ') | ||
runcmd('ninja --version') | ||
|
||
if ~exist([builddir,filesep,'build.ninja'], 'file') | ||
runcmd(['meson setup ',builddir,' ',srcdir]) | ||
end | ||
|
||
runcmd(['ninja -C ',builddir]) | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ function runcmd(cmd) | |
[status, ret] = system(cmd); | ||
if status~=0, error(ret), end | ||
disp(ret) | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.