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

Commit

Permalink
Update CI build matrix for travis and appveyor (#35)
Browse files Browse the repository at this point in the history
* Update travis customized matrix

* Fix default build matrix

* Update travis build matrix

* Add AppVeyor configuration

* remove 2 targets from matrix

* Update package version

* Update xcode version from 8.2 to 7.3

* Update badges to README.md

* Update badges for both travis (Linux/OSX) and appveyor (Windows)

* Add comments on apt sources in travis config

* add file appveyor.yml to npm ignore list

* revert package version to 0.1.0
  • Loading branch information
fs-eire authored and daiyip committed Aug 10, 2017
1 parent 3c1494b commit b222147
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 21 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ test/tsconfig.json
.npmrc
.npmignore
.taskkey
.travis.yml
.travis.yml
appveyor.yml
67 changes: 47 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,49 @@
language: node_js
node_js:
- '8'
- '6'
- '4.5.0'
os:
- linux
- osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5

compiler: default
matrix:
exclude:
# Disable the default build and use customized matrix only.
- compiler: default
include:
# Node 4.5.0 Linux (Precise) G++5.4.1
- os: linux
dist: precise
node_js: '4.5.0'
compiler: g++-5
addons:
apt:
# The apt source 'ubuntu-toolchain-r-test' is for GCC 5+
# The apt source 'george-edison55-precise-backports' is for CMake 3.2+
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-5
- cmake-data
- cmake
env:
- COMPILER_OVERRIDE="CXX=g++-5 CC=gcc-5"
# Node LTS (6.x) Linux (Trusty) G++5.4.1
- os: linux
dist: trusty
node_js: '6'
compiler: g++-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
env:
- COMPILER_OVERRIDE="CXX=g++-5 CC=gcc-5"
# Node LTS (6.x) OS X (Yosemite) LLVM 6.1
- os: osx
node_js: '6'
osx_image: xcode6.4
# Node LTS (8.x) Linux (Trusty) G++6.3.0
- os: linux
dist: trusty
node_js: '8'
compiler: g++-6
addons:
apt:
Expand All @@ -25,16 +53,15 @@ matrix:
- g++-6
env:
- COMPILER_OVERRIDE="CXX=g++-6 CC=gcc-6"
# Node LTS (8.x) OS X (El Capitan) LLVM 7.3
- os: osx
node_js: '8'
osx_image: xcode7.3

before_install:
- |
if [ $TRAVIS_OS_NAME == linux ]; then
if [ "$COMPILER_OVERRIDE" == "" ]; then
#use g++5 by default
export CXX="g++-5" CC="gcc-5"
else
export ${COMPILER_OVERRIDE}
fi
export ${COMPILER_OVERRIDE}
fi
install:
- npm install cmake-js -g
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[![Build Status for Linux/MacOS](https://travis-ci.org/Microsoft/napajs.svg?branch=master)](https://travis-ci.org/Microsoft/napajs)
[![Build Status for Windows](https://ci.appveyor.com/api/projects/status/github/Microsoft/napajs?branch=master&svg=true)](https://ci.appveyor.com/project/daiyip/napajs)
[![npm version](https://badge.fury.io/js/napajs.svg)](https://www.npmjs.com/package/napajs)
[![Downloads](https://img.shields.io/npm/dm/napajs.svg)](https://www.npmjs.com/package/napajs)

# Napa.js
Napa.js is a multi-threaded JavaScript runtime built on [V8](https://github.com/v8/v8), which was originally designed to develop highly iterative services with non-compromised performance in Bing. As it evolves, we find it useful to complement [Node.js](https://nodejs.org) in CPU-bound tasks, with the capability of executing JavaScript in multiple V8 isolates and communicating between them. Napa.js is exposed as a Node.js module, while it can also be embedded in a host process without Node.js dependency.

Expand Down
26 changes: 26 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
environment:
matrix:
# Windows Server 2012 R2 Visual C++ Build Tools 2015
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
nodejs_version: 4.5.0
# Windows Server 2012 R2 Visual C++ Build Tools 2015
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
nodejs_version: LTS
# Windows Server 2016 Visual C++ Build Tools 2017
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
nodejs_version: Stable

platform:
- x64

install:
- ps: Install-Product node $env:nodejs_version $env:platform
- npm install cmake-js -g
- npm install

# Skip MSBuild stage
build: off

test_script:
- npm test
- npm run unittest

0 comments on commit b222147

Please sign in to comment.