feature: migrate to azure pipelines

This commit is contained in:
Andre Medeiros 2019-03-27 14:09:56 -04:00 committed by Iuri Matias
parent 3b396cf0c0
commit 1107138cf5
3 changed files with 41 additions and 36 deletions

View File

@ -1,35 +0,0 @@
language: node_js
os:
- linux
- osx
node_js:
- "8"
- "10"
cache: yarn
before_install:
- |
echo installing IPFS
IPFS_VER=0.4.18
pushd "$PWD" &>/dev/null
mkdir -p ~/Downloads && cd ~/Downloads
if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
URL="https://dist.ipfs.io/go-ipfs/v${IPFS_VER}/go-ipfs_v${IPFS_VER}_linux-amd64.tar.gz"
fi
if [[ "$TRAVIS_OS_NAME" = "osx" ]]; then
URL="https://dist.ipfs.io/go-ipfs/v${IPFS_VER}/go-ipfs_v${IPFS_VER}_darwin-amd64.tar.gz"
fi
curl -O -L "$URL" && unset IPFS_VER URL
tar xzvf go-ipfs* && export PATH="$PWD/go-ipfs:$PATH"
popd &>/dev/null
ipfs init
- |
echo installing Yarn
YARN_VER="1.12.3"
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "$YARN_VER"
unset YARN_VER
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
- yarn --version
install:
- echo embark installation managed by package.json script 'ci'
script:
- npm run ci:full

View File

@ -2,7 +2,7 @@
[![npm](https://img.shields.io/npm/dm/embark.svg)](https://npmjs.com/package/embark) [![npm](https://img.shields.io/npm/dm/embark.svg)](https://npmjs.com/package/embark)
[![Gitter](https://img.shields.io/gitter/room/embark-framework/Lobby.svg)](https://gitter.im/embark-framework/Lobby) [![Gitter](https://img.shields.io/gitter/room/embark-framework/Lobby.svg)](https://gitter.im/embark-framework/Lobby)
[![Build Status](https://travis-ci.org/embark-framework/embark.svg?branch=master)](https://travis-ci.org/embark-framework/embark) [![Build Status](https://dev.azure.com/embark-framework/Embark/_apis/build/status/embark-framework.embark?branchName=master)](https://dev.azure.com/embark-framework/Embark/_build/latest?definitionId=1&branchName=master)
[![Build status](https://ci.appveyor.com/api/projects/status/nnq38x2hi3q11o44/branch/master?svg=true)](https://ci.appveyor.com/project/iurimatias/embark/branch/master) [![Build status](https://ci.appveyor.com/api/projects/status/nnq38x2hi3q11o44/branch/master?svg=true)](https://ci.appveyor.com/project/iurimatias/embark/branch/master)
![Open PRs](https://img.shields.io/github/issues-pr-raw/embark-framework/embark.svg) ![Open PRs](https://img.shields.io/github/issues-pr-raw/embark-framework/embark.svg)
![Closed PRs](https://img.shields.io/github/issues-pr-closed-raw/embark-framework/embark.svg) ![Closed PRs](https://img.shields.io/github/issues-pr-closed-raw/embark-framework/embark.svg)

40
azure-pipelines.yml Normal file
View File

@ -0,0 +1,40 @@
strategy:
matrix:
Node 8 / macOS:
nodeVersion: '8.x'
imageName: 'macos-10.13'
IPFS_URL: 'https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_darwin-amd64.tar.gz'
Node 8 / Linux:
nodeVersion: '8.x'
imageName: 'ubuntu-16.04'
IPFS_URL: 'https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_linux-amd64.tar.gz'
Node 10 / macOS:
nodeVersion: '10.x'
imageName: 'macos-10.13'
IPFS_URL: 'https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_darwin-amd64.tar.gz'
Node 10 / Linux:
nodeVersion: '10.x'
imageName: 'ubuntu-16.04'
IPFS_URL: 'https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_linux-amd64.tar.gz'
pool:
vmImage: $(imageName)
steps:
- task: NodeTool@0
inputs:
versionSpec: $(nodeVersion)
displayName: 'Install Node.js'
- script: |
pushd /tmp
curl -L "$IPFS_URL" -o ipfs.tar.gz
tar -xvzf ipfs.tar.gz
export PATH=$(pwd)/go-ipfs:$PATH
popd
ipfs init
echo "##vso[task.setvariable variable=PATH]$PATH"
displayName: 'Install IPFS'
- script: npm run ci:full
displayName: Tests