In 53bba6e , ssl usage was improved. The existing benchmark
implementation wasn't adjusted though.
This commit fixes the client benchmark to work with the latest nightly
rust and instructs travis to try compile the benchmarks
when rustc nightly is used. This should prevent such kind of breakage
in future.
		
	
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| language: rust
 | |
| matrix:
 | |
|     fast_finish: true
 | |
|     include:
 | |
|         - rust: nightly
 | |
|           env: FEATURES="--features nightly"
 | |
|         - rust: beta
 | |
|         - rust: stable
 | |
|         - rust: stable
 | |
|           env: FEATURES="--no-default-features"
 | |
| 
 | |
| sudo: false
 | |
| 
 | |
| cache:
 | |
|     apt: true
 | |
|     directories:
 | |
|         - target/debug/deps
 | |
|         - target/debug/build
 | |
| 
 | |
| script:
 | |
|   - cargo build --verbose $FEATURES
 | |
|   - cargo test --verbose $FEATURES
 | |
|   - '[ $TRAVIS_RUST_VERSION = nightly ] && cargo bench --no-run || :'
 | |
| 
 | |
| addons:
 | |
|   apt:
 | |
|     packages:
 | |
|       - libcurl4-openssl-dev
 | |
|       - libelf-dev
 | |
|       - libdw-dev
 | |
| 
 | |
| 
 | |
| after_success: |
 | |
|     [ $TRAVIS_RUST_VERSION = stable ] &&
 | |
|     wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz &&
 | |
|     tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. &&
 | |
|     ls target/debug &&
 | |
|     ./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* &&
 | |
|     [ $TRAVIS_BRANCH = master ] &&
 | |
|     [ $TRAVIS_PULL_REQUEST = false ] &&
 | |
|     [ $TRAVIS_RUST_VERSION = stable ] &&
 | |
|     cargo doc --no-deps &&
 | |
|     echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html &&
 | |
|     pip install --user ghp-import &&
 | |
|     /home/travis/.local/bin/ghp-import -n target/doc &&
 | |
|     git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
 | |
| 
 | |
| env:
 | |
|     global:
 | |
|         - secure: kHuPGsSt14Y7TTy+4NeNMQ4yhENXm38OM26G0ZER870QVOQH8cBZk9a9jgA36F8CGkGAMkFJ5lQw5RginQX01zaCev765XqCF8VvToXq9n/Vg8+oxR5LepC1ybY06yd7AuW/znB6cnQ8BB8HJK5FvZJ1PqH+yubzyyada8c/sVQ=
 | |
| 
 | |
| notifications:
 | |
|     email: false
 |