aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Amine <amine@mouafik.fr>2020-04-25 18:08:00 +0000
committerLibravatar GitHub <noreply@github.com>2020-04-25 18:08:00 +0000
commit0b03c3818101d768d9dc0760d5d2b61fa02256d2 (patch)
tree4b45991ccedbe223f4d5f648eb48804c3acbc7d3
parentEnable Dark Reader settings to follow the accent color (#646) (diff)
downloadferdium-app-0b03c3818101d768d9dc0760d5d2b61fa02256d2.tar.gz
ferdium-app-0b03c3818101d768d9dc0760d5d2b61fa02256d2.tar.zst
ferdium-app-0b03c3818101d768d9dc0760d5d2b61fa02256d2.zip
Enhance Travis CI/AppVeyor configuration (#641)
-rw-r--r--.travis.yml26
-rw-r--r--appveyor.yml27
-rw-r--r--jest.config.js5
-rw-r--r--package.json2
4 files changed, 30 insertions, 30 deletions
diff --git a/.travis.yml b/.travis.yml
index e0fd7b8ae..7579878b7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,5 @@
1matrix: 1matrix:
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
16language: node_js 18language: node_js
17# Handle git submodules yourself
18git: 19git:
19 submodules: false 20 submodules: false
20# Use sed to replace the SSH URL with the public URL, then initialize submodules 21branches:
22 only:
23 - develop
24 - release
25cache: npm
26
21before_install: 27before_install:
22 - git submodule update --init --recursive 28 - git submodule update --init --recursive
23install: 29install:
24 - echo do nothing
25before_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
32before_script:
33 - npm run lint && npm run test
28script: 34script:
29 - travis_retry travis_wait 100 npm run build 35 - |
30 36 if [ $TRAVIS_BRANCH == "release" ]; then
31cache: npm 37 travis_retry travis_wait 100 npm run build
38 fi
32 39
33branches:
34 except:
35 - i18n
36 - l10n_master
37 - l10n_develop
diff --git a/appveyor.yml b/appveyor.yml
index 1985835ef..acdd94e13 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,29 +1,22 @@
1environment: 1version: build-{build}
2 APPVEYOR_CACHE_SKIP_RESTORE: true 2branches:
3 only:
4 - release
5skip_tags: true
6skip_branch_with_pr: true
3 7
4version: 5.4.1-beta.4.{build} 8cache:
9 - '%APPDATA%\npm-cache'
10 - node_modules
5 11
6install: 12install:
7 - appveyor-retry git submodule update --init --recursive 13 - appveyor-retry git submodule update --init --recursive
8 - ps: Install-Product node 10 14 - ps: Install-Product node 10
9 - appveyor-retry npx lerna bootstrap 15 - appveyor-retry npx lerna bootstrap
10 16
11cache:
12 - '%APPDATA%\npm-cache'
13
14before_build: 17before_build:
15 - npm run lint 18 - npm run lint && npm test
16 - cmd: set NODE_ENV=production 19 - cmd: set NODE_ENV=production
17 20
18build_script: 21build_script:
19 - appveyor-retry npm run build 22 - appveyor-retry npm run build
20
21branches:
22 except:
23 - i18n
24 - l10n_master
25 - l10n_develop
26
27skip_commits:
28 files:
29 - src/i18n/locales/*.json
diff --git a/jest.config.js b/jest.config.js
index 8c9b59cf5..cca24440f 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,3 +1,8 @@
1module.exports = { 1module.exports = {
2 roots: ['src'], 2 roots: ['src'],
3 testPathIgnorePatterns: [
4 'node_modules/',
5 'recipes/',
6 'src/internal-server',
7 ]
3}; 8};
diff --git a/package.json b/package.json
index 8134be385..b97312e3d 100644
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
20 "lint": "eslint --quiet --fix src", 20 "lint": "eslint --quiet --fix src",
21 "manage-translations": "node ./src/i18n/manage-translations.js", 21 "manage-translations": "node ./src/i18n/manage-translations.js",
22 "prebuild": "gulp build", 22 "prebuild": "gulp build",
23 "build": "npx electron-builder --publish onTag", 23 "build": "npx electron-builder",
24 "rebuild": "npx electron-rebuild", 24 "rebuild": "npx electron-rebuild",
25 "commit": "git-cz", 25 "commit": "git-cz",
26 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", 26 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",