Skip to content

Commit 025e88b

Browse files
author
Ryan Munro
committed
update CI configs
1 parent 9b13b40 commit 025e88b

File tree

5 files changed

+83
-53
lines changed

5 files changed

+83
-53
lines changed

.github/workflows/nodejs.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: test
2+
on:
3+
push:
4+
branches: [master]
5+
pull_request:
6+
branches: [master]
7+
jobs:
8+
build:
9+
strategy:
10+
matrix:
11+
platform: [ubuntu-latest, windows-latest]
12+
node-version: [4.x, 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x, 12.x, 13.x, 14.x]
13+
python-version: [2.7, 3.6, 3.7, 3.8]
14+
# @TODO 2.6
15+
runs-on: ${{ matrix.platform }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: python -V && node --version
27+
- run: npm install -d
28+
# - run: npm run build --if-present
29+
- run: npm test

.travis.yml

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,60 @@
11
language: python
2+
dist: bionic
23
os:
34
- "linux"
4-
env:
5-
- NODE_VERSION="11"
6-
- NODE_VERSION="10"
7-
- NODE_VERSION="9"
8-
- NODE_VERSION="8"
9-
- NODE_VERSION="7.5"
10-
- NODE_VERSION="6.1"
11-
- NODE_VERSION="5.11"
12-
- NODE_VERSION="4.4"
13-
python:
14-
- "3.7-dev"
15-
- "3.6"
16-
- "3.5"
17-
- "3.4"
18-
- "3.3"
19-
- "3.2"
20-
- "2.7"
21-
- "2.6"
5+
jobs:
6+
include:
7+
- language: generic
8+
env: PYTHON_VERSION="2.6" NODE_VERSION="14"
9+
- language: generic
10+
env: PYTHON_VERSION="2.6" NODE_VERSION="13"
11+
- language: generic
12+
env: PYTHON_VERSION="2.6" NODE_VERSION="12"
13+
- language: generic
14+
env: PYTHON_VERSION="2.6" NODE_VERSION="11"
15+
- language: generic
16+
env: PYTHON_VERSION="2.6" NODE_VERSION="10"
17+
- language: generic
18+
env: PYTHON_VERSION="2.6" NODE_VERSION="9"
19+
- language: generic
20+
env: PYTHON_VERSION="2.6" NODE_VERSION="8"
21+
- language: generic
22+
env: PYTHON_VERSION="2.6" NODE_VERSION="7.5"
23+
- language: generic
24+
env: PYTHON_VERSION="2.6" NODE_VERSION="6.1"
25+
- language: generic
26+
env: PYTHON_VERSION="2.6" NODE_VERSION="5.11"
27+
- language: generic
28+
env: PYTHON_VERSION="2.6" NODE_VERSION="4.4"
29+
- os: windows
30+
language: node_js
31+
node_js: 12
32+
env: >-
33+
PATH=/c/Python27:/c/Python27/Scripts:$PATH
34+
NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
35+
before_install:
36+
- env
37+
- echo "WINDOWS!!!"
38+
- choco install python2
39+
- node --version
40+
- python -V
2241
before_install:
23-
- rm -rf ~/.nvm
24-
- git clone https://github.com/creationix/nvm.git ~/.nvm
25-
- source ~/.nvm/nvm.sh
42+
- env
2643
- nvm install $NODE_VERSION
44+
- |
45+
if [ "${PYTHON_VERSION}" == "2.6" ]; then
46+
sudo apt-get update
47+
sudo apt-get install -yq software-properties-common
48+
sudo add-apt-repository ppa:deadsnakes/ppa -y
49+
sudo apt-get update -q
50+
sudo apt-get install -yq python2.6
51+
sudo update-alternatives --install /usr/local/bin/python python /usr/bin/python2.6 0
52+
export PATH="/usr/local/bin:$PATH"
53+
fi
54+
- which python
55+
- which node
56+
- python -V
57+
- node --version
2758
install:
2859
- npm install -d
2960
before_script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# python-bridge [![Build Status](https://secure.travis-ci.org/Submersible/node-python-bridge.png?branch=master)](http://travis-ci.org/Submersible/node-python-bridge) [![Build Status](https://ci.appveyor.com/api/projects/status/8h64yyve684nn900/branch/master?svg=true)](https://ci.appveyor.com/project/munro/node-python-bridge/branch/master)
1+
# python-bridge [![Build Status](https://github.com/Submersible/node-python-bridge/workflows/test/badge.svg?branch=master)](https://github.com/Submersible/node-python-bridge/actions?query=workflow%3Atest+branch%3Amaster) [![Build Status](https://secure.travis-ci.org/Submersible/node-python-bridge.png?branch=master)](http://travis-ci.org/Submersible/node-python-bridge)
22

33
Most robust and simple Python bridge. [Features](#features), and [comparisons](#comparisons) to other Python bridges below, supports Windows.
44

README.ts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# python-bridge [![Build Status](https://secure.travis-ci.org/Submersible/node-python-bridge.png?branch=master)](http://travis-ci.org/Submersible/node-python-bridge) [![Build Status](https://ci.appveyor.com/api/projects/status/8h64yyve684nn900/branch/master?svg=true)](https://ci.appveyor.com/project/munro/node-python-bridge/branch/master)
1+
# python-bridge [![Build Status](https://github.com/Submersible/node-python-bridge/workflows/test/badge.svg?branch=master)](https://github.com/Submersible/node-python-bridge/actions?query=workflow%3Atest+branch%3Amaster) [![Build Status](https://secure.travis-ci.org/Submersible/node-python-bridge.png?branch=master)](http://travis-ci.org/Submersible/node-python-bridge)
22

33
Most robust and simple Python bridge. [Features](#features), and [comparisons](#comparisons) to other Python bridges below, supports Windows.
44

appveyor.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)