Re-enable travis to make bors work (#562)

This commit is contained in:
강동윤 2020-01-04 15:58:21 +09:00 committed by GitHub
parent c0cc2185ea
commit 78daec2c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 108 additions and 83 deletions

View File

@ -1,6 +1,15 @@
name: Cargo
on: [push, pull_request]
on:
push:
# Ignore commits created by bors
branches-ignore:
- 'staging'
- 'trying'
pull_request:
branches-ignore:
- 'staging'
- 'trying'
env:
RUST_MIN_STACK: 16777216

82
.travis.yml Normal file
View File

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

View File

@ -47,10 +47,19 @@ Become a sponsor and get your logo on our README on Github with a link to your s
<h2 align="center">Gold Sponsors</h2>
<a href="https://opencollective.com/swc/goldsponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/goldsponsor/0/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/goldsponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/goldsponsor/1/avatar.svg?requireActive=false"></a>
<h2 align="center">Silver Sponsors</h2>
<a href="https://opencollective.com/swc/silversponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/silversponsor/0/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/silversponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/silversponsor/1/avatar.svg?requireActive=false"></a>
<h2 align="center">Bronze Sponsors</h2>
<a href="https://opencollective.com/swc/silversponsor/0/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/silversponsor/0/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/silversponsor/1/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/silversponsor/1/avatar.svg?requireActive=false"></a>
<h2 align="center">Backers</h2>
[Become a backer](https://opencollective.com/swc#backer) and get your image on our README on Github with a link to your site.
@ -65,6 +74,10 @@ Become a sponsor and get your logo on our README on Github with a link to your s
<a href="https://opencollective.com/swc/backer/7/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/7/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/8/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/8/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/9/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/9/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/10/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/10/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/11/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/11/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/12/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/12/avatar.svg?requireActive=false"></a>
<a href="https://opencollective.com/swc/backer/13/website?requireActive=false" target="_blank"><img src="https://opencollective.com/swc/backer/13/avatar.svg?requireActive=false"></a>
# Documentation
@ -72,86 +85,7 @@ Check out the documentation [in the website](https://swc-project.github.io/docs/
# Features
## Parsers
- [x] es2019
- [x] jsx
- [x] typescript
## Transforms
New generation javascript to old-days javascript.
- es3
- [x] member-expression-literals
- [x] property-literals
- [x] reserved-words
- es5
- [ ] property-mutators
- es2015
- [x] arrow-functions
- [x] block-scoped-functions
- [x] block-scoping
- [x] classes
- [x] computed-properties
- [x] destructuring
- [x] duplicate-keys
- [x] for-of
- [x] function-name
- [x] instanceof
- [x] literals
- [x] new-target
- [ ] object-super
- [x] parameters
- [x] shorthand-properties
- [x] spread
- [x] sticky regex (`y` flag)
- [x] template-literals
- [ ] invalid escape sequences inside tagged template literals. (aka es2018)
- [x] typeof-symbol
- [ ] unicode-regex
- es2016
- [x] exponentiation-operator
- es2017
- [x] async-to-generator
- es2018
- [ ] async-generator-functions
- [ ] dotall-regex
- [x] object-rest-spread
- [ ] Using symbol as a key
- [x] optional-catch-binding
- [ ] unicode-property-regex
- es2019 (stage 4)
- [x] optional catch binding
- [x] big int literal
- stage 3
- [x] class fields
- [x] numeric separator
- [ ] nullish coalescing
- stage 2
- [x] decorators
- react
- [x] jsx
- preset-env
- [x] `entry` with core-js@2/3
- [ ] `usage` with core-js@2/3
It's implemented, but it's not perfect.
Please see [comparison with babel](https://swc-project.github.io/docs/comparison-babel).
# Performance

View File

@ -1,5 +1,5 @@
status = [
"Cargo",
# "continuous-integration/travis-ci/push"
# "Cargo",
"continuous-integration/travis-ci/push"
]
use_squash_merge = true