Compare commits

..

8 commits

Author SHA1 Message Date
892378f55f Merge branch 'gitlab-ci' into 'master'
added initial .gitlab-ci.yml file

See merge request fsimphy/bayernfahrplan!9
2017-10-28 15:55:08 +02:00
6ad2048907 added initial .gitlab-ci.yml file 2017-10-28 15:46:44 +02:00
e85289fe53 Merge branch 'update_dependencies_and_gitignore' into 'master'
updated dependencies and .gitignore file

See merge request fsimphy/bayernfahrplan!8
2017-10-28 15:41:52 +02:00
18de7f6998 updated dependencies and .gitignore file 2017-10-28 15:39:03 +02:00
8905e7084f Merge branch 'update-requests-dependency-and-license' into 'master'
updated requests dependency and license



See merge request !7
2017-08-04 00:19:58 +02:00
4f40ff7712 updated requests dependency and license 2017-08-04 00:19:22 +02:00
7ce5a3b095 Merge branch 'fix-delay-unittests' into 'master'
fixed delay unittests



See merge request !6
2017-08-04 00:18:08 +02:00
7cf2592ff2 fixed delay unittests 2017-08-04 00:16:43 +02:00
4 changed files with 29 additions and 7 deletions

5
.gitignore vendored
View file

@ -1 +1,4 @@
/bayernfahrplan bayernfahrplan*
.dub/*
replacement.txt
dub.selections.json

19
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,19 @@
image: base/devel
before_script:
- pacman -Sy
- pacman --noconfirm -S ldc dub libevent
stages:
- build
- test
build:
stage: build
script:
- dub build --compiler=ldc2
test:
stage: test
script:
- dub test --compiler=ldc2

View file

@ -5,10 +5,10 @@
"Oliver Rümpelein" "Oliver Rümpelein"
], ],
"dependencies": { "dependencies": {
"requests": "~>0.4.1", "requests": "0.5.3",
"kxml": "~>1.0.1" "kxml": "~>1.0.1"
}, },
"description": "A minimal D application.", "description": "A minimal D application.",
"copyright": "Copyright © 2016, Johannes Loher", "copyright": "Copyright © 2017, Johannes Loher",
"license": "proprietary" "license": "MIT"
} }

View file

@ -189,13 +189,13 @@ body
assertThrown!(UnexpectedValueException!string)(xml.delay); assertThrown!(UnexpectedValueException!string)(xml.delay);
xml = "<dp><realtime>1</realtime></dp>".readDocument.parseXPath("/dp").front; xml = "<dp><realtime>1</realtime></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay); assert(xml.delay == dur!"seconds"(0));
xml = "<dp><realtime>1</realtime><st><t></t></st></dp>".readDocument.parseXPath("/dp").front; xml = "<dp><realtime>1</realtime><st><t></t></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!DateTimeException(xml.delay); assertThrown!DateTimeException(xml.delay);
xml = "<dp><realtime>1</realtime><st><rt></rt></st></dp>".readDocument.parseXPath("/dp").front; xml = "<dp><realtime>1</realtime><st><rt></rt></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay); assert(xml.delay == dur!"seconds"(0));
xml = "<dp><st><rt></rt><t></t></st></dp>".readDocument.parseXPath("/dp").front; xml = "<dp><st><rt></rt><t></t></st></dp>".readDocument.parseXPath("/dp").front;
assertThrown!AssertError(xml.delay); assertThrown!AssertError(xml.delay);