File tree Expand file tree Collapse file tree 3 files changed +52
-6
lines changed
Expand file tree Collapse file tree 3 files changed +52
-6
lines changed Original file line number Diff line number Diff line change 1- language : node_js
1+ language : minimal
22sudo : required
3- dist : bionic
4- node_js :
5- - 6.17.0
6- - node
3+ dist : focal
4+ services :
5+ - docker
76before_install :
8- - sudo apt install -y dbus
7+ - docker build -t node-dbus-next-test .
8+ script :
9+ - docker run -it node-dbus-next-test
Original file line number Diff line number Diff line change 1+ FROM ubuntu:20.04
2+
3+ WORKDIR /app
4+
5+ RUN echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup
6+ RUN echo 'APT::Acquire::Retries "5";' > /etc/apt/apt.conf.d/80retry
7+
8+ RUN export DEBIAN_FRONTEND=noninteractive; \
9+ export DEBCONF_NONINTERACTIVE_SEEN=true; \
10+ echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
11+ echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
12+ apt update && apt install -y --no-install-recommends \
13+ build-essential \
14+ curl \
15+ ca-certificates \
16+ git \
17+ python2 \
18+ dbus
19+
20+ ADD package.json /app
21+
22+ RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && \
23+ . /root/.nvm/nvm.sh && \
24+ for v in v6.17.1 v14.16.0; do \
25+ nvm install $v; \
26+ done ; \
27+ npm install
28+
29+ ADD . /app
30+
31+ CMD [ "make" , "test" ]
Original file line number Diff line number Diff line change 1+ .PHONY : docker-test test
2+
3+ docker-test :
4+ docker build -t node-dbus-next-test .
5+ docker run -it node-dbus-next-test
6+
7+ test :
8+ . /root/.nvm/nvm.sh ; \
9+ for v in v6.17.1 v14.16.0 ; do \
10+ nvm use $$ v ; \
11+ PYTHON=python2 npm install ; \
12+ PYTHON=python2 npm rebuild ; \
13+ dbus-run-session npm run test ; \
14+ done
You can’t perform that action at this time.
0 commit comments