0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34: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 language: c++
go: cache: ccache
- 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
env: env:
global: global:
- USE_CCACHE=1
- PROTOBUF_ROOT=$HOME/protobuf - PROTOBUF_ROOT=$HOME/protobuf
- V8WORKER2_OUT=$HOME/v8worker2_out
before_install: | before_install: |
# ccache
unset CCACHE_DISABLE
mkdir -p $HOME/.ccache
export PATH=/usr/lib/ccache:$PATH
# protobuf # protobuf
export PATH=$PROTOBUF_ROOT/bin:$PATH export PATH=$PROTOBUF_ROOT/bin:$PATH
if ! [ -x $PROTOBUF_ROOT/bin/protoc ]; then if ! [ -x $PROTOBUF_ROOT/bin/protoc ]; then
@ -37,10 +17,6 @@ before_install: |
install: install:
- env - env
- go get -d github.com/ry/v8worker2 - 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 ) - ( cd $GOPATH/src/github.com/ry/v8worker2 && ./build.py --use_ccache )
- go get -u github.com/golang/protobuf/proto - go get -u github.com/golang/protobuf/proto
- go get -u github.com/spf13/afero - 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. * 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 { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts"
import { log } from "./util.ts" import { log } from "./util.ts"
``` ```
* File system and network access can be controlled in order to run sandboxed * 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: * Single executable:
``` ```