Update CI builds (#3780)
* Only run languages tests in appropriate areas * Drop echo
This commit is contained in:
		
							parent
							
								
									5f09eb9d04
								
							
						
					
					
						commit
						6eb63a7316
					
				@ -423,12 +423,8 @@ test-rust-stable:
 | 
			
		||||
  before_script:
 | 
			
		||||
    - git submodule update --init --recursive
 | 
			
		||||
    - export RUST_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF^ $CI_BUILD_REF | grep -v ^js/ | wc -l)
 | 
			
		||||
    - export JS_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF^ $CI_BUILD_REF | grep ^js/ | wc -l)
 | 
			
		||||
    - echo "rust/js modified: $RUST_FILES_MODIFIED / $JS_FILES_MODIFIED"
 | 
			
		||||
    - if [ "$JS_FILES_MODIFIED" = 0 ]; then echo "Skipping JS deps install since no JS files modified."; else ./js/scripts/install-deps.sh;fi
 | 
			
		||||
  script:
 | 
			
		||||
    - export RUST_BACKTRACE=1
 | 
			
		||||
    - if [ "$JS_FILES_MODIFIED" = 0 ]; then echo "Skipping JS lint since no JS files modified."; else ./js/scripts/lint.sh && ./js/scripts/test.sh && ./js/scripts/build.sh; fi
 | 
			
		||||
    - if [ "$RUST_FILES_MODIFIED" = 0 ]; then echo "Skipping Rust tests since no Rust files modified."; else ./test.sh $CARGOFLAGS; fi
 | 
			
		||||
  tags:
 | 
			
		||||
    - rust
 | 
			
		||||
@ -439,11 +435,8 @@ js-test:
 | 
			
		||||
  before_script:
 | 
			
		||||
    - git submodule update --init --recursive
 | 
			
		||||
    - export JS_FILES_MODIFIED=$(git --no-pager diff --name-only $CI_BUILD_REF^ $CI_BUILD_REF | grep ^js/ | wc -l)
 | 
			
		||||
    - echo $JS_FILES_MODIFIED
 | 
			
		||||
    - if [ "$JS_FILES_MODIFIED" = 0 ]; then echo "Skipping JS deps install since no JS files modified."; else ./js/scripts/install-deps.sh;fi
 | 
			
		||||
  script:
 | 
			
		||||
    - export RUST_BACKTRACE=1
 | 
			
		||||
    - echo $JS_FILES_MODIFIED
 | 
			
		||||
    - if [ "$JS_FILES_MODIFIED" = 0 ]; then echo "Skipping JS lint since no JS files modified."; else ./js/scripts/lint.sh && ./js/scripts/test.sh && ./js/scripts/build.sh; fi
 | 
			
		||||
  tags:
 | 
			
		||||
    - rust
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user