Merge pull request #559 from hyperium/unsudo
chore(travis): remove sudo need from kcov
This commit is contained in:
		
							
								
								
									
										24
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								.travis.yml
									
									
									
									
									
								
							| @@ -4,27 +4,35 @@ matrix: | |||||||
|     include: |     include: | ||||||
|         - rust: nightly |         - rust: nightly | ||||||
|           env: FEATURES="--features nightly" |           env: FEATURES="--features nightly" | ||||||
|           sudo: false |  | ||||||
|         - rust: beta |         - rust: beta | ||||||
|           sudo: false |  | ||||||
|         - rust: stable |         - rust: stable | ||||||
|           sudo: true |  | ||||||
|  | sudo: false | ||||||
|  |  | ||||||
| cache: | cache: | ||||||
|  |     apt: true | ||||||
|     directories: |     directories: | ||||||
|         - target |         - target/debug/deps | ||||||
|  |         - target/debug/build | ||||||
|  |  | ||||||
| script: | script: | ||||||
|   - cargo build --verbose $FEATURES |   - cargo build --verbose $FEATURES | ||||||
|   - cargo test --verbose $FEATURES |   - cargo test --verbose $FEATURES | ||||||
|  |  | ||||||
|  | addons: | ||||||
|  |   apt: | ||||||
|  |     packages: | ||||||
|  |       - libcurl4-openssl-dev | ||||||
|  |       - libelf-dev | ||||||
|  |       - libdw-dev | ||||||
|  |  | ||||||
|  |  | ||||||
| after_success: | | after_success: | | ||||||
|     [ $TRAVIS_RUST_VERSION = stable ] && |     [ $TRAVIS_RUST_VERSION = stable ] && | ||||||
|     sudo apt-get install libcurl4-openssl-dev libelf-dev libdw-dev && |  | ||||||
|     wget https://github.com/SimonKagstrom/kcov/archive/master.tar.gz && |     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 && |     tar xzf master.tar.gz && mkdir kcov-master/build && cd kcov-master/build && cmake .. && make && make install DESTDIR=../tmp && cd ../.. && | ||||||
|     sudo make install && cd ../.. && |     ls target/debug && | ||||||
|     kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* |     ./kcov-master/tmp/usr/local/bin/kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo target/kcov target/debug/hyper-* && | ||||||
|     [ $TRAVIS_BRANCH = master ] && |     [ $TRAVIS_BRANCH = master ] && | ||||||
|     [ $TRAVIS_PULL_REQUEST = false ] && |     [ $TRAVIS_PULL_REQUEST = false ] && | ||||||
|     [ $TRAVIS_RUST_VERSION = stable ] && |     [ $TRAVIS_RUST_VERSION = stable ] && | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user