mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 02:09:05 +02:00 
			
		
		
		
	This avoids the tests running npm ci on every run. Differential Revision: https://phabricator.services.mozilla.com/D244071
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			345 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			345 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/bash -vex
 | 
						|
 | 
						|
set -x -e
 | 
						|
 | 
						|
echo "running as" $(id)
 | 
						|
 | 
						|
set -v
 | 
						|
 | 
						|
cd $GECKO_PATH
 | 
						|
 | 
						|
export PATH=$PATH:$MOZ_FETCHES_DIR/node/bin
 | 
						|
 | 
						|
rm -rf $2/node_modules
 | 
						|
npm ci --prefix $2
 | 
						|
 | 
						|
# We have $2/{node_modules,...} and want $1/{node_modules}.
 | 
						|
mkdir -p /builds/worker/artifacts
 | 
						|
cd $2
 | 
						|
cd ..
 | 
						|
tar caf /builds/worker/artifacts/$1-node-modules.tar.zst $1/node_modules
 |