From 0b03c3818101d768d9dc0760d5d2b61fa02256d2 Mon Sep 17 00:00:00 2001 From: Amine Date: Sat, 25 Apr 2020 18:08:00 +0000 Subject: Enhance Travis CI/AppVeyor configuration (#641) --- .travis.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index e0fd7b8ae..7579878b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ matrix: + fast_finish: true include: - os: linux dist: xenial @@ -11,27 +12,28 @@ matrix: - libxkbfile-dev - rpm - os: osx + if: branch = release osx_image: xcode11 language: node_js -# Handle git submodules yourself git: submodules: false -# Use sed to replace the SSH URL with the public URL, then initialize submodules +branches: + only: + - develop + - release +cache: npm + before_install: - git submodule update --init --recursive install: - - echo do nothing -before_script: - travis_retry npx lerna bootstrap - travis_retry npm install node-sass -g +before_script: + - npm run lint && npm run test script: - - travis_retry travis_wait 100 npm run build - -cache: npm + - | + if [ $TRAVIS_BRANCH == "release" ]; then + travis_retry travis_wait 100 npm run build + fi -branches: - except: - - i18n - - l10n_master - - l10n_develop -- cgit v1.2.3-70-g09d2