CI: test that docker-compose up works. (#4287)
This commit is contained in:
		
							parent
							
								
									24f150f8fc
								
							
						
					
					
						commit
						6560e8dea5
					
				|  | @ -40,6 +40,7 @@ env: | ||||||
|     - RUN="integration" BOULDER_CONFIG_DIR="test/config-next" |     - RUN="integration" BOULDER_CONFIG_DIR="test/config-next" | ||||||
|     - RUN="unit" |     - RUN="unit" | ||||||
|     - RUN="unit-next" BOULDER_CONFIG_DIR="test/config-next" |     - RUN="unit-next" BOULDER_CONFIG_DIR="test/config-next" | ||||||
|  |     - RUN="start" | ||||||
|     # gomod-vendor runs with a separate container because it needs to fetch |     # gomod-vendor runs with a separate container because it needs to fetch | ||||||
|     # packages from GitHub et. al., which is incompatible with the DNS server |     # packages from GitHub et. al., which is incompatible with the DNS server | ||||||
|     # override in the boulder container (used for service discovery). |     # override in the boulder container (used for service discovery). | ||||||
|  |  | ||||||
							
								
								
									
										13
									
								
								test.sh
								
								
								
								
							
							
						
						
									
										13
									
								
								test.sh
								
								
								
								
							|  | @ -115,6 +115,19 @@ if [[ "$RUN" =~ "integration" ]] ; then | ||||||
|     python2 test/integration-test.py "${args[@]}" |     python2 test/integration-test.py "${args[@]}" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  | # Test that just ./start.py works, which is a proxy for testing that | ||||||
|  | # `docker-compose up` works, since that just runs start.py (via entrypoint.sh). | ||||||
|  | if [[ "$RUN" =~ "start" ]] ; then | ||||||
|  |   ./start.py & | ||||||
|  |   for I in $(seq 1 100); do | ||||||
|  |     sleep 1 | ||||||
|  |     curl http://localhost:4000/directory && break | ||||||
|  |   done | ||||||
|  |   if [[ $I = 100 ]]; then | ||||||
|  |     echo "Boulder did not come up after ./start.py." | ||||||
|  |   fi | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| # Run go mod vendor (happens only in Travis) to check that the versions in | # Run go mod vendor (happens only in Travis) to check that the versions in | ||||||
| # vendor/ really exist in the remote repo and match what we have. | # vendor/ really exist in the remote repo and match what we have. | ||||||
| if [[ "$RUN" =~ "gomod-vendor" ]] ; then | if [[ "$RUN" =~ "gomod-vendor" ]] ; then | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue