Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.travis.yml « node-gyp « node_modules - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f27f024f2d9a2b10659c8387601db627038fb4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
dist: xenial
language: python
cache: pip
matrix:
  include:
    - name: "Python 2.7 on Linux"
      env: NODE_GYP_FORCE_PYTHON=python2
      python: 2.7
    - name: "Python 2.7 on macOS"
      os: osx
      osx_image: xcode11
      language: shell  # 'language: python' is not yet supported on macOS
      env: NODE_GYP_FORCE_PYTHON=python2
      before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew install npm
    - name: "Node.js 6 & Python 2.7 on Windows"
      os: windows
      language: node_js
      node_js: 6  # node
      env: >-
        PATH=/c/Python27:/c/Python27/Scripts:$PATH
        NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
      before_install: choco install python2
    - name: "Node.js 12 & Python 2.7 on Windows"
      os: windows
      language: node_js
      node_js: 12  # node
      env: >-
        PATH=/c/Python27:/c/Python27/Scripts:$PATH
        NODE_GYP_FORCE_PYTHON=/c/Python27/python.exe
      before_install: choco install python2

    - name: "Node.js 6 & Python 3.7 on Linux"
      python: 3.7
      env: NODE_GYP_FORCE_PYTHON=python3 EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: nvm install 6
    - name: "Node.js 8 & Python 3.7 on Linux"
      python: 3.7
      env: NODE_GYP_FORCE_PYTHON=python3 EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: nvm install 8
    - name: "Node.js 10 & Python 3.7 on Linux"
      python: 3.7
      env: NODE_GYP_FORCE_PYTHON=python3 EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: nvm install 10
    - name: "Node.js 12 & Python 3.7 on Linux"
      python: 3.7
      env: NODE_GYP_FORCE_PYTHON=python3 EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: nvm install 12
    - name: "Python 3.7 on macOS"
      os: osx
      #osx_image: xcode11
      language: shell  # 'language: python' is not yet supported on macOS
      env: NODE_GYP_FORCE_PYTHON=python3 EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: HOMEBREW_NO_AUTO_UPDATE=1 brew install npm
    - name: "Node.js 12 & Python 3.7 on Windows"
      os: windows
      language: node_js
      node_js: 12  # node
      env: >-
        PATH=/c/Python37:/c/Python37/Scripts:$PATH
        NODE_GYP_FORCE_PYTHON=/c/Python37/python.exe
        EXPERIMENTAL_NODE_GYP_PYTHON3=1
      before_install: choco install python

install:
  #- pip install -r requirements.txt
  - pip install flake8  # pytest  # add another testing frameworks later
before_script:
  - flake8 --version
  # stop the build if there are Python syntax errors or undefined names
  - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
  # exit-zero treats all errors as warnings.  Two space indentation is OK.  The GitHub editor is 127 chars wide
  - flake8 . --count --exit-zero --ignore=E111,E114,W503 --max-complexity=10 --max-line-length=127 --statistics
  - npm install
script:
  - node -e 'require("npmlog").level="verbose"; require("./lib/find-python")(null,()=>{})'
  - npm test
  #- pytest --capture=sys  # add other tests here
notifications:
  on_success: change
  on_failure: change  # `always` will be the setting once code changes slow down