• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JRaspass / code-golf / 236
0%

Build:
DEFAULT BRANCH: master
Ran 03 Jan 2020 07:08PM UTC
Jobs 1
Files 2
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Jan 2020 07:05PM UTC coverage: 0.0%. Remained the same
236

push

travis-ci

JRaspass
Add support for Rust lang (#133)

* Make bash scripts a little more portable

build-assets:

  `stat` may have different arguments on different platforms, e.g. Linux usually
  accepts `-c %Y` to get mtime, but macOS and BSD may not.

  Instead, use the builtin test from `bash` to see whether `routes/assets.go` is
  older than the newest file in the assets dir.

build-langs:

  This script uses associate arrays, which are only in bash >= 4. Add a simple
  check at the beginning to ensure the minimum bash version is being used.

Makefile:

  Some versions of `find` do not accept predicates without a file path. This
  simply adds "." as the argument first

* Add rust Dockerfile + add to build-langs

Includes simple wrapper script that is staged to `/usr/bin/rust` which can
compile from stdin or a file and immediately executes the program.

Also add Rust to the build, and do a little deduplication of the list of
languages being built. Strip out "rustc " prefix to get Rust version.

* Add Rust to routes + views.

Add to SQL schema, versions, and types, and update comment in `runCode`.

* Add assets for Rust

CodeMirror Rust mode and "simple" mode taken from upstream:
https://github.com/codemirror/CodeMirror

Rust logo taken from official Rust artwork repo:
https://github.com/rust-lang/rust-artwork

* Update run-lang to bind-mount /dev

`rustc` requires access to `/dev/urandom` to run, but it was not available in
the rootfs. This change to run-lang.asm bind-mounts "rootfs/dev" to existing
"/dev" so `rustc` runs happily.

Also use certain env variables that `rustc` expects in the bash wrapper, in
particular `RUSTUP_HOME` is needed to find the installed Rust toolchain, and
`PATH` is required to find `cc` which is used by `rustc` for linking.

`RUST_BACKTRACE` is used for debugging `rustc` invocations as well as debugging
the user's program, but can be removed if that seems like "cheating".

* Use devtmpfs i... (continued)

0 of 53 relevant lines covered (0.0%)

0.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 236.1 (GO111MODULE=on) 03 Jan 2020 07:08PM UTC 0
0.0
Travis Job 236.1
Source Files on build 236
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #236
  • a9bbba9a on github
  • Prev Build on master (#233)
  • Next Build on master (#237)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc