mirror of
				https://hub.gitmirror.com/https://github.com/gradle/actions.git
				synced 2025-10-27 16:09:59 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			967 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			967 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| cd sources
 | |
| 
 | |
| if [[ -f ~/.gradle/develocity/keys.properties ]]; then
 | |
|     export NODE_OPTIONS='-r @gradle/develocity-agent/preload'
 | |
|     export DEVELOCITY_URL=https://ge.solutions-team.gradle.com
 | |
|     export DEVELOCITY_ACCESS_KEY=$(paste -sd ';' ~/.gradle/develocity/keys.properties)
 | |
| fi
 | |
| 
 | |
| case "$1" in
 | |
|     all)
 | |
|         npm run all
 | |
|         ;;
 | |
|     act)
 | |
|         # Build and copy outputs to the dist directory
 | |
|         npm run build
 | |
|         cd ..
 | |
|         cp -r sources/dist .
 | |
|         # Run act
 | |
|         $@
 | |
|         # Revert the changes to the dist directory
 | |
|         git checkout -- dist
 | |
|         ;;
 | |
|     dist)
 | |
|         npm clean-install
 | |
|         npm run build
 | |
|         cd ..
 | |
|         cp -r sources/dist .
 | |
|         ;;
 | |
|     init-scripts)
 | |
|         cd test/init-scripts
 | |
|         ./gradlew check
 | |
|         ;;
 | |
|     install)
 | |
|         npm clean-install
 | |
|         npm run build
 | |
|         ;;
 | |
|     test)
 | |
|         shift
 | |
|         npm test -- $@
 | |
|         ;;
 | |
|     *)
 | |
|         npm run build
 | |
|         ;;
 | |
| esac
 | 
