forked from Haiyang-Sun/nodeprof.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (52 loc) · 2.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
language: cpp
compiler:
- clang
matrix:
include:
- os: linux
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_install:
- eval "${MATRIX_EVAL}"
- |
if [ "${TRAVIS_BRANCH}" == "${TRAVIS_TAG}" ]; then
echo "Building a tag."
else
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)' || {
echo "Only docs were updated, stopping build process."
exit
}
fi
- sudo add-apt-repository -y ppa:h-rayflood/llvm;
- sudo apt-get update -qq
- wget https://github.com/graalvm/openjdk8-jvmci-builder/releases/download/jvmci-0.53/openjdk-8u192-jvmci-0.53-linux-amd64.tar.gz
- tar xvf openjdk-8u192-jvmci-0.53-linux-amd64.tar.gz
- git clone https://github.com/graalvm/mx.git
before_script:
- export JAVA_HOME=$TRAVIS_BUILD_DIR/openjdk1.8.0_192-jvmci-0.53
- export PATH=$PATH:$TRAVIS_BUILD_DIR/mx
script:
- mx sforceimports
- mx build
- cd ../graal/vm
- mx --dy nodeprof,/substratevm --force-bash-launchers=true --disable-polyglot build
- cd -
- mx test-specific --svm cmd-exclude
- mx test-all
deploy:
provider: releases
api_key:
secure: "ZgAJNRliSHrtT0AOv/zpzhy24DoYPAuuR8/17gpO4YgbucVrB7N6MUbLywNiI8yvnGil2xZjcFUaw/mEaz0mO4k4Il2RtEC1vOZGRU9C17kGroaMUlWsdLaNNU2dIDpsHMzFaGTerCnENzuzSo27Op2/LiNJrG++3VFT9Ab9XPq3pGBCiuzwmwDOm73uNovsskRlkVEtj1H0Xp7kfkxXXfEFZFRZl+0Pltg2l+++hj/Ay6RvHvS/QfaAMb6BAjZWQHV9DA7QV0Ezmukwoe7YlKlgOdI5aKq3fx/bBbp3fyCxnQuMjV9CzomT5lenhxhlcawBfdQXkVY+maQsc5JFnEXXFjA88ju2eIkP3TxjMJCsZipT/19QpWHhCjzcNpzjfCF6G9kDB3qMuy0FyDXtyvuHdk3HCAKzY/bfWqPzuspix99E2qHJVONdmS3lv6TgVYEbN+GhsLhqBnGl/typon3YfBZXnv8A6ntkhhiPnr0gwu/sStYR3wFFp8BqaYCpms0p2iVwwbjpKK0dsah/YZ/4WoCbbvEGSq1sx7sbjYnD8kjKBbK3ne121FAQH+ChXeNLpIrsPX9FVjezWCd1bpU4fFEjUYBkTb+P/d3fNOdj/UPGDVgRrNpUUrkY3SvIxPJ/oMGpgdEoGOGzMrvSBt3ObaEKgtaRCtWxMKdNZF8="
file: build/nodeprof.jar
skip_cleanup: true
on:
tags: true