-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcircle.yml
40 lines (32 loc) · 954 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
machine:
environment:
IMPORT_PATH: "github.com/egnwd/$CIRCLE_PROJECT_REPONAME"
DATABASE_URL: "postgres://ubuntu:@127.0.0.1:5432/circle_test"
PATH: "$HOME/.cargo/bin:$PATH"
CARGO_FLAGS: "--features sandbox"
dependencies:
cache_directories:
- '~/.npm'
- '~/.cargo'
- '~/.multirust'
- 'client/node_modules'
- 'runner/target'
override:
- sudo apt-get install libseccomp-dev libseccomp2
- mkdir -p "/home/ubuntu/.go_workspace/src/$IMPORT_PATH"
- rsync -azC --delete ./ "/home/ubuntu/.go_workspace/src/$IMPORT_PATH/"
- gem install 'platform-api'
- npm install -g gulp
- curl https://sh.rustup.rs -sSf | bash -s -- -y --no-modify-path --default-toolchain nightly
- ./build_all.sh
test:
override:
- test -z "$(gofmt -l .)":
pwd: server
- go test -v -race ./...:
pwd: server
deployment:
master:
branch: /.*/
commands:
- ./circle_deploy.sh