1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-22 15:06:54 -05:00
Commit graph

74 commits

Author SHA1 Message Date
Ryan Dahl
718a2e8281
Set RUSTC_WRAPPERf in travis and appveyor (#2978) 2019-09-19 15:35:44 -04:00
Ryan Dahl
56ac638d93
Remove test.py, use cargo test as test frontend (#2967)
Fixes #2933
2019-09-19 14:48:05 -04:00
Bert Belder
29b9f90d90
Use shallow submodules, don't clone Typescript recursively 2019-09-17 18:38:51 +02:00
Christian Moritz
1a6c4b644b
ci: use Node.js v12 on Appveyor (#2943) 2019-09-15 21:59:34 +02:00
Bert Belder
dcf2d1405f
appveyor: download sccache before attempting to start it 2019-09-12 19:38:38 +02:00
Bert Belder
152de0129e
appveyor: do not explicitly configure GN/Ninja environment
Users shouldn't have to do this manually, so we want to configure CI
such that it fails if our build scripts don't set it up automatically.
2019-09-12 19:38:38 +02:00
Bert Belder
e2421f78f3
appveyor: upgrade git to v2.23.0 2019-09-12 19:38:33 +02:00
Bert Belder
c7db26cfec
Clean up and remove dead code from .appveyor.yml 2019-09-12 08:43:03 -07:00
Ryan Dahl
dd70d8622b
Upgrade V8 to 7.9.8 (#2907)
//build was updated and our patch rebased:
https://github.com/denoland/chromium_build/tree/20190910_win_clang_depfile

V8 has removed the binaries third_party/v8/buildtools/*/gn.sha1 and started 
using CIPD. In this patch, I've hacked in the original .sha1 files and continue to
use download_from_google_storage instead of the new CIPD. This will be fixed
in later work.
2019-09-10 19:18:31 -04:00
Ryan Dahl
8f171c101a
Appveyor: Add target/release to cache, like travis (#2899) 2019-09-10 14:45:23 -04:00
Ryan Dahl
0879992218
Fix Appveyor's sccache --stop-server problem (#2896)
The problem is seen here: https://ci.appveyor.com/project/deno/deno/builds/27283032

```
sccache --stop-server
Stopping sccache server...
sccache : error: couldn't connect to server
At line:1 char:1
+ sccache --stop-server
+ ~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (error: couldn't connect to server:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

caused by:
No connection could be made because the target machine actively refused it.
 (os error 10061)
Command executed with exception:  (os error 10061)
```
2019-09-09 16:59:46 -04:00
Ryan Dahl
acaff6d056
Remove tools/build.py (#2865)
Testing regression: ASAN build removed.
2019-09-06 20:32:58 -04:00
Ryan Dahl
d43b43ca78
Refactor snapshot build (#2825)
Instead of using core/snapshot_creator.rs, instead two crates are
introduced which allow building the snapshot during build.rs.

Rollup is removed and replaced with our own bundler. This removes
the Node build dependency. Modules in //js now use Deno-style imports
with file extensions, rather than Node style extensionless imports.

This improves incremental build time when changes are made to //js files
by about 40 seconds.
2019-09-02 17:07:11 -04:00
Ryan Dahl
de713e42c8
Upgrade to rust 1.37.0 (#2786) 2019-08-16 20:49:00 -04:00
Ryan Dahl
3971dcfe10
Use system rustfmt instead of fixed binary (#2701) 2019-07-31 17:11:37 -04:00
Bert Belder
db5c66a638 Upgrade rust to v1.36.0 2019-07-11 14:37:00 -04:00
andy finch
83fe397016 update rust version for ci (#2599) 2019-06-28 16:26:54 -04:00
Andy Hayden
5960e398ec make tests quieter (#2468)
Don't mix every http request in with the tests output.
Don't print that the file servers are starting unless
-vv flag is passed.

Capture the output of run with run_output which returns
stdout, stderr and exit_code. Test against this rather
than relying on sys.exit.
2019-06-08 07:46:57 -04:00
Bartek Iwańczuk
43c6c1a9f5 Refactor test infrastructure (#2432)
* use subclass of unittest.TestCase for all test cases

* allow to run single test file (eg. python tools/integration_tests.py)

* test filtering (via --pattern/-p CLI flag)

* use common CLI parser for all tests:
  usage: test.py [-h] [--failfast] [--verbose] [--executable EXECUTABLE]
               [--release] [--pattern PATTERN] [--build-dir BUILD_DIR]

  optional arguments:
  -h, --help            show this help message and exit
  --failfast, -f        Stop on first failure
  --verbose, -v         Verbose output
  --executable EXECUTABLE
                        Use external executable of Deno
  --release             Test against release executable
  --pattern PATTERN, -p PATTERN
                        Run tests that match provided pattern
  --build-dir BUILD_DIR
                        Deno build directory

* respect NO_COLOR variable
2019-06-03 12:35:55 -04:00
Andy Hayden
8fb44eba5b chore: refactor python tests to use unittest (#2414)
Move every test to a method on DenoTestCase.
test.py is a single TestSuite of every TestCase.

Add a Spawn context manager for http_server,
this is explicitly used where it's needed.
Each python test file can now be run independently
without needing to manually run http_server.

Add --help and consistent flags using argparse for
each python test, including --failfast.

Use ColorTextTestRunner so that '... ok' is green.
2019-05-30 16:40:40 -04:00
Bartek Iwańczuk
ac8c6fec5b Refactor unit test runner (#2294)
Properly discovers the permissions needed for each test.
2019-05-08 19:15:24 -04:00
Bert Belder
da428b52a1
Bump required rustc version to 1.34.1 2019-05-03 17:13:47 +02:00
Bert Belder
cfff8a9c1b
ci: run clippy 2019-05-03 03:47:57 +02:00
Ryan Dahl
6bece270b2
Upgrade CI to Node v12 (#2193) 2019-04-24 20:33:53 -04:00
Ryan Dahl
c9614d86c1
Move //libdeno to //core/libdeno (#2015)
Fixes some sed errors introduced in c43cfe.

Unfortunately moving libdeno required splitting build.rs into two parts,
one for cli and one for core.

I've also removed the arm64 build - it's complicating things at this
re-org and we're not even testing it. I need to swing back to it and get
tools/test.py running for it.
2019-03-30 14:45:36 -04:00
Ryan Dahl
94405bb617
Fix clippy errors and upgrade Rust to 1.33.0 in CI (#1945) 2019-03-20 18:55:52 -04:00
Bert Belder
25359bcc03
ci: upgrade git on appveyor to version v2.21.0.windows.1 2019-03-04 21:01:52 -08:00
Yoshiya Hinosawa
d26655371b fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
Ryan Dahl
7d278a0383
appveyor: Remove dead code (#1621) 2019-01-30 17:20:56 -05:00
JaePil Jung
7f88b5fff3 Minor code cleanups (#1570) 2019-01-24 10:54:43 -05:00
Bert Belder
bf63f97eee
ci: work around appveyor cache bug
It keeps restoring an old cache. This renames the affected directory
in an attempt to work around that.
2019-01-17 01:38:27 +01:00
Bert Belder
eab457ef95
ci: upgrade rust to version 1.31.1 2019-01-14 05:03:04 +01:00
Bert Belder
56824411fa
ci: cargo build --locked 2019-01-14 02:18:18 +01:00
Ryan Dahl
e809673cec AppVeyor: Disable DENO_BUILD_PATH cache.
Seems to be necessary to get the previous commits to compile correctly.
2019-01-03 09:45:40 -05:00
Ryan Dahl
a7271b7fe5 ci: use RUST_BACKTRACE=full 2019-01-03 09:45:40 -05:00
Bert Belder
26794c623c
ci: change S3 access key 2018-12-20 02:23:49 +01:00
Bert Belder
aac92cb70e
ci: start sccache early and throw away the S3 access key
This avoids accidentally leaking the key in the build log.
2018-12-20 02:23:49 +01:00
Bert Belder
0ff5aa0a33
appveyor: make Cargo use sccache when building deps 2018-12-19 18:05:38 +01:00
Bert Belder
3631e614b2
ci: build with Cargo before building with Ninja 2018-12-19 17:50:29 +01:00
Bert Belder
73e80b0763
build: make cargo build work 2018-12-19 17:50:25 +01:00
Ryan Dahl
aa66ef98ea
travis: Set CARGO_HOME to third_party/rust_crates (#1370)
Adds prebuilt hyperfine and sccache binaries 

Only build test_cc for LSAN

Add Cargo.lock

Only run benchmarks in master
2018-12-18 21:09:30 -05:00
Ryan Dahl
7a0d9370e8 Load sccache from S3 on CI 2018-12-18 15:15:08 -05:00
Bert Belder
d67733c34d
appveyor: place cargo and rustup in the same cache
This avoids the problem that when one of the caches is restored and the
other isn't, Rust doesn't get reinstalled, but it also isn't usable,
crashing the CI.
2018-11-07 03:55:20 +01:00
Bert Belder
ec17239f46
cargo: build in Cargo's out dir if DENO_BUILD_PATH is not set
Plus some minor improvements and clean-ups:

* Resolve DENO_BUILD_PATH to an absolute path if necessary.
* Rename DENO_BUILD_PATH to GN_OUT_DIR in places where it is supposed to
  be set by the build system (and not a user configuration variable).
* Output Cargo `rerun-if-*-changed` instructions first, so even if the
  build itself fails, configuration changes will still trigger a re-run
  of build.rs.
* Remove TODOs that are impossible.
* Re-run build.rs when the flatbuffer definition file changes.
2018-11-01 14:18:18 +01:00
Bert Belder
b73b651612
build: remove absolute path 2018-11-01 13:34:16 +01:00
Ryan Dahl
198e396ead
Support cargo check (#1128)
- Based on code from @qti3e and @piscisaureus in #724 and #1125
  respectively.
- TODO The DENO_BUILD_PATH env var must be supplied and must be an
  absolute path, this restriction should be removed in future work.
2018-10-31 11:11:10 -07:00
Bert Belder
fe97217fa8
ci: peg rust version to 1.30.0 2018-10-26 19:09:38 +02:00
Bert Belder
243a3ba2d0
appveyor: fix logic in Get-SaveCache 2018-10-25 22:48:08 +02:00
Ryan Dahl
fd68f85ce8 libdeno: deno_new should take a snapshot parameter. 2018-10-24 14:52:38 -07:00
Bert Belder
4ceb205512
Bundle pywin32 in third_party 2018-10-23 16:29:46 +02:00