chore(travis): don't build docs with deps, or run full benchmarks
This commit is contained in:
		
							
								
								
									
										12
									
								
								.travis.sh
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								.travis.sh
									
									
									
									
									
								
							| @@ -1,12 +0,0 @@ | |||||||
| #!/bin/sh |  | ||||||
|  |  | ||||||
| if [ "$BENCH" != "" ] |  | ||||||
| then |  | ||||||
|     echo "cargo bench $FEATURES" |  | ||||||
|     cargo bench --verbose $FEATURES |  | ||||||
| else |  | ||||||
|     echo "cargo build $FEATURES" |  | ||||||
|     cargo build --verbose  $FEATURES |  | ||||||
|     echo "cargo test $FEATURES" |  | ||||||
|     cargo test --verbose $FEATURES |  | ||||||
| fi |  | ||||||
| @@ -5,9 +5,6 @@ matrix: | |||||||
|         - rust: nightly |         - rust: nightly | ||||||
|           env: FEATURES="--features nightly" |           env: FEATURES="--features nightly" | ||||||
|           sudo: false |           sudo: false | ||||||
|         - rust: nightly |  | ||||||
|           env: FEATURES="--features nightly" BENCH=true |  | ||||||
|           sudo: false |  | ||||||
|         - rust: beta |         - rust: beta | ||||||
|           sudo: false |           sudo: false | ||||||
|         - rust: stable |         - rust: stable | ||||||
| @@ -17,7 +14,9 @@ cache: | |||||||
|     directories: |     directories: | ||||||
|         - target |         - target | ||||||
|  |  | ||||||
| script: ./.travis.sh | script: | ||||||
|  |   - cargo build --verbose $FEATURES | ||||||
|  |   - cargo test --verbose $FEATURES | ||||||
|  |  | ||||||
| after_success: | | after_success: | | ||||||
|     [ $TRAVIS_RUST_VERSION = stable ] && |     [ $TRAVIS_RUST_VERSION = stable ] && | ||||||
| @@ -29,7 +28,7 @@ after_success: | | |||||||
|     [ $TRAVIS_BRANCH = master ] && |     [ $TRAVIS_BRANCH = master ] && | ||||||
|     [ $TRAVIS_PULL_REQUEST = false ] && |     [ $TRAVIS_PULL_REQUEST = false ] && | ||||||
|     [ $TRAVIS_RUST_VERSION = stable ] && |     [ $TRAVIS_RUST_VERSION = stable ] && | ||||||
|     cargo doc  && |     cargo doc --no-deps && | ||||||
|     echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html && |     echo '<meta http-equiv=refresh content=0;url=hyper/index.html>' > target/doc/index.html && | ||||||
|     pip install --user ghp-import && |     pip install --user ghp-import && | ||||||
|     /home/travis/.local/bin/ghp-import -n target/doc && |     /home/travis/.local/bin/ghp-import -n target/doc && | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user