1919 depth : 3
2020
2121before_cache :
22- - rm -rf $HOME/.cache/electron-builder/wine
2322 - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
2423 - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
2524
2625cache :
2726 directories :
2827 - $HOME/.npm
29- - $HOME/.cache/electron
30- - $HOME/.cache/electron-builder
3128 - $HOME/.gradle/caches/
3229 - $HOME/.gradle/wrapper/
3330 - $HOME/.android/build-cache
3431
3532before_script :
36- - if [ "$TRAVIS_OS_NAME" != 'windows' ] ; then npm install npm@latest -g ; fi
33+ - npm install npm@latest -g
3734 - gulp
3835
3936jobs :
4037 include :
4138 - stage : check
4239 if : NOT branch =~ /(master|integration|desktop)$/ AND env(DEPLOY) IS blank
43- os : linux
4440 script : npm run build --bailOnLintError true --typeCheckOnLint true
4541 - stage : mirror
4642 if : branch IN (master, integration, desktop) AND repo = moodlehq/moodleapp AND type != cron
47- os : linux
4843 script : scripts/mirror.sh
4944 - stage : prepare
50- if : branch =~ /(master|^integration)$/ AND env(PREPARE) IS NOT blank AND env(PREPARE) = 1 AND type != cron
51- os : linux
45+ if : branch =~ /(master|^integration)$/ AND env(PREPARE) IS present AND env(PREPARE) = 1 AND type != cron AND tag IS blank
5246 script : scripts/aot.sh
5347 - stage : build
5448 name : " Build Android"
55- if : env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch != desktop) OR (env(DEPLOY) IN (2,3) AND tag IS NOT blank))
56- os : linux
49+ if : env(DEPLOY) IS present AND type != cron AND ((env(DEPLOY) = 1 AND tag IS blank) OR (env(DEPLOY) = 2 AND tag IS present))
5750 dist : trusty
58- group : edge
5951 language : android
6052 env :
6153 - BUILD_PLATFORM='android'
@@ -67,56 +59,24 @@ jobs:
6759 - npm ci
6860 - npm install -g gulp
6961 script : scripts/aot.sh
70- - stage : build
71- name : " Build iOS"
72- if : env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch != desktop) OR (env(DEPLOY) IN (2,3) AND tag IS NOT blank))
73- os : osx
74- osx_image : xcode12.2
75- env :
76- - BUILD_PLATFORM='ios'
77- script : scripts/aot.sh
78- - stage : build
79- name : " Build Linux"
80- if : env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
81- os : linux
82- env :
83- - ELECTRON_CACHE=$HOME/.cache/electron
84- - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
85- - BUILD_PLATFORM='linux'
86- script : scripts/aot.sh
87- - stage : build
88- name : " Build MacOS"
89- if : env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
90- os : osx
91- osx_image : xcode12.2
92- env :
93- - ELECTRON_CACHE=$HOME/.cache/electron
94- - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
95- - BUILD_PLATFORM='osx'
96- script : scripts/aot.sh
97- - stage : build
98- name : " Build Windows"
99- if : env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
100- os : windows
101- env :
102- - ELECTRON_CACHE=$HOME/.cache/electron
103- - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
104- - ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
105- - DEBUG=electron-windows-store
106- - BUILD_PLATFORM='windows'
107- script : scripts/aot.sh
10862 - stage : test
109- name : " End to end tests (mod_forum, mod_messages and mod_comments)"
63+ name : " End to end tests (mod_forum and mod_messages)"
64+ services :
65+ - docker
66+ if : type = cron
67+ script : scripts/test_e2e.sh "@app&&@mod_forum" "@app&&@mod_messages"
68+ - stage : test
69+ name : " End to end tests (mod_data and mod_survey)"
11070 services :
11171 - docker
11272 if : type = cron
113- script : scripts/test_e2e.sh "@app&&@mod_forum " "@app&&@mod_messages" "@app&&@mod_comments "
73+ script : scripts/test_e2e.sh "@app&&@mod_data " "@app&&@mod_survey "
11474 - stage : test
115- name : " End to end tests (mod_data, mod_survey , mod_course, core_course and mod_courses)"
75+ name : " End to end tests (mod_comments , mod_course, core_course and mod_courses)"
11676 services :
11777 - docker
11878 if : type = cron
119- script : scripts/test_e2e.sh "@app&&@mod_data" "@app&&@mod_survey " "@app&&@mod_course" "@app&&@core_course" "@app&&@mod_courses"
79+ script : scripts/test_e2e.sh "@app&&@mod_comments " "@app&&@mod_course" "@app&&@core_course" "@app&&@mod_courses"
12080 - stage : test
12181 name : " End to end tests (others)"
12282 services :
0 commit comments