From 84eb912a11839430467e912a628a23f0367ca06b Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Thu, 20 Oct 2022 10:09:04 +0100 Subject: [PATCH 1/2] Attempt latest OS and vs versions --- .github/workflows/build-and-release.yaml | 16 ++++++++-------- .github/workflows/build-lint-test.yaml | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 8402c82ad..3a572c6ec 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -24,8 +24,8 @@ jobs: fail-fast: false matrix: os: - - macos-11 - - ubuntu-18.04 + - macos-latest + - ubuntu-latest libcurl-release: - 7.79.1 node-libcurl-cpp-std: @@ -104,8 +104,8 @@ jobs: fail-fast: false matrix: os: - - macos-11 - - ubuntu-18.04 + - macos-latest + - ubuntu-latest libcurl-release: - 7.79.1 node: @@ -187,14 +187,14 @@ jobs: retention-days: 5 build-and-release-nodejs-windows: - runs-on: windows-2019 + runs-on: windows-latest strategy: fail-fast: false matrix: node: - 16.16.0 env: - npm_config_msvs_version: 2019 + npm_config_msvs_version: 2022 npm_config_build_from_source: true steps: - name: Checkout @@ -229,7 +229,7 @@ jobs: node scripts\module-packaging.js --publish $(yarn -s node-pre-gyp reveal staged_tarball --silent) build-and-release-electron-windows: - runs-on: windows-2019 + runs-on: windows-latest strategy: fail-fast: false matrix: @@ -239,7 +239,7 @@ jobs: - 21.0.0 env: ELECTRON_VERSION: ${{ matrix.electron-version }} - npm_config_msvs_version: 2019 + npm_config_msvs_version: 2022 npm_config_build_from_source: true npm_config_runtime: "electron" npm_config_dist_url: "https://electronjs.org/headers" diff --git a/.github/workflows/build-lint-test.yaml b/.github/workflows/build-lint-test.yaml index 020a0a38e..e253be199 100644 --- a/.github/workflows/build-lint-test.yaml +++ b/.github/workflows/build-lint-test.yaml @@ -19,8 +19,8 @@ jobs: fail-fast: false matrix: os: - - macos-11 - - ubuntu-18.04 + - macos-latest + - ubuntu-latest libcurl-release: - 7.79.1 node-libcurl-cpp-std: @@ -132,8 +132,8 @@ jobs: fail-fast: false matrix: os: - - macos-11 - - ubuntu-18.04 + - macos-latest + - ubuntu-latest libcurl-release: - 7.79.1 node: @@ -232,14 +232,14 @@ jobs: - run: echo "::set-output name=run_result::success" > run_result build-and-test-nodejs-windows: - runs-on: windows-2019 + runs-on: windows-latest strategy: fail-fast: false matrix: node: - 16.16.0 env: - npm_config_msvs_version: 2019 + npm_config_msvs_version: 2022 npm_config_build_from_source: true steps: - name: Checkout @@ -269,7 +269,7 @@ jobs: } build-and-test-electron-windows: - runs-on: windows-2019 + runs-on: windows-latest strategy: fail-fast: false matrix: @@ -279,7 +279,7 @@ jobs: - 21.0.0 env: ELECTRON_VERSION: ${{ matrix.electron-version }} - npm_config_msvs_version: 2019 + npm_config_msvs_version: 2022 npm_config_build_from_source: true npm_config_runtime: "electron" npm_config_dist_url: "https://electronjs.org/headers" From d8955bbd89da25c54558ec5de85a7465ad0d0cde Mon Sep 17 00:00:00 2001 From: Filipe Freire Date: Thu, 20 Oct 2022 11:14:40 +0100 Subject: [PATCH 2/2] Remove appveyor, circleci and travis --- .appveyor.yml | 199 ------------------- .circleci/config.yml | 461 ------------------------------------------- .travis.yml | 90 --------- 3 files changed, 750 deletions(-) delete mode 100644 .appveyor.yml delete mode 100644 .circleci/config.yml delete mode 100644 .travis.yml diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index bd8140108..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,199 +0,0 @@ -# http://www.appveyor.com/docs/appveyor-yml -# mostly copied from nan appveyor.yml -## AppVeyor is used to build: -## - Electron (Win64, Win32) -## - Node.js (Win64, Win32) - -os: Visual Studio 2017 - -# Set build version format here instead of in the admin panel. -version: '{build}' - -environment: - DEBUG: 'node-libcurl' - NODE_LIBCURL_GITHUB_TOKEN: - secure: o8iCZIMbaOR5HKy9Q/ArQ6N+5LRepyRVYRtLTrxyCo2gCEXUp8xhUYjLMJmZgNu9 - NODE_LIBCURL_POSTINSTALL_SKIP_CLEANUP: 'true' - matrix: - # node.js - - nodejs_version: '10' - - nodejs_version: '12' - - nodejs_version: '14' - - nodejs_version: '16' - - nodejs_version: '17' - - nodejs_version: '16' - ELECTRON_VERSION: '15.3.0' - - nodejs_version: '16' - ELECTRON_VERSION: '14.2.0' - - nodejs_version: '16' - ELECTRON_VERSION: '13.6.1' - - nodejs_version: '16' - ELECTRON_VERSION: '12.2.2' - - nodejs_version: '16' - ELECTRON_VERSION: '11.5.0' - # - nodejs_version: '12' - # NWJS_VERSION: '0.44.5' - # - nodejs_version: '12' - # NWJS_VERSION: '0.43.6' - # - nodejs_version: '12' - # NWJS_VERSION: '0.42.6' - -# matrix: -# allow_failures: -# - nodejs_version: "11" - -platform: - - x86 - - x64 - -# git clone depth -clone_depth: 5 - -cache: - - build -> binding.gyp, LIBCURL_VERSION_WIN_DEPS - - '%USERPROFILE%\.node-gyp' - - '%USERPROFILE%\.nw-gyp' - - '%USERPROFILE%\.nw' - - '%LOCALAPPDATA%\Yarn\cache' - - '%LOCALAPPDATA%\electron\Cache' - -# Install scripts. (runs after repo cloning) -install: - # We need this because we are building libcurl with c-ares - # instead of the system DNS resolver, and on Windows, this - # means that localhost is not handled by default - - echo 127.0.0.1 localhost >> C:\Windows\System32\drivers\etc\hosts - - echo ::1 localhost >> C:\Windows\System32\drivers\etc\hosts - # Get nasm - - cinst nasm -y - - set PATH=%PROGRAMFILES%\NASM;%PATH% - # in case above does not work - # - curl -L -o nasminst.exe http://libgd.blob.core.windows.net/nasm/nasm-2.07-installer.exe - # - start /wait nasminst.exe /S - # - ps: $env:path="C:\Program Files (x86)\nasm;$($env:path)" - - - ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:Platform - - SET PATH=%cd%\node_modules\.bin\;%PATH% - # Output useful info for debugging. - - node --version - - npm --version - - yarn --version - # Check if we need to publish the package - - SET PUBLISH_BINARY=false - # we are creating a empty file named publish - - ps: if ( $env:APPVEYOR_REPO_COMMIT_MESSAGE.ToLower().Contains('[publish binary]') -OR $(git describe --tags --always HEAD) -eq $env:APPVEYOR_REPO_BRANCH ) { echo $null >> publish } - - IF EXIST "publish" SET PUBLISH_BINARY=true - # Install the curl-for-windows dependencies. - - git submodule update --init --recursive - - python deps\curl-for-windows\configure.py - - ps: | - # $ErrorActionPreference = "Stop" - - $runtime = "" - $dist_url = "" - $target = "" - - if ($null -ne $env:ELECTRON_VERSION) { - $runtime = "electron" - $dist_url = "https://electronjs.org/headers" - $target = $env:ELECTRON_VERSION - - yarn global add electron@${env:ELECTRON_VERSION} - - } elseif ($null -ne $env:NWJS_VERSION) { - $runtime = "node-webkit" - $target = $env:NWJS_VERSION - - yarn global add nw-gyp@3.6.5 - yarn global add nw@$target - # We had this issue on nw-gyp 3.6.4 - # https://github.com/nwjs/nw-gyp/issues/116 - # patch tool for Windows - # https://stackoverflow.com/a/9485089/710693 - pip install patch - # apply patch to nw-gyp fixing issue - python -m patch -d "$(yarn global dir)/node_modules/nw-gyp/src" ./scripts/ci/patches/win_delay_load_hook.cc.patch - - $arch = if ($env:PLATFORM -eq "x86") { "ia32" } else { "x64" } - - $rootFolder = "$env:USERPROFILE/.nw" - mkdir -Force $rootFolder - - $nwName = "nwjs-v$target-win-$arch" - $outputFolder = "$env:USERPROFILE/.nw/$nwName" - - if (![System.IO.File]::Exists("$outputFolder/nw.exe")) { - Write-Host "nw.exe not found on $outputFolder - Downloading it" - - $url = "https://dl.nwjs.io/v$target/$nwName.zip" - $output = "$rootFolder/$nwName.zip" - - # https://blog.jourdant.me/post/3-ways-to-download-files-with-powershell - Import-Module BitsTransfer - Start-BitsTransfer -Source $url -Destination $output - - Expand-Archive $output -DestinationPath $rootFolder - - Remove-Item –path $output - } - - $env:PATH = "$outputFolder;$env:PATH" - } - - $env:npm_config_msvs_version = "2017" - $env:npm_config_build_from_source = "true" - $env:npm_config_runtime = $runtime - $env:npm_config_dist_url = $dist_url - $env:npm_config_target = $target - - Write-Host $env:npm_config_msvs_version - Write-Host $env:npm_config_build_from_source - Write-Host $env:npm_config_runtime - Write-Host $env:npm_config_dist_url - Write-Host $env:npm_config_target - -build_script: - - yarn install --frozen-lockfile - - dir . - -# Post-install test scripts. -test_script: - # run tests - - ps: | - if ($null -ne $env:ELECTRON_VERSION) { - yarn test:electron - } else { - if ($null -ne $env:NWJS_VERSION) { - Write-Host "No tests available for nw.js, skipping tests..." - } else { - yarn ts-node -e "console.log(require('./lib').Curl.getVersionInfoString())" - yarn test - } - } - - # This is needed because powershell treats - # output to stderr as errors - # See: - # https://stackoverflow.com/q/2095088/710693 - # https://stackoverflow.com/a/12866669/710693 - # https://stackoverflow.com/a/31451481/710693 - if ($LASTEXITCODE -eq 0) { - $host.SetShouldExit(0) - } - -after_test: - - IF "%PUBLISH_BINARY%" == "true" (node-pre-gyp package testpackage --verbose) - - IF "%PUBLISH_BINARY%" == "true" (for /f "usebackq delims=" %%x in (`node-pre-gyp reveal staged_tarball --silent`) do node scripts\module-packaging.js --publish %%x) - -on_success: - - SET INSTALL_RESULT=0 - - set npm_config_fallback_to_build=false - - IF "%PUBLISH_BINARY%" == "true" (yarn install --frozen-lockfile) - - IF "%PUBLISH_BINARY%" == "true" (SET INSTALL_RESULT=%ERRORLEVEL%) - - IF NOT %INSTALL_RESULT% == 0 (for /f "usebackq delims=" %%x in (`node-pre-gyp reveal hosted_tarball --silent`) do node scripts\module-packaging.js --unpublish %%x) - - IF NOT %INSTALL_RESULT% == 0 (echo "Package unpublished since we got an error while installing it.") - - dir . - # - node-pre-gyp clean - -# Don't actually deploy. -deploy: off diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 3fff2e9ef..000000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,461 +0,0 @@ -## CircleCI is used to build: -## - Electron (linux) -## - Nwjs (linux) -## - Node.js (alpine) - -version: 2.1 - -# aliases: -# # add deps on ubuntu img -# - &install-deps -# # update automake -# - run: | -# wget ftp://ftp.gnu.org/gnu/automake/automake-1.16.1.tar.gz &> /dev/null -# tar -xzf automake-1.16.1.tar.gz && cd automake-1.16.1 -# ./configure && make && sudo make install -# # add missing packages -# - run: sudo apt-get install texinfo gperf ruby-ronn cmake - -executors: - debian: - docker: - - image: jonathancardoso/debian-ci - environment: - RECONFIGURE_NGHTTP2: 'true' - BASH_ENV: '/home/circleci/.bashrc' - LATEST_LIBCURL_RELEASE: '7.79.1' - alpine: - docker: - - image: jonathancardoso/alpine-ci - environment: - LATEST_LIBCURL_RELEASE: '7.79.1' - -orbs: - build-addon-unix-and-publish: - jobs: - build-addon: - # https://circleci.com/docs/2.0/reusing-config/#parameter-syntax - parameters: - node-version: - description: Version of Node.js - default: '' - type: string - electron-version: - description: Version of Node.js - default: '' - type: string - nwjs-version: - description: Version of Nw.js - default: '' - type: string - e: - type: executor - node-libcurl-cpp-std: - type: string - default: 'c++11' - cares-version: - type: string - default: '1.16.1' - brotli-version: - type: string - default: '1.0.7' - libcurl-version: - type: string - libidn2-version: - type: string - default: '2.1.1' - libssh2-version: - type: string - default: '1.9.0' - libunistring-version: - type: string - default: '0.9.10' - ncurses-version: - type: string - default: '6.1' - nghttp2-version: - type: string - openldap-version: - type: string - default: '2.4.47' - openssl-version: - type: string - zlib-version: - type: string - default: '1.2.11' - before-build: - description: 'Steps that will be executed before the build' - type: steps - default: [] - after-build: - description: 'Steps that will be executed before the build' - type: steps - default: [] - executor: << parameters.e >> - steps: - - checkout - # temporary fix to solve certificates issues - main docker image must be updated instead - - when: - condition: - equal: ['debian', << parameters.e >>] - steps: - - run: sudo apt-get update && sudo apt-get upgrade - - when: - condition: <> - steps: - - run: | - if [ -x "$(command -v nvm)" ]; then - nvm use <> - else - [ -f /usr/local/bin/node<> ] && ln -s /usr/local/bin/node<> /usr/local/bin/node || true - fi - - run: - name: Setup Environment Variables - command: | - echo 'export ELECTRON_VERSION="<>"' >> $BASH_ENV - echo 'export NWJS_VERSION="<>"' >> $BASH_ENV - echo 'export CARES_RELEASE="<>"' >> $BASH_ENV - echo 'export BROTLI_RELEASE="<>"' >> $BASH_ENV - echo 'export LIBCURL_RELEASE="<>"' >> $BASH_ENV - echo 'export LIBIDN2_RELEASE="<>"' >> $BASH_ENV - echo 'export LIBSSH2_RELEASE="<>"' >> $BASH_ENV - echo 'export LIBUNISTRING_RELEASE="<>"' >> $BASH_ENV - echo 'export NCURSES_RELEASE="<>"' >> $BASH_ENV - echo 'export NGHTTP2_RELEASE="<>"' >> $BASH_ENV - echo 'export OPENLDAP_RELEASE="<>"' >> $BASH_ENV - echo 'export OPENSSL_RELEASE="<>"' >> $BASH_ENV - echo 'export ZLIB_RELEASE="<>"' >> $BASH_ENV - echo 'export NODE_LIBCURL_CPP_STD="<>"' >> $BASH_ENV - #### - # Restore caches - ### - - run: - name: Create cache key file - command: | - echo "$CARES_RELEASE" >> _libs_versions - echo "$BROTLI_RELEASE" >> _libs_versions - echo "$LIBCURL_RELEASE" >> _libs_versions - echo "$LIBIDN2_RELEASE" >> _libs_versions - echo "$LIBSSH2_RELEASE" >> _libs_versions - echo "$LIBUNISTRING_RELEASE" >> _libs_versions - echo "$NCURSES_RELEASE" >> _libs_versions - echo "$NGHTTP2_RELEASE" >> _libs_versions - echo "$OPENLDAP_RELEASE" >> _libs_versions - echo "$OPENSSL_RELEASE" >> _libs_versions - echo "$ZLIB_RELEASE" >> _libs_versions - - restore_cache: - keys: - - v4-nodeV<>-electronV<>-nwjsV<>-deps-libs-{{ checksum "_libs_versions" }}-{{ checksum "yarn.lock" }} - - v4-nodeV<>-electronV<>-nwjsV<>-deps-libs-{{ checksum "_libs_versions" }}- - - - steps: <> - #### - # Build - #### - - run: - command: GIT_TAG=$CIRCLE_TAG GIT_COMMIT=$CIRCLE_SHA1 ./scripts/ci/build.sh - no_output_timeout: 40m - - steps: <> - #### - # Cache - #### - - save_cache: - key: v4-nodeV<>-electronV<>-nwjsV<>-deps-libs-{{ checksum "_libs_versions" }}-{{ checksum "yarn.lock" }} - paths: - - ~/.electron - - ~/.cache/electron - - ~/.cache/yarn - - ~/.node-gyp - - ~/.nw-gyp - - ~/deps/cares/build/<> - - ~/deps/brotli/build/<> - - ~/deps/libcurl/build/<> - - ~/deps/libssh2/build/<> - - ~/deps/libidn2/build/<> - - ~/deps/libunistring/build/<> - - ~/deps/ncurses/build/<> - - ~/deps/nghttp2/build/<> - - ~/deps/openldap/build/<> - - ~/deps/openssl/build/<> - - ~/deps/zlib/build/<> - - store_artifacts: - path: ./logs/ -# Great docs -# https://circleci.com/docs/2.0/reusing-config/#getting-started-with-config-reuse - -workflows: - build-test-deploy: - jobs: - #### - # Node 10 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-10-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '10' - libcurl-version: '7.79.1' - cares-version: '1.15.0' - nghttp2-version: '1.41.0' - openssl-version: '1.1.1g' - e: - name: alpine - #### - # Node 12 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-12-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '12' - libcurl-version: '7.79.1' - cares-version: '1.16.0' - nghttp2-version: '1.40.0' - openssl-version: '1.1.1g' - e: - name: alpine - #### - # Node 14 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-14-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '14' - libcurl-version: '7.79.1' - cares-version: '1.16.0' - nghttp2-version: '1.41.0' - openssl-version: '1.1.1g' - e: - name: alpine - #### - # Node 16 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-16-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '16' - libcurl-version: '7.79.1' - cares-version: '1.17.1' - nghttp2-version: '1.42.0' - openssl-version: '1.1.1k' - node-libcurl-cpp-std: 'c++17' - e: - name: alpine - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-16-libcurl-old - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '16' - libcurl-version: '7.50.0' - nghttp2-version: '1.42.0' - openssl-version: '1.1.1k' - node-libcurl-cpp-std: 'c++17' - e: - name: alpine - #### - # Node 17 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-node-17-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - node-version: '17' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: alpine - #### - # Electron v15 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-electron-v15-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - electron-version: '15.3.0' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Electron v14 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-electron-v14-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - electron-version: '14.2.0' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Electron v13 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-electron-v13-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - electron-version: '13.6.1' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Electron v12 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-electron-v12-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - electron-version: '12.2.2' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Electron v11 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-electron-v11-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - electron-version: '11.5.0' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Nwjs v0.58 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-nwjs-v0.58-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - nwjs-version: '0.58.0' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Nwjs v0.57 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-nwjs-v0.57-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - nwjs-version: '0.57.1' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian - #### - # Nwjs v0.56 - #### - - build-addon-unix-and-publish/build-addon: - name: build-addon-nwjs-v0.56-libcurl-latest - context: general - filters: - branches: - ignore: - - gh-pages - tags: - only: /^v.*/ - nwjs-version: '0.56.1' - libcurl-version: '7.79.1' - cares-version: '1.17.2' - nghttp2-version: '1.45.1' - openssl-version: '3.0.0' - node-libcurl-cpp-std: 'c++17' - e: - name: debian diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f7012ef1e..000000000 --- a/.travis.yml +++ /dev/null @@ -1,90 +0,0 @@ -os: - - linux - - osx -# macos version - this is the current -osx_image: xcode9.4 -# linux dist -dist: trusty -language: node_js -node_js: - - '15' - - '14' - - '12' -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - # Those are the defaults for trusty release on TravisCI - - gcc-4.8 - - g++-4.8 -matrix: - fast_finish: true - # allow_failures: - # - node_js: "11" - include: - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=12.0.0 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=11.2.3 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=10.1.0 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=9.3.3 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 ELECTRON_VERSION=8.5.3 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 NWJS_VERSION=0.52.0 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 NWJS_VERSION=0.51.2 - - os: osx - env: LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 NWJS_VERSION=0.49.2 -env: - global: - - GCC_VERSION=4.8 - - secure: d64E8XbVGHuQ0kls1oVUF1y6pnj3iqZB34roKBHAFTyWBXReC1FWLb+qEShCJicUDkeK2At7vQUz7ohMn2mL/hVXiRbuSaYuDKFx8iDeei9mTgE+iy258mSovnNvXfG72EP5+LB+UOhgmTGe0qyTALOQ6ceCgjdscul3IGWE8lw= - matrix: - - LIBCURL_RELEASE=7.73.0 LATEST_LIBCURL_RELEASE=7.73.0 - - LIBCURL_RELEASE=7.50.0 - -cache: - directories: - - $HOME/.node-gyp - - $HOME/.nw-gyp - - $HOME/.npm - - $HOME/.cache/electron - - $HOME/.cache/yarn - - $HOME/deps - # macOS Electron cache - - $HOME/Library/Caches/electron - -git: - depth: 10 - submodules: false - -# disable redundancy when building PRs -branches: - only: - - master - - develop - - /^v\d+\.\d+(\.\d+)?(-\S*)?$/ - -before_install: - # Use latest yarn - - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2 - - export PATH=$HOME/.yarn/bin:$PATH - - if [[ $TRAVIS_OS_NAME == "linux" ]]; then - export CC="gcc-${GCC_VERSION}"; - export CXX="g++-${GCC_VERSION}"; - export LINK="gcc-${GCC_VERSION}"; - export LINKXX="g++-${GCC_VERSION}"; - fi - - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then - export PUBLISH_BINARY="false"; - fi - - export PATH=$HOME/bin:$PATH - - yarn --version - - node --version -install: - - GIT_TAG=$TRAVIS_TAG GIT_COMMIT=$TRAVIS_COMMIT ./scripts/ci/build.sh -script: true