1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Fix ccache in travis (and update readme)

This commit is contained in:
Ryan Dahl 2018-05-29 01:35:06 -04:00
parent fd31f5d26d
commit 1d71f93e2f
2 changed files with 7 additions and 28 deletions

View file

@ -1,29 +1,9 @@
language: go
go:
- 1.9.2
before_cache:
- ccache -s
- mv $GOPATH/src/github.com/ry/v8worker2/out $V8WORKER2_OUT
cache:
directories:
- $HOME/.ccache
- $PROTOBUF_ROOT
- $V8WORKER2_OUT
# Adding the following makes it fail with:
# $ go get ./...
# dispatch.go:5:2: no Go files in /home/travis/gopath/src/github.com/ry/v8worker2
#- $GOPATH/src/github.com/ry/v8worker2/out
language: c++
cache: ccache
env:
global:
- USE_CCACHE=1
- PROTOBUF_ROOT=$HOME/protobuf
- V8WORKER2_OUT=$HOME/v8worker2_out
before_install: |
# ccache
unset CCACHE_DISABLE
mkdir -p $HOME/.ccache
export PATH=/usr/lib/ccache:$PATH
# protobuf
export PATH=$PROTOBUF_ROOT/bin:$PATH
if ! [ -x $PROTOBUF_ROOT/bin/protoc ]; then
@ -37,10 +17,6 @@ before_install: |
install:
- env
- go get -d github.com/ry/v8worker2
- |
if [ -d $V8WORKER2_OUT ]; then
mv $V8WORKER2_OUT $GOPATH/src/github.com/ry/v8worker2/out
fi
- ( cd $GOPATH/src/github.com/ry/v8worker2 && ./build.py --use_ccache )
- go get -u github.com/golang/protobuf/proto
- go get -u github.com/spf13/afero

View file

@ -8,14 +8,17 @@ A JavaScript runtime using V8 6.8 and Go.
* No package.json, no npm. Not backwards compatible with Node.
* imports reference source code URLs only.
* Imports reference source code URLs only.
```
import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts"
import { log } from "./util.ts"
```
* File system and network access can be controlled in order to run sandboxed
code. Defaults to read-only file system access.
code. Defaults to read-only file system access. Access between V8
(unprivlaged) and Golang (privlaged) is only done via serialized messages
defined in this protobuf: https://github.com/ry/deno/blob/master/msg.proto
This makes it easy to audit.
* Single executable:
```