MOBILE-3401 ionic: Fix travis regexp

main
Pau Ferrer Ocaña 2020-05-01 12:16:21 +02:00
parent 44ca3ff589
commit a937667111
1 changed files with 8 additions and 7 deletions

View File

@ -3,6 +3,7 @@ dist: bionic
group: edge group: edge
language: node_js language: node_js
node_js: 11 node_js: 11
php: 7.1
android: android:
components: components:
@ -38,7 +39,7 @@ before_script:
jobs: jobs:
include: include:
- stage: check - stage: check
if: NOT branch =~ /(master$|integration$|desktop)/ if: NOT branch =~ /(master|integration|desktop)$/
os: linux os: linux
script: npm run build --bailOnLintError true --typeCheckOnLint true script: npm run build --bailOnLintError true --typeCheckOnLint true
- stage: mirror - stage: mirror
@ -46,12 +47,12 @@ jobs:
os: linux os: linux
script: scripts/mirror.sh script: scripts/mirror.sh
- stage: prepare - stage: prepare
if: branch =~ /(master$|integration)/ AND env(PREPARE) IS present AND env(PREPARE) = 1 if: branch =~ /(master|^integration)$/ AND env(PREPARE) IS NOT blank AND env(PREPARE) = 1
os: linux os: linux
script: scripts/aot.sh script: scripts/aot.sh
- stage: build - stage: build
name: "Build Android" name: "Build Android"
if: env(DEPLOY) IS present AND (env(DEPLOY) = 1 AND NOT branch = desktop) OR (env(DEPLOY) IN (2,3) AND tag IS present) if: env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND NOT branch = desktop) OR (env(DEPLOY) IN (2,3) AND tag IS NOT blank))
os: linux os: linux
dist: trusty dist: trusty
group: edge group: edge
@ -66,13 +67,13 @@ jobs:
script: scripts/aot.sh script: scripts/aot.sh
- stage: build - stage: build
name: "Build iOS" name: "Build iOS"
if: env(DEPLOY) IS present AND (env(DEPLOY) = 1 AND NOT branch = desktop) OR (env(DEPLOY) IN (2,3) AND tag IS present) if: env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND NOT branch = desktop) OR (env(DEPLOY) IN (2,3) AND tag IS NOT blank))
os: osx os: osx
osx_image: xcode11.3 osx_image: xcode11.3
script: scripts/aot.sh script: scripts/aot.sh
- stage: build - stage: build
name: "Build Linux" name: "Build Linux"
if: env(DEPLOY) IS present AND (env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS present) if: env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
os: linux os: linux
env: env:
- ELECTRON_CACHE=$HOME/.cache/electron - ELECTRON_CACHE=$HOME/.cache/electron
@ -80,7 +81,7 @@ jobs:
script: scripts/aot.sh script: scripts/aot.sh
- stage: build - stage: build
name: "Build MacOS" name: "Build MacOS"
if: env(DEPLOY) IS present AND (env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS present) if: env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
os: osx os: osx
osx_image: xcode11.3 osx_image: xcode11.3
env: env:
@ -89,7 +90,7 @@ jobs:
script: scripts/aot.sh script: scripts/aot.sh
- stage: build - stage: build
name: "Build Windows" name: "Build Windows"
if: env(DEPLOY) IS present AND (env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS present) if: env(DEPLOY) IS NOT blank AND ((env(DEPLOY) = 1 AND branch = desktop) OR (env(DEPLOY) = 3 AND tag IS NOT blank))
os: windows os: windows
env: env:
- ELECTRON_CACHE=$HOME/.cache/electron - ELECTRON_CACHE=$HOME/.cache/electron