Skip to content

Commit

Permalink
Add support for Appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed Nov 5, 2019
1 parent 9065926 commit 3c799ff
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
environment:
matrix:
- julia_version: 1.0
- julia_version: 1.1
- julia_version: 1.2
- julia_version: nightly

platform:
- x86 # 32-bit
- x64 # 64-bit

# Uncomment the following lines to allow failures on nightly julia
# (tests will run but not make your overall status red)
matrix:
allow_failures:
- julia_version: nightly

branches:
only:
- master
- /release-.*/

notifications:
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false

install:
- ps: iex ((new-object net.webclient).DownloadString("https://raw.githubusercontent.com/JuliaCI/Appveyor.jl/version-1/bin/install.ps1"))

build_script:
- echo "%JL_BUILD_SCRIPT%"
- C:\julia\bin\julia -e "%JL_BUILD_SCRIPT%"

test_script:
- echo "%JL_TEST_SCRIPT%"
- C:\julia\bin\julia -e "%JL_TEST_SCRIPT%"

# # Uncomment to support code coverage upload. Should only be enabled for packages
# # which would have coverage gaps without running on Windows
# on_success:
# - echo "%JL_CODECOV_SCRIPT%"
# - C:\julia\bin\julia -e "%JL_CODECOV_SCRIPT%"
3 changes: 1 addition & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@


- By default, installation with precompiled libraries.
- Compatible with OptimPack 3.1 whose functionalities have been split in 3
libraries. are suite
libraries.

# Version 1.0.0

Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

| **Documentation** | **License** | **Build Status** | **Code Coverage** |
|:--------------------------------|:--------------------------------|:----------------------------------------------------------------|:--------------------------------------------------------------------|
| [![][doc-dev-img]][doc-dev-url] | [![][license-img]][license-url] | [![][travis-img]][travis-url] | [![][coveralls-img]][coveralls-url] [![][codecov-img]][codecov-url] |
| [![][doc-dev-img]][doc-dev-url] | [![][license-img]][license-url] | [![][travis-img]][travis-url] [![][appveyor-img]][appveyor-url] | [![][coveralls-img]][coveralls-url] [![][codecov-img]][codecov-url] |


OptimPack.jl is the Julia interface to [OptimPack][lib-optimpack-url], a C
Expand All @@ -16,7 +16,6 @@ library for solving large scale optimization problems.
From a Julia session, press `]` to enter the Pkg REPL and type the following commands:
```julia
(...) pkg> add https://github.com/emmt/OptimPack.jl
(...) pkg> build OptimPack
```
to install and build the package. This just has to be done once.

Expand All @@ -32,10 +31,10 @@ libraries for your architecture so that you have nothing to compile. If your
system is not part of the supported architectures or if you want to use
OptimPack libraries compiled and installed by yourself (see intructions at
[official OptimPack repository][lib-optimpack-url]) then you have to define 4
environment variables **before** calling `build OptimPack`. Each of these
environment variables **before** building `OptimPack.jl` package. Each of these
environment variables specifies the full path to one of the OptimPack dynamic
libraries. These environment variables can be set before starting Julia or at
Julia REPL by:
Julia REPL, for instance by:

```julia
ENV["OPTIMPACK_OPK_LIB"] = "/usr/local/lib/libopk.so"
Expand All @@ -49,6 +48,12 @@ REPL and type the following commands:

```julia
(...) pkg> add https://github.com/emmt/OptimPack.jl
```

If you define the environment variables after adding `OptimPack.jl` package,
just re-build the package:

```julia
(...) pkg> build OptimPack
```

Expand Down

0 comments on commit 3c799ff

Please sign in to comment.