1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/.travis.yml

69 lines
2.6 KiB
YAML
Raw Normal View History

language: c++
2018-06-19 06:54:24 -04:00
branches:
only:
- master
2018-05-23 14:29:14 -04:00
env:
global:
2018-08-01 19:58:11 -04:00
- CARGO_PATH=$HOME/.cargo/
- RUSTUP_PATH=$HOME/.rustup/
# is_debug, use_allocator, and ccache are used to speed travis.
# use_custom_libcxx=false and use_sysroot=false seem to be required to build on
# Ubuntu 14.04
# Help: How do you wrap long lines here?
- DENO_BUILD_ARGS="is_debug=false use_allocator=\"none\" use_custom_libcxx=false use_sysroot=false"
- DENO_BUILD_PATH=$HOME/out/Default
- DENO_BUILD_MODE=debug
# ccache needs the custom LLVM to be in PATH and other variables.
- PATH=$TRAVIS_BUILD_DIR/third_party/llvm-build/Release+Asserts/bin:$CARGO_PATH/bin:$PATH
- CCACHE_CPP2=yes
- CCACHE_SLOPPINESS=time_macros
cache:
ccache: true
directories:
- $CARGO_PATH
- $RUSTUP_PATH
- third_party/v8/build/linux/debian_sid_amd64-sysroot/
- third_party/v8/third_party/llvm-build/
install: |
2018-08-01 19:58:11 -04:00
# Install Rust.
2018-08-02 19:13:02 -04:00
# TODO(ry) Include rustc in third_party https://github.com/denoland/deno/issues/386
2018-08-01 19:58:11 -04:00
rustc --version
if [ $? != 0 ]; then
curl -sSf https://sh.rustup.rs | sh -s -- -y
fi
before_script:
- ccache -s
- ./tools/setup.py
2018-05-14 03:06:09 -04:00
script:
- ./tools/lint.py
- ./tools/build.py -j2
- ./tools/test.py $DENO_BUILD_PATH
jobs:
include:
- stage: test
- stage: release
script: |
# build release binary
env DENO_BUILD_ARGS="use_custom_libcxx=false use_sysroot=false" \
DENO_BUILD_MODE=release \
./tools/build.py -j2
# test release binary
2018-08-18 11:46:40 -04:00
env DENO_BUILD_MODE=release ./tools/test.py
before_deploy: |
# gzip and name release to denote platform
gzip -c $DENO_BUILD_PATH/deno > $DENO_BUILD_PATH/deno_linux_x64.gz
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: nm/XSUqQkucsgrTqHhZvVzzGrNsiagQyvy4ozqIcuI9BIENJ7upV2HKy0q+lE0j3iwTLXEVFEQ40hnG166nVTgVjIpxoGcVZvMTqAQFus9gVzbA71fAfAQL+nVlIRsdrSJOvsz1BHLKUgZ7UwyciApduaBDgm+mwXtMty5SHDotTc6mX4bz4UceMG4W7WXFcrWwWz+oFz9r8rYW1aKXcCQOms8eshbCtA3LzJtzUIN9NCE+bWf7QGRtz65aKy26MA/mTEAivQQ/J3ueXn4BzulpATHaSwOy5bvc2HGq5YjVJk1RQI7wqr4ONAtFWyMNAxB4JJ+g1XcN6oscoelpQgVWM2GxEblOZ+HSZAhpYiUuCQiKVe4eF238VQpn0BKw1dPEj1UWf5DHUMdcDFxeBfv1vIge5qhb+fpJTGKXfy91+DlwzM+JMBwqkXnuPFoPbh1lDLDKWB8UPGt07o+Y6tdZytr82kCoMaaHFqAVXYb0iBvG0Bw3WfzpwUsURGU08rw1pFnofnC74IyHGbcJ/+u39GzWTlCNGKce7OgEn16MzGe8QzpVmnO5+WX/uBhDHUyvDZkZHGZWHi19gQaUqDlZ4F3lSe4LMgpjEN23Ovv4AWT8bD2lbVr0XhsMlrcMw5n+RhjNDgadDw3dV9F2MHlZBpp1kYNaVqDkv5nIltYA=
file: "$DENO_BUILD_PATH/deno_linux_x64.gz"
on:
repo: denoland/deno