Copy jar files to directory for Github release
This commit is contained in:
		
							
								
								
									
										11
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -11,6 +11,15 @@ script: | ||||
| cache: | ||||
|   directories: | ||||
|   - "$HOME/.m2" | ||||
| before_deploy: | ||||
|   - export WEBGOAT_SERVER_TARGET_DIR=$HOME/build/$TRAVIS_REPO_SLUG/webgoat-server/target | ||||
|   - export WEBWOLF_TARGET_DIR=$HOME/build/$TRAVIS_REPO_SLUG/webwolf/target | ||||
|   - export WEBGOAT_ARTIFACTS_FOLDER=$HOME/build/$TRAVIS_REPO_SLUG/Deployable_Artifacts/ | ||||
|   - mkdir $WEBGOAT_ARTIFACTS_FOLDER | ||||
|   - cp -fa $WEBGOAT_SERVER_TARGET_DIR/*.jar $WEBGOAT_ARTIFACTS_FOLDER/ | ||||
|   - cp -fa $WEBWOLF_TARGET_DIR/*.jar $WEBGOAT_ARTIFACTS_FOLDER/ | ||||
|   - echo "Contents of artifacts folder:" | ||||
|   - ls $WEBGOAT_ARTIFACTS_FOLDER | ||||
| deploy: | ||||
|   - provider: script | ||||
|     skip_cleanup: true | ||||
| @ -29,7 +38,7 @@ deploy: | ||||
|     api_key: | ||||
|       #api-key from webgoat-github user | ||||
|       secure: pJOLBnl6427PcVg/tVy/qB18JC7b8cKpffau+IP0pjdSt7KUfBdBY3QuJ7mrM65zRoVILzggLckaew2PlRmYQRdumyWlyRn44XiJ9KO4n6Bsufbz+ictB4ggtozpp9+I9IIUh1TmqypL9lhkX2ONM9dSHmyblYpAAgMuYSK8FYc= | ||||
|     file: "webgoat-server/target/webgoat-server*.jar" | ||||
|     local_dir: "$WEBGOAT_ARTIFACTS_FOLDER" | ||||
|     on: | ||||
|       repo: WebGoat/WebGoat | ||||
|       tags: true | ||||
|  | ||||
		Reference in New Issue
	
	Block a user