mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-19 17:14:40 +00:00
feature: migrate to azure pipelines
This commit is contained in:
parent
573237dc81
commit
50412d80e8
35
.travis.yml
35
.travis.yml
@ -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
|
@ -2,7 +2,7 @@
|
||||
|
||||
[](https://npmjs.com/package/embark)
|
||||
[](https://gitter.im/embark-framework/Lobby)
|
||||
[](https://travis-ci.org/embark-framework/embark)
|
||||
[](https://dev.azure.com/embark-framework/Embark/_build/latest?definitionId=1&branchName=master)
|
||||
[](https://ci.appveyor.com/project/iurimatias/embark/branch/master)
|
||||

|
||||

|
||||
|
40
azure-pipelines.yml
Normal file
40
azure-pipelines.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user