-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
68 lines (62 loc) · 2.09 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
62
63
64
65
66
67
68
language: c++
matrix:
include:
- os: linux
sudo: required
- os: osx
env:
global:
- CCACHE_CPP2=yes
- CCACHE_SLOPPINESS=time_macros
- V8_ARCHIVE_NAME=v8-${TRAVIS_OS_NAME}-x64.tar.gz
cache:
ccache: true
if: tag IS present
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CXX="g++-5" CC="gcc-5"
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- libatspi2.0-dev
install:
- |
# Install ccache (if necessary) and set it up.
if [[ "$TRAVIS_OS_NAME" == "osx" && ! $(which ccache) ]]; then
brew install ccache
export PATH="/usr/local/opt/ccache/libexec:$PATH"
fi
ccache --version | head -n 1
ccache --max-size=5G
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- export PATH="$(pwd)/depot_tools:$PATH"
- fetch v8
- cd v8
- git fetch origin ${TRAVIS_TAG}
- git checkout ${TRAVIS_TAG}
- gclient sync
- cd ..
script:
- cd v8
- gn gen out.gn/lib --args=''"$(cat ../args.${TRAVIS_OS_NAME}.gn)"''
- ninja -C out.gn/lib v8_monolith
- cd ..
before_deploy:
- tar czf ${V8_ARCHIVE_NAME} v8/out.gn/lib/obj/*.a v8/include/
deploy:
provider: releases
overwrite: true
api_key:
secure: DpfmH2l6z4TLtGmzp9jtK9nhBYAJV8+siNtdtx844qg2zePlGPunSauSQiw4gfFyx+nWl+RyIGX/Jd5IP8mWHY5JlrfgCWvyZoNl2XULbxrkNnAAqfFPv1OQVD+12NFQOIGOCmN9LMZPEX34zKJoQG+ImJgs/o3s9vO2DmvswMBPEPPtP6SEkVKw2t5eefX7ZgwO5mKblm6YVXzhyDS7qFEMkgBjNY0dYYV5eZJLejLsbRTa1KL2HMmcQrrWA5PD5W8tf9ePmaL3YIHSgnpXZLUrhZJ9DicG2eHMDpxgBbAoS1qrL3dWjcr09v5UERY2k3tW2UKTv8x3CFE8Ayq8BOMz+2GIQ2e7LgEXoqVpelWAJcrUI5IyrFyhK6LY6y4u7xlJTAPKy4KV6fkhBqSYnIXaIHITfZo/G/mvhajqXscMU4PG8eCzp66AKgtoJUdEl4EKAx4Qk7oE+VyM5nzM8fzuh7pmilBkSPeLyNRj4ujhptRfmmoq9utKO3C3Jovb0+7N4sbZi50s9YoSertTf9pnHS4OSX1biRPOupxsrf3ncF6qga88rIBGs0/LR14lP0TdOdZYtMh4QMYz5FWa23B6omsoMQwL2Of6hNV4chRDOYkVkKxebMUvaMusLKthvXnss0fLZAhqe4zLP83Q5+fMQy+73MzeXFHjQ0IzLh8=
file: ${V8_ARCHIVE_NAME}
skip_cleanup: true
on:
tags: true
repo: superfly/libv8