diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 08f496eeb..000000000 --- a/.travis.yml +++ /dev/null @@ -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 diff --git a/README.md b/README.md index cbf0583a0..98e1789ed 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![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) -[![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) ![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) diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..fce337ce8 --- /dev/null +++ b/azure-pipelines.yml @@ -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