forked from Haiyang-Sun/nodeprof.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 1018 Bytes
/
.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
language: cpp
compiler:
- clang
before_install:
- |
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TRAVIS_COMMIT_RANGE="FETCH_HEAD...$TRAVIS_BRANCH"
fi
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(\.md$)' || {
echo "Only docs were updated, stopping build process."
exit
}
- sudo add-apt-repository -y ppa:h-rayflood/llvm;
- sudo apt-get update -qq
- wget http://h620.inf.usi.ch/nodeprof.js/labsjdk-8u172.tgz
- tar xvf labsjdk-8u172.tgz
- git clone https://github.com/graalvm/mx.git
install:
- sudo apt-get install --allow-unauthenticated -qq clang-3.9;
- export CXX="clang++-3.9";
before_script:
- export JAVA_HOME=$TRAVIS_BUILD_DIR/labsjdk1.8.0_172-jvmci-0.46
- export PATH=$PATH:$TRAVIS_BUILD_DIR/mx
script:
- mx sforceimports
- mx build
- mx test-all
- cd ../graal/vm
- mx --dy nodeprof,/substratevm --force-bash-launchers --disable-polyglot build
- cd -
- mx test-all --svm
- cp snapshot/nodeprof.jar build/
- mx test-all