mirror of
				https://github.com/scottlamb/moonfire-nvr.git
				synced 2025-10-30 00:05:03 -04:00 
			
		
		
		
	build and lint the UI in travis-ci
This is a separate item in the matrix, so it doesn't go through this for each of the three Rust versions.
This commit is contained in:
		
							parent
							
								
									ee3da33470
								
							
						
					
					
						commit
						fc0bc51bed
					
				
							
								
								
									
										41
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										41
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -1,10 +1,5 @@ | |||||||
| dist: trusty | dist: trusty | ||||||
| sudo: required | sudo: required | ||||||
| language: rust |  | ||||||
| rust: |  | ||||||
|   - stable |  | ||||||
|   - nightly |  | ||||||
|   - 1.27.0 |  | ||||||
| addons: | addons: | ||||||
|   apt: |   apt: | ||||||
|     packages: |     packages: | ||||||
| @ -16,17 +11,39 @@ addons: | |||||||
|       - pkg-config |       - pkg-config | ||||||
|       - yasm |       - yasm | ||||||
| matrix: | matrix: | ||||||
|  |   include: | ||||||
|  |     - language: rust | ||||||
|  |       rust: stable | ||||||
|  |       env: FFMPEG_VERSION=3.4.4 | ||||||
|  |       install: | ||||||
|  |         - ci/install-ffmpeg.sh | ||||||
|  |       script: | ||||||
|  |         - ci/script-rust.sh | ||||||
|  |     - language: rust | ||||||
|  |       rust: nightly | ||||||
|  |       env: FFMPEG_VERSION=3.4.4 | ||||||
|  |       install: | ||||||
|  |         - ci/install-ffmpeg.sh | ||||||
|  |       script: | ||||||
|  |         - ci/script-rust.sh | ||||||
|  |     - language: rust | ||||||
|  |       rust: 1.27.0 | ||||||
|  |       env: FFMPEG_VERSION=3.4.4 | ||||||
|  |       install: | ||||||
|  |         - ci/install-ffmpeg.sh | ||||||
|  |       script: | ||||||
|  |         - ci/script-rust.sh | ||||||
|  |     - language: node_js | ||||||
|  |       node_js: "8" | ||||||
|  |       script: | ||||||
|  |         - yarn | ||||||
|  |         - yarn build | ||||||
|  |         - node_modules/eslint/bin/eslint.js ui-src | ||||||
|   allow_failures: |   allow_failures: | ||||||
|     - rust: nightly |     - rust: nightly | ||||||
| cache: | cache: | ||||||
|   cargo: true |   cargo: true | ||||||
|  |   yarn: true | ||||||
|   directories: |   directories: | ||||||
|     - ffmpeg-3.4.4 |     - ffmpeg-3.4.4 | ||||||
|   timeout: 600 |   timeout: 600 | ||||||
| install: |  | ||||||
|   - test -f ffmpeg-3.4.4/configure || (wget https://ffmpeg.org/releases/ffmpeg-3.4.4.tar.xz && tar xf ffmpeg-3.4.4.tar.xz) |  | ||||||
|   - pushd ffmpeg-3.4.4 && ./configure --enable-shared && make --jobs=2 && sudo make install --jobs=2&& sudo ldconfig && rm -f ffbuild/config.log && popd |  | ||||||
| script: |  | ||||||
|   - cargo build --all |  | ||||||
|   - cargo test --all |  | ||||||
|   - 'if [ $TRAVIS_RUST_VERSION = nightly ]; then cargo bench --all; fi' |  | ||||||
|  | |||||||
							
								
								
									
										13
									
								
								ci/install-ffmpeg.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								ci/install-ffmpeg.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,13 @@ | |||||||
|  | #!/bin/bash -e | ||||||
|  | if [ ! -f ffmpeg-${FFMPEG_VERSION}/configure ]; then | ||||||
|  |   wget https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.xz | ||||||
|  |   tar xf ffmpeg-${FFMPEG_VERSION}.tar.xz | ||||||
|  | fi | ||||||
|  | cd ffmpeg-${FFMPEG_VERSION} | ||||||
|  | ./configure --enable-shared | ||||||
|  | make --jobs=2 | ||||||
|  | sudo make install --jobs=2 | ||||||
|  | sudo ldconfig | ||||||
|  | 
 | ||||||
|  | # The build log varies with each invocation; remove it to improve cachability. | ||||||
|  | rm -f ffbuild/config.log | ||||||
							
								
								
									
										6
									
								
								ci/script-rust.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										6
									
								
								ci/script-rust.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,6 @@ | |||||||
|  | #!/bin/bash -e | ||||||
|  | cargo build --all | ||||||
|  | cargo test --all | ||||||
|  | if [ "$TRAVIS_RUST_VERSION" = nightly ]; then | ||||||
|  |   cargo bench --all | ||||||
|  | fi | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user