diff options
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml index e0fd7b8ae..7579878b7 100644 --- a/.travis.yml +++ b/.travis.yml | |||
@@ -1,4 +1,5 @@ | |||
1 | matrix: | 1 | matrix: |
2 | fast_finish: true | ||
2 | include: | 3 | include: |
3 | - os: linux | 4 | - os: linux |
4 | dist: xenial | 5 | dist: xenial |
@@ -11,27 +12,28 @@ matrix: | |||
11 | - libxkbfile-dev | 12 | - libxkbfile-dev |
12 | - rpm | 13 | - rpm |
13 | - os: osx | 14 | - os: osx |
15 | if: branch = release | ||
14 | osx_image: xcode11 | 16 | osx_image: xcode11 |
15 | 17 | ||
16 | language: node_js | 18 | language: node_js |
17 | # Handle git submodules yourself | ||
18 | git: | 19 | git: |
19 | submodules: false | 20 | submodules: false |
20 | # Use sed to replace the SSH URL with the public URL, then initialize submodules | 21 | branches: |
22 | only: | ||
23 | - develop | ||
24 | - release | ||
25 | cache: npm | ||
26 | |||
21 | before_install: | 27 | before_install: |
22 | - git submodule update --init --recursive | 28 | - git submodule update --init --recursive |
23 | install: | 29 | install: |
24 | - echo do nothing | ||
25 | before_script: | ||
26 | - travis_retry npx lerna bootstrap | 30 | - travis_retry npx lerna bootstrap |
27 | - travis_retry npm install node-sass -g | 31 | - travis_retry npm install node-sass -g |
32 | before_script: | ||
33 | - npm run lint && npm run test | ||
28 | script: | 34 | script: |
29 | - travis_retry travis_wait 100 npm run build | 35 | - | |
30 | 36 | if [ $TRAVIS_BRANCH == "release" ]; then | |
31 | cache: npm | 37 | travis_retry travis_wait 100 npm run build |
38 | fi | ||
32 | 39 | ||
33 | branches: | ||
34 | except: | ||
35 | - i18n | ||
36 | - l10n_master | ||
37 | - l10n_develop | ||