Skip to content

Commit c00175e

Browse files
committed
Julia v1.2 Compat
1 parent 71c5c39 commit c00175e

File tree

5 files changed

+27
-9
lines changed

5 files changed

+27
-9
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ os:
33
- linux
44
- osx
55
julia:
6-
- 0.7
7-
- 1.0
6+
- 1.2
87
- nightly
98
notifications:
109
email: false

Project.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "SimJulia"
2+
uuid = "428bdadb-6287-5aa5-874b-9969638295fd"
3+
keywords = ["discrete-even simulation"]
4+
license = "MIT"
5+
desc = "A discrete event process oriented simulation framework."
6+
version = "0.8"
7+
8+
[deps]
9+
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
10+
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
11+
ResumableFunctions = "c5292f4c-5179-55e1-98c5-05642aab7184"
12+
13+
[compat]
14+
julia = ">=1.2"
15+
ResumableFunctions = ">=0.5.1"
16+
17+
[extras]
18+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
19+
20+
[targets]
21+
test = ["Test"]

REQUIRE

Lines changed: 0 additions & 3 deletions
This file was deleted.

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
environment:
22
matrix:
3-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/0.7/julia-0.7-latest-win64.exe"
4-
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/1.0/julia-1.0-latest-win64.exe"
3+
- JULIA_URL: "https://julialang-s3.julialang.org/bin/winnt/x64/1.2/julia-1.2-latest-win64.exe"
54
- JULIA_URL: "https://julialangnightlies-s3.julialang.org/bin/winnt/x64/julia-latest-win64.exe"
65

76
matrix:

test/resources/containers.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ run(sim)
3131
val = @yield get_ev | timeout(sim, rand())
3232
if val[get_ev].state == SimJulia.processed
3333
println("$(now(sim)), consumer is being served, level is ", con.level)
34-
@yield timeout(sim, 5.0*rand())
34+
delay = 5.0*rand()
35+
@yield timeout(sim, delay)
3536
else
3637
println("$(now(sim)), consumer has timed out")
3738
cancel(con, get_ev)
@@ -47,7 +48,8 @@ end
4748
@yield put(con, amount)
4849
level = con.level
4950
println("$(now(sim)), producer is being served, level is ", level)
50-
@yield timeout(sim, 5.0*rand())
51+
delay = 5.0*rand()
52+
@yield timeout(sim, delay)
5153
end
5254
end
5355

0 commit comments

Comments
 (0)