2018-01-14 13:04:32 +03:00
|
|
|
sudo: required
|
2017-12-23 04:05:19 +03:00
|
|
|
dist: trusty
|
2018-01-13 14:42:52 +03:00
|
|
|
|
|
|
|
addons:
|
2019-10-18 12:35:40 +03:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
2018-01-13 14:42:52 +03:00
|
|
|
|
2017-12-23 04:05:19 +03:00
|
|
|
language: rust
|
|
|
|
rust:
|
2019-10-18 12:35:40 +03:00
|
|
|
- nightly
|
2018-11-22 11:28:23 +03:00
|
|
|
|
|
|
|
# Need to cache the whole `.cargo` directory to keep .crates.toml for
|
|
|
|
# cargo-update to work
|
2017-12-23 04:05:19 +03:00
|
|
|
cache:
|
2018-11-22 11:28:23 +03:00
|
|
|
directories:
|
|
|
|
- /home/travis/.cargo
|
|
|
|
# But don't cache the cargo registry
|
|
|
|
before_cache:
|
|
|
|
- rm -rf /home/travis/.cargo/registry
|
2018-01-13 14:42:52 +03:00
|
|
|
|
2018-01-12 10:53:06 +03:00
|
|
|
git:
|
2019-10-18 12:35:40 +03:00
|
|
|
submodules: false
|
2018-01-12 10:53:06 +03:00
|
|
|
before_install:
|
2019-10-18 12:35:40 +03:00
|
|
|
- sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules
|
|
|
|
- git submodule update --init --recursive
|
2018-01-12 10:53:06 +03:00
|
|
|
|
2018-11-15 15:43:04 +03:00
|
|
|
install:
|
2019-12-28 05:25:54 +03:00
|
|
|
- npm install browserslist
|
2019-10-18 12:35:40 +03:00
|
|
|
- cargo test --no-run --color always --all --all-features
|
2018-11-15 15:43:04 +03:00
|
|
|
|
2017-12-23 04:05:19 +03:00
|
|
|
script:
|
2019-12-19 07:08:52 +03:00
|
|
|
- cargo check --color always --all --all-features --all-targets
|
2019-10-18 12:35:40 +03:00
|
|
|
- RUST_BACKTRACE=full cargo test --color always --all --all-features
|
2019-12-24 16:53:48 +03:00
|
|
|
- (cd ecmascript/parser && RUST_BACKTRACE=full cargo test --release --color always --all-features)
|
2018-11-15 15:43:04 +03:00
|
|
|
|
|
|
|
before_deploy:
|
2019-10-18 12:35:40 +03:00
|
|
|
- CARGO_TARGET_DIR=$HOME/cargo-target cargo doc --color always
|
2018-11-15 15:43:04 +03:00
|
|
|
|
2017-12-23 04:05:19 +03:00
|
|
|
after_success:
|
2018-03-02 09:10:08 +03:00
|
|
|
# Temporarily disabled because cargo tarpaulin does not set CARGO_MANIFEST_DIR.
|
|
|
|
#
|
2019-10-18 12:35:40 +03:00
|
|
|
# - bash <(curl https://raw.githubusercontent.com/xd009642/tarpaulin/master/travis-install.sh)
|
2018-03-02 09:10:08 +03:00
|
|
|
# - |
|
|
|
|
# cargo tarpaulin --all --ignore-tests --out Xml &&
|
|
|
|
# bash <(curl -s https://codecov.io/bash)
|
2018-11-10 12:15:15 +03:00
|
|
|
# - '[ $TRAVIS_PULL_REQUEST = false ] &&
|
|
|
|
# [ "$TRAVIS_BRANCH" == "master" ] &&
|
|
|
|
# ./.travis/docs.sh'
|
|
|
|
deploy:
|
2018-11-17 12:01:29 +03:00
|
|
|
local_dir: $HOME/cargo-target/doc
|
2018-11-16 15:17:36 +03:00
|
|
|
repo: swc-project/rustdoc
|
|
|
|
target_branch: gh-pages
|
2018-11-10 12:15:15 +03:00
|
|
|
provider: pages
|
|
|
|
skip_cleanup: true
|
|
|
|
github_token: $GH_TOKEN
|
2019-10-25 04:11:24 +03:00
|
|
|
email: kdy1997.dev@gmail.com
|
2018-11-10 12:15:15 +03:00
|
|
|
name: "강동윤"
|
|
|
|
on:
|
|
|
|
branch: master
|
|
|
|
|
2017-12-23 04:05:19 +03:00
|
|
|
notifications:
|
2018-01-27 09:14:53 +03:00
|
|
|
email: never
|
2019-10-18 12:35:40 +03:00
|
|
|
slack:
|
|
|
|
secure: rJ4xuH2auOcENKwxAM+0K08IufQ5HY5nFxTHAnSW82bQQfnP9D2mwo1782b2Jo05rt72FzbRBBEqqhC2vU5Mzs8btdtcl4CsEZLEZ5JGcV8G/Xq4Wkug6xk65LvzrfW6v9ZNdsdXc41KCbbalCDouJR3KkQ3RDQBQviG1nQzI0GsyuraMqTH7aKwZh4S4U/PRAalriW3eMoLw3al4mn3X4S60mAmmLs9bO4glUwMXsc68630ItEt+u2lPGXFj3LaWFkmD9nMSWCbAfAibZWThtqZogSxOEEsE+nW//HTXzICsic5s50JsIvwCXPqpAWDALGJhSTt+gSsrGFtCVhRJ1VOCcG/Y1ttGtsii3eeJ9yGgGt5F4ywbofQH9Decc5MWnKLiWDKPkTLDUV573fexvc4kgHYk0JtSz3q/5jVe6FwCwg1YNKcKW9A28sIoBxvgt5FOWwrwDhl7Ha0HX9gV0ylE88uaR/5OPzl5kXrjlaR3eua5EqaJ1lkezZvyRffJJJA07BxoF0eI5cQnR8jrw5PmybJpJWHXN48gd2CmGj3YB+JwiLpRAlWtkyKhM62UnQihN2h7mHcvwygGG8AGTk9mdWBkUYXxahZ+PPQHb4Mip/QXWdfK0DTAd52CLsYjW+Wc0xxW6jwEff3GaDaRDxU6IjWBmEo74XCRPqUiPk=
|
2017-12-23 04:05:19 +03:00
|
|
|
env:
|
|
|
|
global:
|
2018-11-05 07:12:52 +03:00
|
|
|
- CASHER_TIME_OUT=600
|
2019-01-07 13:43:47 +03:00
|
|
|
- RUST_MIN_STACK=16777216
|
2018-03-01 08:16:47 +03:00
|
|
|
- CARGO_INCREMENTAL=0
|
2018-01-13 15:23:46 +03:00
|
|
|
- RUSTFLAGS="--cfg procmacro2_semver_exempt"
|
2018-01-13 15:20:17 +03:00
|
|
|
- secure: Z4RSNlpg/12Qx2fIjS+7TToYxPJQgK70X7u9A5lJiCIa0JfzWCxr1ZEKXfAVLG9o4nQok+nWOZa+vxR1IgyUVnf6oSanjjWl1pSRbvccxMS799NvHmGzIAiqSKAlxiSJuxf7MQbs1XBuI3XahsWLfXGPo7vPT6sKe4AAf9gT6igJr61D5hpHkVIXK7P6rnrWQALQYplyaox0NlU9UlqSXXBjdJfp3138rl7FIeYRsMMow44unBNPvs+mhVP8PWpeFWeop0jxbNbTHwnJUbCm4ZWrvqnJ/m70IMlBMN1AskLmz4KeXOhPx+XR9VtdWBX4q8lJ7s9J0hMBxrEnxgiYVBPMlLoEX+wW3zwZ5F+DQs7uLpRHYRUpxpi/7ZuQjp+uT3mN9PMMSvbHwHLH2r/CC9olKYWySXIsGsGVyyMnZeUwvgzwxiYLoeCWe4zZY99zc7jvGKbSmk0RtPu6hApPwL5A6novXbXL2QsXzqqeWpgMLmZyb7KYhM5IGIAB1oPQIqI++Re9Z+/ea/DRSUJOsA96yRQ+vVbiuClrVgDhaAaJOGYCtR1XZ5N2zRb9+Spu/ECtfisLOb9Xs1584DyRbqG69nRdjuscjYOTFZUlOoOeFvuADY65Jt0kF6u7g8NIDkJ1ROb3heKQtY/bAQUrBNUJydOQnn5tBwn8Z618+Ac=
|
2018-01-14 08:44:32 +03:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
# This is where pull requests from "bors r+" are built.
|
|
|
|
- staging
|
|
|
|
# This is where pull requests from "bors try" are built.
|
|
|
|
- trying
|
2018-01-16 05:54:42 +03:00
|
|
|
# This is required to update docs.
|
2018-11-05 07:12:52 +03:00
|
|
|
- master
|