Skip to content

Commit 7693a30

Browse files
committed
Travis-CI: Install jsonlint from node/npm
1 parent c5aa7d3 commit 7693a30

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.travis.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ matrix:
2323
- kalakris-cmake
2424
- ubuntu-toolchain-r-test
2525
packages:
26+
- nodejs
27+
- npm
2628
- gfortran-6
2729
- binutils
2830
- cmake
@@ -44,6 +46,8 @@ matrix:
4446
sources:
4547
- ubuntu-toolchain-r-test
4648
packages:
49+
- nodejs
50+
- npm
4751
- gfortran-6
4852
- binutils
4953
- python-pip
@@ -64,6 +68,8 @@ matrix:
6468
sources:
6569
- ubuntu-toolchain-r-test
6670
packages:
71+
- nodejs
72+
- npm
6773
- gfortran-7
6874
- binutils
6975
- python-pip
@@ -82,6 +88,8 @@ matrix:
8288
sources:
8389
- ubuntu-toolchain-r-test
8490
packages:
91+
- nodejs
92+
- npm
8593
- gfortran-8
8694
- binutils
8795
- python-pip
@@ -100,6 +108,8 @@ matrix:
100108
sources:
101109
- ubuntu-toolchain-r-test
102110
packages:
111+
- nodejs
112+
- npm
103113
- gfortran-9
104114
- binutils
105115
- python-pip
@@ -126,7 +136,12 @@ install:
126136
- pip install --upgrade graphviz
127137
- (pip install --upgrade FoBiS.py==2.2.8 && FoBiS.py --version)
128138
- (pip install --upgrade ford==6.0.0 && ford --version)
129-
- (pip install --upgrade git+https://github.com/dmeranda/demjson.git && jsonlint --version)
139+
- export NPM_PACKAGES="${HOME}/.npm-packages"
140+
- mkdir "${HOME}/.npm-packages" || true
141+
- npm config set prefix "${HOME}/.npm-packages"
142+
- export PATH="${HOME}/.npm-packages/bin:$PATH"
143+
- npm install -g jsonlint
144+
- jsonlint --version || true # Why would you exit non-zero from --version ???!?!?! wth
130145

131146
before_script:
132147
- |

0 commit comments

Comments
 (0)