-
Notifications
You must be signed in to change notification settings - Fork 63
/
.travis.yml
24 lines (21 loc) · 941 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
os : linux
sudo: required
matrix:
include:
- env: OS='centos:7' OSTYPE='rpm'
- env: OS='centos:latest' OSTYPE="rpm"
- env: OS='fedora:latest' OSTYPE="rpm"
- env: OS='ubuntu:16.04' OSTYPE="deb"
- env: OS='ubuntu:18.04' OSTYPE="deb"
- env: OS='ubuntu:20.04' OSTYPE="deb"
- env: OS='debian:stretch' OSTYPE="deb"
- env: OS='debian:buster' OSTYPE="deb"
before_install:
- docker pull $OS
script:
- echo "OS is $OS"
- if [ "$OSTYPE" = "rpm" ]; then
docker run -it $OS /bin/sh -c "curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/rpm/update-nodejs-and-nodered > nr.sh && printf '%s\n' Y N Y | bash nr.sh";
else
docker run -it $OS /bin/sh -c "apt-get update && apt-get -y install curl sudo lsb-release && curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered > nr.sh && printf '%s\n' Y Y Y | bash nr.sh";
fi