committed by
					
						 Carl Lerche
						Carl Lerche
					
				
			
			
				
	
			
			
			
						parent
						
							f84a1bdd1f
						
					
				
				
					commit
					e4b8dde1d3
				
			
							
								
								
									
										58
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										58
									
								
								.travis.yml
									
									
									
									
									
								
							| @@ -1,43 +1,55 @@ | |||||||
| --- | --- | ||||||
| language: rust | language: rust | ||||||
|  | dist: trusty | ||||||
| sudo: false | sudo: false | ||||||
|  |  | ||||||
| cache: cargo | cache: | ||||||
|  |   cargo: true | ||||||
|  |   apt: true | ||||||
|  |  | ||||||
| addons: | addons: | ||||||
|   apt: |   apt: | ||||||
|     packages: |     packages: | ||||||
|     - libcurl4-openssl-dev |     - libssl-dev | ||||||
|     - libelf-dev |  | ||||||
|     - libdw-dev |  | ||||||
|  |  | ||||||
| matrix: | rust: | ||||||
|   include: | - nightly | ||||||
|     - rust: stable | - beta | ||||||
|     - rust: beta | - stable | ||||||
|     - rust: nightly |  | ||||||
|       install: |  | ||||||
|         - pip install --user travis-cargo codecov && export PATH=$HOME/.local/bin:$PATH |  | ||||||
|         - if ! cargo fmt --help >/dev/null 2>&1 ; then cargo install rustfmt-nightly ; fi |  | ||||||
|       after_script: |  | ||||||
|         # Check formatting |  | ||||||
|         - cargo fmt -- --write-mode=diff |  | ||||||
|       after_success: |  | ||||||
|         - travis-cargo doc-upload |  | ||||||
|  |  | ||||||
| script: | script: | ||||||
|   # Run tests |   # Run tests | ||||||
|   - cargo test |   - cargo test | ||||||
|   # Test examples in readme |   # Test examples in readme | ||||||
|   - rustdoc --test README.md -L target/debug/deps |   - rustdoc --test README.md -L target/debug/deps | ||||||
|   # Generate docs |  | ||||||
|   - cargo doc --no-deps |  | ||||||
|  |  | ||||||
| after_success: | after_success: | ||||||
|   # generate kcov coverage data |   - bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh) | ||||||
|   - travis-cargo coverage --no-sudo |   - cargo tarpaulin --out Xml -- --skip hpack && bash <(curl -s https://codecov.io/bash) | ||||||
|   # upload to codecov.io |  | ||||||
|   - codecov --file target/kcov/kcov-merged/cobertura.xml | jobs: | ||||||
|  |   allow_failures: | ||||||
|  |   - rust: nightly | ||||||
|  |   include: | ||||||
|  |     - stage: docs | ||||||
|  |       script: cargo doc --no-deps | ||||||
|  |       install: skip | ||||||
|  |       deploy: | ||||||
|  |         provider:  pages | ||||||
|  |         skip_cleanup: true | ||||||
|  |         github_token: $GH_TOKEN | ||||||
|  |         target_branch: gh-pages | ||||||
|  |         local_dir: target/doc | ||||||
|  |         on: | ||||||
|  |           branch: master | ||||||
|  |           repo: carllerche/h2 | ||||||
|  |           rust: nightly | ||||||
|  |       after_success: skip | ||||||
|  |     - stage: fmt | ||||||
|  |       rust: nightly | ||||||
|  |       install: if ! cargo fmt --help >/dev/null 2>&1 ; then cargo install rustfmt-nightly ; fi | ||||||
|  |       script: cargo fmt -- --write-mode=diff | ||||||
|  |       after_success: skip | ||||||
|  |  | ||||||
| env: | env: | ||||||
|   global: |   global: | ||||||
|   | |||||||
| @@ -3,6 +3,15 @@ name = "h2" | |||||||
| version = "0.1.0" | version = "0.1.0" | ||||||
| authors = ["Carl Lerche <me@carllerche.com>"] | authors = ["Carl Lerche <me@carllerche.com>"] | ||||||
|  |  | ||||||
|  | [badges.travis-ci] | ||||||
|  | repository = "carllerche/h2" | ||||||
|  | branch = "master" | ||||||
|  |  | ||||||
|  | [badges.codecov] | ||||||
|  | repository = "carllerche/h2" | ||||||
|  | branch = "master" | ||||||
|  | service = "github" | ||||||
|  |  | ||||||
| [features] | [features] | ||||||
|  |  | ||||||
| # Enables **unstable** APIs. Any API exposed by this feature has no backwards | # Enables **unstable** APIs. Any API exposed by this feature has no backwards | ||||||
|   | |||||||
| @@ -3,6 +3,7 @@ | |||||||
| A Tokio aware, HTTP/2.0 client & server implementation for Rust. | A Tokio aware, HTTP/2.0 client & server implementation for Rust. | ||||||
|  |  | ||||||
| [](https://travis-ci.org/carllerche/h2) | [](https://travis-ci.org/carllerche/h2) | ||||||
|  | [](https://codecov.io/gh/carllerche/h2) | ||||||
| <!-- [](https://crates.io/crates/h2) --> | <!-- [](https://crates.io/crates/h2) --> | ||||||
| <!-- [][dox] --> | <!-- [][dox] --> | ||||||
|  |  | ||||||
|   | |||||||
							
								
								
									
										18
									
								
								codecov.yml
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								codecov.yml
									
									
									
									
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | codecov: | ||||||
|  |   notify: | ||||||
|  |     require_ci_to_pass: true | ||||||
|  |  | ||||||
|  | coverage: | ||||||
|  |   ignore: | ||||||
|  |     - tests/.* | ||||||
|  |   notify: | ||||||
|  |     slack: | ||||||
|  |       default: | ||||||
|  |         url: "https://hooks.slack.com/services/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" | ||||||
|  |         threshold: 1% | ||||||
|  |         only_pulls: false | ||||||
|  |         branches: null | ||||||
|  |         flags: null | ||||||
|  |         paths: null | ||||||
|  |  | ||||||
|  | comment: off | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user