mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
chore(travis): Use node
base, instead of cpp
(#1216)
This changes the `.travis.yml` to use the `node_js` language as a base instead of `cpp` to avoid installing & setting up node manually. Change-Type: patch
This commit is contained in:
parent
d028ed9f6c
commit
198ddb7433
27
.travis.yml
27
.travis.yml
@ -1,12 +1,24 @@
|
|||||||
language: cpp
|
language: node_js
|
||||||
sudo: false
|
sudo: false
|
||||||
|
node_js:
|
||||||
|
- "6.1.0"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- libstdc++-6-dev
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- NODE_VERSION="6.1.0"
|
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
||||||
|
- CCACHE_COMPRESS=1
|
||||||
|
- CC="clang"
|
||||||
|
- CXX="clang++"
|
||||||
matrix:
|
matrix:
|
||||||
- TARGET_ARCH=x64
|
- TARGET_ARCH=x64
|
||||||
- TARGET_ARCH=x86
|
- TARGET_ARCH=x86
|
||||||
@ -21,16 +33,7 @@ os:
|
|||||||
- osx
|
- osx
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
- npm config set spin=false
|
||||||
rm -rf ~/.nvm;
|
|
||||||
git clone --depth 1 https://github.com/creationix/nvm.git ~/.nvm;
|
|
||||||
source ~/.nvm/nvm.sh;
|
|
||||||
nvm --version;
|
|
||||||
nvm install $NODE_VERSION;
|
|
||||||
node --version;
|
|
||||||
npm --version;
|
|
||||||
npm config set spin=false;
|
|
||||||
fi
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user