OLD | NEW |
1 Skia-Buildbot Repository | 1 Skia-Buildbot Repository |
2 ======================== | 2 ======================== |
3 | 3 |
4 This repo contains infrastructure code for Skia. | 4 This repo contains infrastructure code for Skia. |
5 | 5 |
6 | 6 |
7 Getting the Source Code | 7 Getting the Source Code |
8 ======================= | 8 ======================= |
9 | 9 |
10 The main source code repository is a Git repository hosted at | 10 The main source code repository is a Git repository hosted at |
11 https://skia.googlesource.com/buildbot. Although it is possible to check out | 11 https://skia.googlesource.com/buildbot. Although it is possible to check out |
12 this repository directly with git clone or using gclient fetch, it is preferred
to use go get so | 12 this repository directly with git clone or using gclient fetch, it is preferred
to use go get so |
13 that the code is arranged correctly for Go. If this is your first time working o
n Go code, read | 13 that the code is arranged correctly for Go. If this is your first time working o
n Go code, read |
14 about [the GOPATH environment variable](https://golang.org/doc/code.html#GOPATH)
. Make sure that | 14 about [the GOPATH environment variable](https://golang.org/doc/code.html#GOPATH)
. Make sure that |
15 $GOPATH/bin comes before /usr/bin in your PATH. If you have GOPATH set, run: | 15 $GOPATH/bin comes before /usr/bin in your PATH. If you have GOPATH set, run: |
16 | 16 |
17 ``` | 17 ``` |
18 $ go get -u go.skia.org/infra/... | 18 $ go get -u go.skia.org/infra/... |
19 $ cd $GOPATH/src/go.skia.org/infra/ | |
20 ``` | 19 ``` |
21 | 20 |
22 This fetches the repository into your $GOPATH directory along with all the | 21 This fetches the repository into your $GOPATH directory along with all the |
23 Go dependencies. | 22 Go dependencies. |
24 Note: go.skia.org is a custom import path and will only work if used like the ex
amples | 23 Note: go.skia.org is a custom import path and will only work if used like the ex
amples |
25 [here](http://golang.org/cmd/go/#hdr-Remote_import_paths). | 24 [here](http://golang.org/cmd/go/#hdr-Remote_import_paths). |
26 | 25 |
27 Install [depot_tools](http://www.chromium.org/developers/how-tos/install-depot-t
ools). You can learn | 26 Install [depot_tools](http://www.chromium.org/developers/how-tos/install-depot-t
ools). You can learn |
28 more about using depot_tools from the | 27 more about using depot_tools from the |
29 [tutorial](http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_
tools/docs/html/depot_tools_tutorial.html). | 28 [tutorial](http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_
tools/docs/html/depot_tools_tutorial.html). |
30 Then run: | 29 Then run: |
31 | 30 |
32 ``` | 31 ``` |
33 $ cd .. | 32 $ cd $GOPATH/src/go.skia.org/ |
34 $ gclient config --name infra --unmanaged https://skia.googlesource.com/buildbot | 33 $ gclient config --name infra --unmanaged https://skia.googlesource.com/buildbot |
35 $ gclient sync | 34 $ gclient sync |
36 ``` | 35 ``` |
37 | 36 |
38 This fetches additional dependencies specified by the DEPS file. | 37 This fetches additional dependencies specified by the DEPS file. |
39 | 38 |
40 Database Setup for Testing | 39 Database Setup for Testing |
41 ========================== | 40 ========================== |
42 | 41 |
43 Tests which use the database package's testutils require you to have a MySQL ins
tance running with a | 42 Tests which use the database package's testutils require you to have a MySQL ins
tance running with a |
(...skipping 20 matching lines...) Expand all Loading... |
64 ================== | 63 ================== |
65 | 64 |
66 Install [Cloud SDK](https://cloud.google.com/sdk/). | 65 Install [Cloud SDK](https://cloud.google.com/sdk/). |
67 | 66 |
68 Install other dependencies: | 67 Install other dependencies: |
69 | 68 |
70 ``` | 69 ``` |
71 $ sudo apt-get install npm nodejs-legacy python-django redis-server | 70 $ sudo apt-get install npm nodejs-legacy python-django redis-server |
72 $ go get github.com/kisielk/errcheck | 71 $ go get github.com/kisielk/errcheck |
73 $ go get golang.org/x/tools/cmd/goimports | 72 $ go get golang.org/x/tools/cmd/goimports |
| 73 $ go get github.com/luci/luci-go/client/cmd/isolate |
74 $ sudo npm install -g polylint bower | 74 $ sudo npm install -g polylint bower |
75 ``` | 75 ``` |
76 | 76 |
77 Build from GOPATH: | 77 Build from GOPATH: |
78 | 78 |
79 ``` | 79 ``` |
80 $ cd $GOPATH/src/go.skia.org/infra/ | 80 $ cd $GOPATH/src/go.skia.org/infra/ |
81 $ make all | 81 $ make all |
82 ``` | 82 ``` |
83 | 83 |
84 Use this command to run the presubmit tests: | 84 Use this command to run the presubmit tests: |
85 | 85 |
86 ``` | 86 ``` |
87 $ ./run_unittests --short | 87 $ ./run_unittests --short |
88 ``` | 88 ``` |
OLD | NEW |