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

Commit

Permalink
Temporarily test arm and alpine prebuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
vweevers committed Apr 28, 2019
1 parent 6190f7f commit b8b9e7f
Showing 1 changed file with 1 addition and 45 deletions.
46 changes: 1 addition & 45 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,17 @@ language: node_js

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]
addons:
apt:
packages:
- xvfb
before_script:
- export DISPLAY=':99.0'
- 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]
- name: arm
os: linux
node_js: node
env: [BUILD_CMD=prebuild-arm, BUILD_GROUP=arm, NPM_CONFIG_IGNORE_SCRIPTS=1]
if: tag is present
- name: alpine
os: linux
node_js: node
env: [BUILD_CMD=prebuild-alpine, BUILD_GROUP=alpine, NPM_CONFIG_IGNORE_SCRIPTS=1]
if: tag is present

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

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

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

deploy:
provider: releases
draft: false
api_key: "$PREBUILD_TOKEN"
file: "$ARCHIVE_NAME"
skip_cleanup: true
on:
tags: true
condition: "! -z $BUILD_CMD"

0 comments on commit b8b9e7f

Please sign in to comment.