From 97247483f9acd99a47661338873288f3749423ad Mon Sep 17 00:00:00 2001 From: William Petit Date: Mon, 24 Jul 2017 18:38:32 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20du=20processus=20de=20co?= =?UTF-8?q?nstruction=20des=20paquets=20via=20Drone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 4 ++-- .tamarin/prebuild | 10 ++++++++++ Makefile | 8 ++++---- 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100755 .tamarin/prebuild diff --git a/.drone.yml b/.drone.yml index 531b20a..f848706 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,9 +1,9 @@ --- pipeline: test: - image: alpine:3.6 + image: node:6-alpine commands: - - apk add --no-cache nodejs nodejs-npm firefox-esr + - apk add --no-cache firefox-esr - npm install - npm test package-64: diff --git a/.tamarin/prebuild b/.tamarin/prebuild new file mode 100755 index 0000000..541d532 --- /dev/null +++ b/.tamarin/prebuild @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -o pipefail +set -e + +# Install NodeJS into the container +apt-get update +apt-get install --yes --no-install-recommends curl ca-certificates +curl --silent --location https://deb.nodesource.com/setup_6.x | bash - +apt-get install --yes nodejs diff --git a/Makefile b/Makefile index e28d7da..1b60032 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ endif all: build +clean: + rm -rf node_modules + rm -rf dist + build: - apt-get update - apt-get install --yes --no-install-recommends curl ca-certificates - curl --silent --location https://deb.nodesource.com/setup_6.x | bash - - apt-get install --yes nodejs npm install --ignore-scripts ARCH=$(ELECTRON_ARCH) npm run build