forked from cerc-io/stack-orchestrator
		
	Merge pull request #111 from cerc-io/dboreham/simple-test
A simple test
This commit is contained in:
		
						commit
						9278d09096
					
				
							
								
								
									
										4
									
								
								build-shiv-package.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								build-shiv-package.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,4 @@ | ||||
| # Builds the shiv "package" for distribution | ||||
| # TODO: add build version/tag to filename | ||||
| # TODO: add version info to code for version subcommand | ||||
| shiv -c laconic-so -o package/laconic-so . | ||||
							
								
								
									
										21
									
								
								tests/smoke-test/run-smoke-test.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										21
									
								
								tests/smoke-test/run-smoke-test.sh
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,21 @@ | ||||
| # Basic simple test of stack-orchestrator functionality | ||||
| echo "Running stack-orchestrator smoke test" | ||||
| TEST_TARGET_SO=package/laconic-so | ||||
| # Set a non-default repo dir | ||||
| export CERC_REPO_BASE_DIR=~/stack-orchestrator-test/repo-base-dir | ||||
| echo "Testing this package: $TEST_TARGET_SO" | ||||
| echo "Cloning repositories into: $CERC_REPO_BASE_DIR" | ||||
| rm -rf $CERC_REPO_BASE_DIR | ||||
| mkdir -p $CERC_REPO_BASE_DIR | ||||
| # Pull an example small public repo to test we can pull a repo | ||||
| $TEST_TARGET_SO setup-repositories --include cerc-io/laconic-sdk | ||||
| # TODO: test building the repo into a container | ||||
| # Build two example containers | ||||
| # TODO:  | ||||
| $TEST_TARGET_SO build-containers --include cerc/builder-js,cerc/test-container | ||||
| # Deploy the test container | ||||
| $TEST_TARGET_SO deploy-system --include test up | ||||
| # TODO: test that we can use the deployed container somehow | ||||
| # Clean up | ||||
| $TEST_TARGET_SO deploy-system --include test down | ||||
| echo "Test passed" | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user