1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
Commit graph

123 commits

Author SHA1 Message Date
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
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
Bert Belder
52830414da ci: make the sanitize build fast again (#2280)
sccache doesn't work for cache debug builds at the moment, because it
doesn't support the `-Xclang -fdebug-compilation-dir` flag that has been
added by the most recent V8 upgrade.

This patch should make the asan/lsan job on Travis CI fast again.
2019-05-03 12:54:25 -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
Bartek Iwańczuk
8978870808 Rename test targets (#2262) 2019-05-01 09:48:56 -04: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
Ryan Dahl
9831a440ca Disable arm test again
getting this failure on travis:
https://travis-ci.com/denoland/deno/jobs/186518015

  $ $CARGO_TARGET_DIR/aarch64-unknown-linux-gnu/release/deno tests/002_hello.ts
  qemu: Unsupported syscall: 278
  qemu: Unsupported syscall: 278
  Compiling file:///home/travis/build/denoland/deno/tests/002_hello.ts
2019-03-20 18:54:47 -04:00
andy finch
cdfd32dd74 Re-implement init scripts in core (#1958)
Re-enables arm64 CI test
2019-03-18 20:03:37 -04:00
andy finch
b711a8d047 CI jobs should fail quicker on bad test_format or lint (#1954) 2019-03-18 17:01:08 -04:00
Ryan Dahl
1e3509df42 disable arm64 test 2019-03-15 10:58:18 -04:00
andy finch
8c7a12d1b2 Add basic Arm64 build to CI (#1887) 2019-03-08 13:11:05 -05:00
Ryan Dahl
19d4ba70f7
Upgrade Node to v10 on Travis (#1850) 2019-02-27 15:28:45 -05:00
Ryan Dahl
0b0d962eb9
Revert "Rewrite tools/format.py in deno (#1528)" (#1752)
tools/format.ts is making CI flaky and it's difficult to run right now.
Reverting to tools/format.py

This reverts commit f19622e768.
2019-02-12 15:20:32 -05:00
Yoshiya Hinosawa
d26655371b fix: improve formatting (#1732) 2019-02-11 12:57:26 -05:00
Ryan Dahl
c26cf4f812
travis: cache buildtools dir (#1703) 2019-02-07 16:46:19 -05:00
Ryan Dahl
aace768474
Upgrade sccache binaries to 0.2.8 (#1576)
Binaries are directly from
https://github.com/mozilla/sccache/releases/tag/0.2.8
2019-01-26 02:49:14 -05:00
JaePil Jung
7f88b5fff3 Minor code cleanups (#1570) 2019-01-24 10:54:43 -05:00
Yoshiya Hinosawa
f19622e768 Rewrite tools/format.py in deno (#1528)
Note: findFiles and findFilesWalk are borrowed from the previous
attempt of @pseudo-su (#1434)
2019-01-17 15:09:44 -05:00
Ryan Dahl
ac6ac5037f Update sccache.exe (fixes #1526) (#1529)
* Update sccache.exe (fixes #1526)

* fix
2019-01-15 18:18:02 +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
a7271b7fe5 ci: use RUST_BACKTRACE=full 2019-01-03 09:45:40 -05:00
Ryan Dahl
66a603cb73 travis: remove -j2 flags 2019-01-03 09:45:40 -05:00
Ryan Dahl
531619305b travis: set -e 2018-12-24 11:31:17 -05:00
Ryan Dahl
105a5193b5 Parallelize travis
Splits into 4 jobs: gn linux, gn mac, cargo linux, LSAN linux.
2018-12-20 15:32:12 -05:00
Bert Belder
1cd18a9ac6
ci: run benchmarks before attempting to deploy them to github pages
The 'script' key in the deploy section that is supposed to run the
benchmarks isn't doing anything. Because of this, Travis bumps its head
when trying to deploy a non-existing directory to github pages, which
makes that our master branch is now consistently red.

This patch restores the setup that worked before.

This partially reverts commit aa66ef98ea.
2018-12-20 03:29:12 +01: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
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
Ryan Dahl
79b4140a77 travis: remove use_sysroot 2018-12-13 14:36:37 -05:00
Ryan Dahl
0bec0fa594 Remove leaks from snapshot_creator 2018-12-03 19:34:01 -08:00
Ryan Dahl
8373046719 Add LSAN build to travis.
For now it only runs test_cc and has to filter out a test which leaks.
However we will expand this over time until the entire build is LSAN clean.
2018-12-03 15:31:06 -08:00
Ryan Dahl
daa84646e1 travis: test rust version before rustup 2018-11-30 15:07:13 -08:00
Ryan Dahl
60a3b98ba0 Don't use use_custom_libcxx=false on travis. 2018-11-27 15:47:31 -08:00
Aladeen
1a876a70de travis should immediately fail when lint or test_format fails (#1172)
Fixes #1104
2018-11-08 09:19:37 -08: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
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
Ryan Dahl
47c96a6152 CI should fail when code isn't formatted. 2018-10-21 13:59:53 -07:00
ztplz
b809a82fd9 Add missing copyrights (#1024) 2018-10-19 15:25:29 -04:00
Ryan Dahl
fda7aaa10e Use node v8 on Travis.
Apparently OSX defaults to v6 and Linux to v8.
v6 does not properly run //js/testing due to async usage.
2018-10-11 20:29:43 -04:00
Bert Belder
6b77acf39d
ci: set RUST_BACKTRACE=1 2018-10-03 05:35:38 -07:00