Skip to content

Commit 805c37e

Browse files
committed
Release 0.10.4, with updated DSS C-API (no MATLAB changes).
This also adds packaging scripts, closes #1
1 parent fa727cf commit 805c37e

File tree

3 files changed

+91
-4
lines changed

3 files changed

+91
-4
lines changed

+DSS_MATLAB/version.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function result = version
2-
result = '0.10.0a1';
2+
result = '0.10.4';
33
end

.travis.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
language: generic
2+
3+
env:
4+
global:
5+
- DSS_CAPI_VERSION=0.10.4
6+
- DSS_MATLAB_VERSION=0.10.4
7+
8+
matrix:
9+
include:
10+
- name: "linux_x64"
11+
os: linux
12+
before_install:
13+
- sudo apt-get install patchelf
14+
script:
15+
- wget "https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_VERSION}/dss_capi_${DSS_CAPI_VERSION}_${TRAVIS_JOB_NAME}.tar.gz" -Odss_capi.tar.gz -q
16+
- tar zxf dss_capi.tar.gz
17+
- mkdir -p release/dss_matlab
18+
- cp -R "+DSS_MATLAB" "release/dss_matlab/+DSS_MATLAB"
19+
- mv dss_capi/lib/${TRAVIS_JOB_NAME}/libdss_capi_v7.so "release/dss_matlab/+DSS_MATLAB/dss_capi_v7.so"
20+
- mv dss_capi/lib/${TRAVIS_JOB_NAME}/libklusolve.so "release/dss_matlab/+DSS_MATLAB/"
21+
- mv dss_capi/KLUSOLVE_LICENSE "release/dss_matlab/"
22+
- mv dss_capi/OPENDSS_LICENSE "release/dss_matlab/"
23+
- mv dss_capi/LICENSE "release/dss_matlab/DSS_C-API_LICENSE"
24+
- mv LICENSE release/dss_matlab/
25+
- mv README.md release/dss_matlab/
26+
- mv examples release/dss_matlab/
27+
- cd "release/dss_matlab/+DSS_MATLAB"
28+
- patchelf --set-rpath '$ORIGIN/.' dss_capi_v7.so
29+
- cd ../..
30+
- tar zcf dss_matlab_v${DSS_MATLAB_VERSION}_${TRAVIS_JOB_NAME}.tar.gz dss_matlab
31+
- rm -rf dss_matlab
32+
- ls -l
33+
- cd ..
34+
35+
- name: "win_x64"
36+
os: linux
37+
script:
38+
- wget "https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_VERSION}/dss_capi_${DSS_CAPI_VERSION}_${TRAVIS_JOB_NAME}.zip" -Odss_capi.zip -q
39+
- unzip dss_capi.zip
40+
- rm -f dss_capi/lib/${TRAVIS_JOB_NAME}/*_v8.dll
41+
- mkdir -p release/dss_matlab
42+
- cp -R "+DSS_MATLAB" "release/dss_matlab/+DSS_MATLAB"
43+
- mv dss_capi/lib/${TRAVIS_JOB_NAME}/*.dll "release/dss_matlab/+DSS_MATLAB/"
44+
- mv dss_capi/KLUSOLVE_LICENSE "release/dss_matlab/"
45+
- mv dss_capi/OPENDSS_LICENSE "release/dss_matlab/"
46+
- mv dss_capi/LICENSE "release/dss_matlab/DSS_C-API_LICENSE"
47+
- mv LICENSE release/dss_matlab/
48+
- mv README.md release/dss_matlab/
49+
- mv examples release/dss_matlab/
50+
- cd release
51+
- zip -r dss_matlab_v${DSS_MATLAB_VERSION}_${TRAVIS_JOB_NAME}.zip dss_matlab
52+
- rm -rf dss_matlab
53+
- ls -l
54+
- cd ..
55+
56+
- name: "darwin_x64"
57+
os: osx
58+
script:
59+
- wget "https://github.com/dss-extensions/dss_capi/releases/download/${DSS_CAPI_VERSION}/dss_capi_${DSS_CAPI_VERSION}_${TRAVIS_JOB_NAME}.tar.gz" -Odss_capi.tar.gz -q
60+
- tar zxf dss_capi.tar.gz
61+
- mkdir -p release/dss_matlab
62+
- cp -R "+DSS_MATLAB" "release/dss_matlab/+DSS_MATLAB"
63+
- mv dss_capi/lib/${TRAVIS_JOB_NAME}/libdss_capi_v7.dylib "release/dss_matlab/+DSS_MATLAB/dss_capi_v7.dylib"
64+
- mv dss_capi/lib/${TRAVIS_JOB_NAME}/libklusolve.dylib "release/dss_matlab/+DSS_MATLAB/"
65+
- mv dss_capi/KLUSOLVE_LICENSE "release/dss_matlab/"
66+
- mv dss_capi/OPENDSS_LICENSE "release/dss_matlab/"
67+
- mv dss_capi/LICENSE "release/dss_matlab/DSS_C-API_LICENSE"
68+
- mv LICENSE release/dss_matlab/
69+
- mv README.md release/dss_matlab/
70+
- mv examples release/dss_matlab/
71+
- cd release
72+
- tar zcf dss_matlab_v${DSS_MATLAB_VERSION}_macos_x64.tar.gz dss_matlab
73+
- rm -rf dss_matlab
74+
- ls -l
75+
- cd ..
76+
77+
deploy:
78+
provider: releases
79+
api_key:
80+
secure: H/pX2HiiPlvyUjfuoldgC+mlD3+vB1yxYSBKURyIxr7h50KzAW/ASJjGZbQ8Q4VxQjs7ypXtx/hQjDepgH3xGvA+4XEIRWIc4E/QvKt3lDCIMQ1pmWEJSpKh8JgyAThemNxieTzp7HJb2jrRjLhRkl3EjQEbrYY1x+5j0O/x2hgiGwsDTsiImgA6gjRuN9+Hha1Oc4+HdJ0AtlZVCexnaaJSzIWirJ93y3d6xwtjF7yooDCAP69XmGSUkQjUMnCkDJii7KWD+RJ1XYngsXh73jhz3VA205JQykoi0pIgcQqRxvqYSXHF+ji1EDpfYHrU3Q9MWnyB99dGwgiNkVZ8F3VXAna6ihUE4Zpa25IaLrUeeW9KL317qOn8Y35eD1cUv/zujFA+NxrLCt2QBWfDURlSCpHpQLh/qzuBAQ9HB+kjMm9NFE1jdMa+WIgHtZyBnpTO3qdYK2qWtddYkop9fQOl/cMVKGkHdCc48R4gHRMfIU+93vMMXdaruigfhPuJliJIQB6Bi5lNWMaaNO5WdZ/LKHvZUScV+UMkZDEFsrCQ5bABtqfwNH9Om59RAJxbzvTmUYDqMGaHx3atNGcYAqZHZIA4Xy3DEt+/BVo7TqNtGU3RRaZDMA2Lw3eTnC+HNHdxnn8XAIMBW8MScn1VbYil07KC1czdfVv0VZpVtl0=
81+
file_glob: true
82+
file: release/*
83+
draft: true
84+
skip_cleanup: true
85+
on:
86+
repo: dss-extensions/dss_matlab
87+
tags: true

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Related projects:
1717
- [`OpenDSSDirect.py`](http://github.com/dss-extensions/OpenDSSDirect.py): More pythonic bindings and useful tools.
1818
- [`DSS Sharp`](http://github.com/dss-extensions/dss_sharp/): .NET assembly to use the native DLL, mimics the COM object as used in .NET.
1919

20-
Version 0.10.3, released on 2019-06-14, covers most of the COM functions and classes, besides some extensions from DSS C-API. If you find a missing function or unexpected behavior, please open an issue on GitHub to both help us track and hopefully fix it, and also inform other users.
20+
Version 0.10.4, released on 2019-11-23, covers most of the COM functions and classes, besides some extensions from DSS C-API. If you find a missing function or unexpected behavior, please open an issue on GitHub to both help us track and hopefully fix it, and also inform other users.
2121

2222
## Usage
2323

@@ -51,7 +51,7 @@ function [Start,Obj,Text] = DSSStartup
5151
Text = Obj.Text;
5252
```
5353

54-
On 2019-07-02, a simple example for the IEEE13 system was added in [13Bus.zip](https://github.com/dss-extensions/dss_matlab/raw/master/examples/13Bus.zip) if you want to try DSS_MATLAB with a sample circuit. The example files will be included in a future release to simplify the process.
54+
On 2019-07-02, a simple example for the IEEE13 system was added in [13Bus.zip](https://github.com/dss-extensions/dss_matlab/raw/master/examples/13Bus.zip) if you want to try DSS_MATLAB with a sample circuit. This file is now also included in the download package.
5555

5656
If you want more code to play with, you can use the MATLAB examples from the official OpenDSS distribution, from a local installation (e.g. `C:\OpenDSS\Examples\Matlab`) or from the [official SVN repository](https://sourceforge.net/p/electricdss/code/HEAD/tree/trunk/Distrib/Examples/Matlab/).
5757

@@ -67,7 +67,7 @@ https://github.com/dss-extensions/dss_capi/blob/master/docs/known_differences.md
6767

6868
Most of these apply indirectly to DSS_MATLAB.
6969

70-
The [list of important changes](https://github.com/dss-extensions/dss_capi/blob/master/docs/changelog.md#version-0103) through development is also useful.
70+
The [list of important changes](https://github.com/dss-extensions/dss_capi/blob/0.10.x/docs/changelog.md#version-0104) through development is also useful.
7171

7272
## Credits / Acknowlegement
7373

0 commit comments

Comments
 (0)