forked from EVOgeek/Vmeda.Online
		
	
						commit
						e81d40f07e
					
				
							
								
								
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								.travis.yml
									
									
									
									
									
								
							| @ -43,11 +43,11 @@ jobs: | |||||||
|     os: linux |     os: linux | ||||||
|     script: npm run build --bailOnLintError true --typeCheckOnLint true |     script: npm run build --bailOnLintError true --typeCheckOnLint true | ||||||
|   - stage: mirror |   - stage: mirror | ||||||
|     if: branch IN (master, integration, desktop) AND repo = moodlehq/moodleapp |     if: branch IN (master, integration, desktop) AND repo = moodlehq/moodleapp AND type != cron | ||||||
|     os: linux |     os: linux | ||||||
|     script: scripts/mirror.sh |     script: scripts/mirror.sh | ||||||
|   - stage: prepare |   - stage: prepare | ||||||
|     if: branch =~ /(master|^integration)$/ AND env(PREPARE) IS NOT blank AND env(PREPARE) = 1 |     if: branch =~ /(master|^integration)$/ AND env(PREPARE) IS NOT blank AND env(PREPARE) = 1 AND type != cron | ||||||
|     os: linux |     os: linux | ||||||
|     script: scripts/aot.sh |     script: scripts/aot.sh | ||||||
|   - stage: build |   - stage: build | ||||||
| @ -109,17 +109,17 @@ jobs: | |||||||
|     name: "End to end tests (mod_forum, mod_messages and mod_comments)" |     name: "End to end tests (mod_forum, mod_messages and mod_comments)" | ||||||
|     services: |     services: | ||||||
|     - docker |     - docker | ||||||
|     if: env(TRAVIS_EVENT_TYPE) = cron |     if: type = cron | ||||||
|     script: scripts/test_e2e.sh "@app&&@mod_forum" "@app&&@mod_messages" "@app&&@mod_comments" |     script: scripts/test_e2e.sh "@app&&@mod_forum" "@app&&@mod_messages" "@app&&@mod_comments" | ||||||
|   - stage: test |   - stage: test | ||||||
|     name: "End to end tests (mod_data, mod_survey, mod_course, core_course and mod_courses)" |     name: "End to end tests (mod_data, mod_survey, mod_course, core_course and mod_courses)" | ||||||
|     services: |     services: | ||||||
|     - docker |     - docker | ||||||
|     if: env(TRAVIS_EVENT_TYPE) = cron |     if: type = cron | ||||||
|     script: scripts/test_e2e.sh "@app&&@mod_data" "@app&&@mod_survey" "@app&&@mod_course" "@app&&@core_course" "@app&&@mod_courses" |     script: scripts/test_e2e.sh "@app&&@mod_data" "@app&&@mod_survey" "@app&&@mod_course" "@app&&@core_course" "@app&&@mod_courses" | ||||||
|   - stage: test |   - stage: test | ||||||
|     name: "End to end tests (others)" |     name: "End to end tests (others)" | ||||||
|     services: |     services: | ||||||
|     - docker |     - docker | ||||||
|     if: env(TRAVIS_EVENT_TYPE) = cron |     if: type = cron | ||||||
|     script: scripts/test_e2e.sh "@app&&~@mod_forum&&~@mod_messages&&~@mod_comments&&~@mod_data&&~@mod_survey&&~@mod_course&&~@core_course&&~@mod_courses" |     script: scripts/test_e2e.sh "@app&&~@mod_forum&&~@mod_messages&&~@mod_comments&&~@mod_data&&~@mod_survey&&~@mod_course&&~@core_course&&~@mod_courses" | ||||||
|  | |||||||
| @ -41,14 +41,16 @@ $dockercompose pull | |||||||
| $dockercompose up -d | $dockercompose up -d | ||||||
| $dockerscripts/moodle-docker-wait-for-db | $dockerscripts/moodle-docker-wait-for-db | ||||||
| $dockerscripts/moodle-docker-wait-for-app | $dockerscripts/moodle-docker-wait-for-app | ||||||
| $dockercompose exec -T webserver php admin/tool/behat/cli/init.php | 
 | ||||||
|  | $dockercompose exec -T webserver sh -c "php admin/tool/behat/cli/init.php" | ||||||
|  | notify_on_error_exit "e2e failed initializing behat" | ||||||
| 
 | 
 | ||||||
| # Run tests | # Run tests | ||||||
| for tags in "$@" | for tags in "$@" | ||||||
| do | do | ||||||
|     print_title "Running e2e tests ($tags)" |     print_title "Running e2e tests ($tags)" | ||||||
| 
 | 
 | ||||||
|     $dockercompose exec -T webserver php admin/tool/behat/cli/run.php --tags="$tags" |     $dockercompose exec -T webserver sh -c "php admin/tool/behat/cli/run.php --tags=\"$tags\"" | ||||||
|     notify_on_error_exit "e2e failed on $tags" |     notify_on_error_exit "e2e failed on $tags" | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user