-
Notifications
You must be signed in to change notification settings - Fork 14
Move quicktest_encodings from xapi into a unit test #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -2,20 +2,21 @@ language: c | |
sudo: false | ||
services: | ||
- docker | ||
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh | ||
install: | ||
- wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh | ||
- wget https://raw.githubusercontent.com/xapi-project/xapi-travis-scripts/master/coverage.sh | ||
script: bash -ex ./.travis-docker.sh | ||
env: | ||
global: | ||
- PINS="stdext:. xapi-stdext:. xapi-stdext-base64:. xapi-stdext-bigbuffer:. xapi-stdext-date:. xapi-stdext-deprecated:. xapi-stdext-encodings:. xapi-stdext-monadic:. xapi-stdext-pervasives:. xapi-stdext-range:. xapi-stdext-std:. xapi-stdext-threads:. xapi-stdext-unix:. xapi-stdext-zerocheck:." | ||
- DISTRO="centos-7" | ||
- TESTS=false | ||
- DISTRO="ubuntu-16.04" | ||
- TEST=false | ||
- BASE_REMOTE="https://github.com/xapi-project/xs-opam" | ||
matrix: | ||
- PACKAGE=xapi-stdext OCAML_VERSION=4.04.2 REVDEPS=true | ||
- PACKAGE=xapi-stdext OCAML_VERSION=4.04.2 REVDEPS=true \ | ||
POST_INSTALL_HOOK="opam install alcotest; env TRAVIS=$TRAVIS TRAVIS_JOB_ID=$TRAVIS_JOB_ID bash -ex coverage.sh" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we sure about discovering the coverage of this library... ;-) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It will be 99% because we only track stdext-encodings :D |
||
- PACKAGE=stdext OCAML_VERSION=4.04.2 REVDEPS=true | ||
- PACKAGE=xapi-stdext OCAML_VERSION=4.06.0 | ||
branches: | ||
only: master | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,6 +1,20 @@ | ||
(* -*- tuareg -*- *) | ||
#require "unix" | ||
|
||
let coverage_rewriter ~full = | ||
let is_coverage = try Unix.getenv "BISECT_ENABLE" = "YES" with Not_found -> false in | ||
match is_coverage, full with | ||
| true, true -> "(preprocess (pps (bisect_ppx -conditional)))" | ||
| true, _ -> "bisect_ppx -conditional" | ||
| _ -> "" | ||
|
||
let () = Printf.ksprintf Jbuild_plugin.V1.send {| | ||
(jbuild_version 1) | ||
|
||
(library | ||
((name xapi_stdext_encodings) | ||
(public_name xapi-stdext-encodings) | ||
)) | ||
((name xapi_stdext_encodings) | ||
(public_name xapi-stdext-encodings) | ||
%s | ||
) | ||
) | ||
|} (coverage_rewriter ~full:true) |
This file contains hidden or 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,11 @@ | ||
(executable | ||
((name suite) | ||
(libraries | ||
(alcotest | ||
xapi_stdext_encodings)) | ||
)) | ||
|
||
(alias | ||
((name runtest) | ||
(deps (suite.exe)) | ||
(action (run ${<})))) |
This file contains hidden or 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,5 @@ | ||
|
||
let () = | ||
Alcotest.run | ||
"suite" | ||
[ "Test_encodings", Test_encodings.tests ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really would like to keep centos-7... We should rethink our whole CI to use
xs-opam:latest
as a base...Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not work because it was impossible to isntall the real aspcud in the docker image, even POST_INSTALL_HOOK didn't work :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I understand. I am still wishful