aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge branch 'rtcompat-refactor' into 'main'eta2022-01-271-2/+3
|\ | | | | | | | | | | | | Refactor the tor-rtcompat API. Closes #301 and #300 See merge request tpo/core/arti!263
| * CI: Fix async-std taskNick Mathewson2022-01-261-2/+3
| | | | | | | | | | | | | | | | | | Previously it didn't enable any TLS provider, since we made native-tls optional a few commits ago. Now it enables rustls, so that rustls also gets a quick check along with async-std. I've also switched this test to use "cargo clippy" in place of "cargo test" because it's a strict superset.
* | Merge branch 'coverage-tracking' into 'main'eta2022-01-271-0/+25
|\ \ | |/ |/| | | | | | | | | Add test coverage tracking with CI/CD Closes #250 See merge request tpo/core/arti!221
| * Install bs4 in coverage jobArturo Marquez2022-01-261-0/+2
| |
| * Use `maint/with_coverage.sh` in coverage jobArturo Marquez2022-01-261-5/+6
| |
| * Remove lcov from coverage jobArturo Marquez2022-01-071-3/+0
| |
| * Change output type to `cobertura`Arturo Marquez2022-01-071-8/+4
| |
| * Use python3.9 in coverage jobArturo Marquez2022-01-061-1/+1
| |
| * Add pip3 show to coverage jobArturo Marquez2022-01-061-0/+1
| |
| * Add pip3 to coverage jobArturo Marquez2022-01-061-1/+2
| |
| * Remove build in coverage jobArturo Marquez2022-01-061-1/+0
| |
| * Use stable image and download nightly in coverageArturo Marquez2022-01-061-1/+3
| | | | | | | | | | Following suggestion here: `https://gitlab.torproject.org/tpo/core/arti/-/issues/250#note_2764010`
| * Add cargo build to coverage jobArturo Marquez2022-01-061-0/+1
| |
| * Change targetArturo Marquez2022-01-061-3/+3
| |
| * Add `coverage` jobArturo Marquez2022-01-061-0/+25
| | | | | | | | | | | | Following instructions at: `https://www.collabora.com/news-and-blog/blog/2021/03/24/rust-integrating-llvm-source-base-code-coverage-with-gitlab/`
* | Move our "minimal versions" code to a script.Nick Mathewson2022-01-071-2/+1
|/ | | | | | | | | | Previously this code was in .gitlab-ci.yml, but for the purposes of testing my fix for #275, it turned out to be much better to have it in a script of its own. Also, we now need to update our "quote" second-order dependency, since otherwise our minimal first-order dependencies won't build correctly.
* don't deny 'println' in examples in CIDaniel Eades2021-12-091-2/+2
|
* update CI to test all targetsDaniel Eades2021-12-091-2/+2
|
* update rusqlite and revert minimal version changeTrinity Pointard2021-12-091-2/+1
|
* Temporarily change minimal-versions CI to use Rust 1.56Nick Mathewson2021-12-081-1/+2
| | | | | | Because of arti#257, compatibility with earlier versions of rust are broken: we hope this is temporary, but fixing it will probably require a new version of rusqlite.
* normalize --target to better reuse build artifactsTrinity Pointard2021-11-121-3/+3
| | | | | | | testing was done on a different target than building, so everything was compiled twice (actually, it's the same target, but rust doesn't realize that) makes build+test about 20% faster
* try to cache cargo-auditTrinity Pointard2021-11-121-1/+5
|
* In rust-nightly CI, forbid debugging prints.Nick Mathewson2021-11-041-1/+2
| | | | | | | | | | | | | | | | | | | | This patch makes the rust-nightly CI task fail if it detects any dbg!(), println!(), or eprintln!() calls in production code. Because of clippy limitations, it may also gripe about calls to these macros in our tests. The preferred workarounds are to either instead. Both are acceptable. We're doing this check in CI rather than unconditionally with clippy directives, since we often want to have these calls in our code temporarily while we're developing. Some day we might want this test to go into a pre-push hook. This patch also adds #![allow()] directives for println!() and eprintln!() in the arti crate. Since that one isn't a library, it's okay for it to speak to stdout/stderr. Closes #218.
* minimal-versions: switch to 1.53.Nick Mathewson2021-10-311-1/+1
|
* add ci check for deps minimal versions and msrvTrinity Pointard2021-10-311-0/+12
|
* move integration tests to scriptsTrinity Pointard2021-10-281-8/+2
|
* Improve and future-proof the `arti` CLIeta2021-10-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | This switches out `arti`'s argument-parsing library with `clap`, which is a lot more featureful (and very widely used within the Rust ecosystem). We also now use a lot of `clap`'s features to improve the CLI experience: - The CLI now expects a subcommand (currently, either "help", or "proxy" for the existing SOCKS proxy behaviour). This should let us add additional non-SOCKS-proxy features to arti in future. - `clap` supports default values determined at runtime, so the way the default config file is loaded was changed: now, we determine the OS-specific path for said file before invoking `clap`, so the help command can show it properly. - The behaviour of `tor_config` was also changed; now, one simply specifies a list of configuration files to load, together with whether they're required. - That function also way overused generics; this has been fixed. - Instead of using the ARTI_LOG environment variable to configure logging, one now uses the `-l, --log-level` CLI option. (The intent is for this option to be more discoverable by users.) - The `proxy` subcommand allows the user to override the SOCKS port used on the CLI without editing the config file.
* Rename tor_client/arti_tor_client to arti_client.Nick Mathewson2021-10-211-1/+1
| | | | | | Solves a name conflict with the existing tor_client create. Closes #130.
* Move "cargo audit" invocation into a script.Nick Mathewson2021-10-171-1/+1
|
* update ctrlc and derTrinity Pointard2021-10-061-1/+1
| | | | ctrlc had rustsec issues, der was yanked
* In CI, *temporarily* ignore RUSTSEC-2021-0119 in nix crate.Nick Mathewson2021-10-011-1/+1
| | | | | | The affected API (getgrouplist) isn't one that we use, directly or transitively. We can't just upgrade immediately, since the ctrlc crate is currently stuck on the older version of nix.
* add basic integration testTrinity Pointard2021-09-271-0/+24
|
* try use cache and make MacOS bin available as artifactTrinity Pointard2021-09-201-0/+4
|
* add reproducible builds for MacOSTrinity Pointard2021-09-201-1/+1
|
* Move version-controlled Cargo.lock to /.Nick Mathewson2021-09-201-3/+0
| | | | | | | Previously I'd hoped to have it only apply to reproducible builds, but the work of keeping it up-to-date and checking it for drift seems to have been tripping us up. Let's try doing it the other way for now, and we'll see how that goes.
* CI: make fail when new deps not in misc/Cargo.lockTrinity Pointard2021-09-121-0/+3
| | | | | | | | Currently adding new deps can cause builds to not be reproducibles because that new dependancies don't have their versions frozen in misc/Cargo.lock. This make so CI reject commits in that situation, with a message telling what to do to fix the issue.
* run CI only on amd64 runnersTrinity Pointard2021-09-081-0/+7
|
* run clippy on test modulesDaniel Eades2021-09-081-1/+1
|
* use a TPA runner so shm is big enoughTrinity Pointard2021-08-311-0/+2
|
* build repro only on scheduleTrinity Pointard2021-08-291-0/+3
| | | | | build takes about 23 minutes, it's quiet long for something that is usefull mostly on releases
* make reproducible Windows buildTrinity Pointard2021-08-291-1/+2
| | | | | Linux hash : c024778da162cda77869c46d162729d012a7758bee973bc83fa78c964d080903 Windows hash : e97e171740b889b7e3722b79c3763177174baac7fa34a5c3615c999298e1bc48
* Fix for CI script.Nick Mathewson2021-08-271-1/+1
| | | | | It looks like there was a directory here I didn't update when I moved all the crates into crates/
* fix segfault on static binTrinity Pointard2021-08-251-1/+0
| | | | | | see https://github.com/rusqlite/rusqlite/issues/914 sha256: 684ebc4b8c270fc63beba185f6c54ceeb98734f13aa7aeca9b64acb33432a21c
* make arti availlable as build artifactTrinity Pointard2021-08-251-0/+10
| | | | | and make builds reproducible sha256sum: f141c54929a43a31b9ed6b529f6f863aace87f7406818b2f8ffe2b7a5e2803fb
* Use cargo audit with "-D warnings".Nick Mathewson2021-07-211-1/+1
|
* attempt to add cargo audit to CITrinity Pointard2021-07-201-0/+2
|
* Try some tweaks to .gitlab-ci.ymlNick Mathewson2021-05-251-7/+8
| | | | | | | | | | The "--all" flag is deprecated in favor of "--workspace", which isn't actually needed here. "--all-features" catches a few things that we want to make sure we're catching. Let's try out cargo doc and make sure that passes too.
* CI target to build with async-std. Running tests is harder, alasNick Mathewson2021-03-021-0/+6
|
* My rustfmt is up-to-date with the gitlab ci one againNick Mathewson2021-03-011-5/+1
|
* Disable our cargo fmt test on CI for now.Nick Mathewson2021-02-261-1/+5
|