Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Replace Ubuntu 16.04 with CentOS 7 for prebuilds #153

Merged
merged 1 commit into from
Nov 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ jobs:
include:
- os: linux
node_js: 8
env: [TEST=1]
- os: linux
node_js: 10
env: [TEST=1]
- os: linux
node_js: node
env: [TEST=1, TEST_ELECTRON=1, BUILD_CMD=prebuild, BUILD_GROUP=linux-x64]
env: [TEST_ELECTRON=1, BUILD_CMD=prebuild-linux, BUILD_GROUP=linux-x64]
addons:
apt:
packages:
Expand All @@ -20,28 +18,26 @@ jobs:
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- os: osx
node_js: 8
env: [TEST=1]
- os: osx
node_js: 10
env: [TEST=1]
- os: osx
node_js: node
env: [TEST=1, TEST_ELECTRON=1, BUILD_CMD=prebuild, BUILD_GROUP=darwin-x64]
env: [TEST_ELECTRON=1, BUILD_CMD=prebuild, BUILD_GROUP=darwin-x64]

before_install:
- export JOBS=max
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export JOBS=4; fi

script:
- if [[ ! -z "$TEST" ]]; then npm run test; fi
- npm run test
- if [[ ! -z "$TEST_ELECTRON" ]]; then npm run test-electron; fi

after_success:
- if [[ ! -z "$TEST" ]]; then npm run coverage; fi
- npm run coverage

before_deploy:
- export ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$BUILD_GROUP.tar.gz"
- npm run $BUILD_CMD -- --tag-libc
- npm run $BUILD_CMD
- file prebuilds/*/*
- tar -zcvf "$ARCHIVE_NAME" -C prebuilds .

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"coverage": "nyc report --reporter=text-lcov | coveralls",
"rebuild": "npm run install --build-from-source",
"prebuild": "prebuildify -t 8.14.0 --napi --strip",
"prebuild-linux": "prebuildify-cross -i centos7-devtoolset7 -t 8.14.0 --napi --strip",
"download-prebuilds": "prebuildify-ci download",
"hallmark": "hallmark --fix",
"dependency-check": "dependency-check --no-dev -i napi-macros . test/*.js",
Expand Down Expand Up @@ -41,6 +42,7 @@
"nyc": "^14.0.0",
"prebuildify": "^3.0.0",
"prebuildify-ci": "^1.0.4",
"prebuildify-cross": "github:prebuild/prebuildify-cross#v4.0.0",
"readfiletree": "^1.0.0",
"rimraf": "^3.0.0",
"standard": "^14.0.0",
Expand Down