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
Bert Belder
9e317c61d7
travis: don't cache unnecessary cargo and rustup files
2018-09-26 10:25:59 -07:00
Bert Belder
07d5035dd7
travis: name CARGO_HOME and RUSTUP_HOME env vars correctly
...
Because this is what rustup and cargo actually use:
https://doc.rust-lang.org/cargo/reference/environment-variables.html
2018-09-26 10:25:58 -07:00
Bert Belder
1fe474ba53
travis: use sccache to cache rust targets
2018-09-26 10:25:58 -07:00
Bert Belder
f42849744b
travis: save homebrew/ccache to cache, set ccache size to 1GB
2018-09-24 17:36:14 -07:00
Kevin (Kun) "Kassimo" Qian
1729bdb0d7
Add thread count benchmark ( #811 )
2018-09-24 18:12:52 -04:00
Bert Belder
56acb6fa0e
travis: fix the build, attempt 2
2018-09-22 12:27:50 -04:00
Bert Belder
6b868ebba4
travis: fix github pages deploy condition
2018-09-22 08:42:59 -04:00
Bert Belder
06c2e084ff
travis: run benchmarks on linux, deploy to github pages
2018-09-22 01:31:54 -07:00
Bert Belder
82ca6538b1
travis: clean up & tweaks
2018-09-22 01:31:49 -07:00
Bert Belder
516e1da54c
Revert "Add benchmark tools ( #777 )"
...
This reverts commit 3ad48bdb3e
.
2018-09-21 15:18:44 -07:00
Yoshiya Hinosawa
3ad48bdb3e
Add benchmark tools ( #777 )
2018-09-21 12:06:59 -04:00
Bert Belder
4b3a8be640
travis: allow cache to be saved when build takes too long
...
Kill Ninja after 35 minutes to prevent Travis from cancelling the build
due to time-out. This allows the cache to be saved, so the build can
complete when it is attempted again.
2018-08-24 20:57:32 +02:00
Andy Hayden
0208305fcd
Add osx to travis
2018-08-24 00:06:05 -04:00
Ryan Dahl
0c907715a3
Travis: branches only master prevents building tags
...
It appears there's no way to whitelist tags in addition to master, so we
can just build all for now.
https://github.com/travis-ci/travis-ci/issues/2111
2018-08-22 14:18:09 -04:00
Ryan Dahl
cb1393cdae
Travis deploy ( #548 )
...
* Fix travis deploy / simplify build.
- No more stages, only build release mode.
- Fixes API key issue.
* Reinstate master only - testing was successful.
2018-08-21 08:42:23 -04:00
Robert Lin
2d6cb9024e
Fix travis release builds ( #539 )
2018-08-18 11:46:40 -04:00
Robert Lin
87a061785e
Travis: publish from CI ( #501 )
...
Split travis build into stages, add release stage.
2018-08-17 11:54:36 -04:00
Ryan Dahl
376f4dfcbf
travis: adjust cache
...
- cache sysroot and llvm-build so they don't have to be downloaded each time.
- Remove DENO_BUILD_PATH from cache. ccache does all the heavy lifting, no need
to cache the build dir.
2018-08-07 10:08:19 -04:00
Ryan Dahl
d63e03a8e7
Use build.py -j2 on travis.
...
Avoids OOM during rollup.
2018-08-02 23:12:49 -04:00
Ryan Dahl
d8b68648d1
Update repo links to denoland.
2018-08-02 23:12:49 -04:00
Ryan Dahl
193b3965ca
Travis: cache ~/.cargo
2018-08-02 12:49:40 -04:00
Ryan Dahl
37ec079325
Remove depot_tools from travis.
...
Fixes #399
2018-07-29 00:24:16 -04:00
Ryan Dahl
db65c723ae
Rename run_hooks.py to setup.py
...
Moves 'gn gen' into setup.py
Make tools/build.py more ergonomic.
2018-07-29 00:24:16 -04:00
Ryan Dahl
0875411267
Add tools/build.py ( #398 )
...
To allow better tab completion for ./tools/build.py
mv build_third_party.py sync_third_party.py
2018-07-24 13:42:23 -04:00
Ryan Dahl
dff5c16e85
Add tools/test.py test runner. ( #384 )
2018-07-21 19:08:24 -04:00