diff options
author | dan sinclair <dj2@everburning.com> | 2018-11-14 17:48:02 -0500 |
---|---|---|
committer | Jaebaek Seo <duke.acacia@gmail.com> | 2018-11-14 17:48:02 -0500 |
commit | e04f556c2a973693348ea0dd8bf790687f4bd866 (patch) | |
tree | 5303d4ff0c3588e422e0280f7257cc9dde406e06 /kokoro | |
parent | 5d89796a571d16f2427a6b12c517cd164eef330b (diff) | |
download | amber-e04f556c2a973693348ea0dd8bf790687f4bd866.tar.gz |
Add kokoro build files. (#45)
This CL adds the build files for Linux {gcc|clang} and Mac clang builds
in both Debug and Release mode.
Issue #3
Diffstat (limited to 'kokoro')
-rw-r--r-- | kokoro/check-format/build.sh | 33 | ||||
-rw-r--r-- | kokoro/check-format/presubmit_check_format.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-clang-debug/build.sh | 20 | ||||
-rw-r--r-- | kokoro/linux-clang-debug/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-clang-debug/presubmit.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-clang-release/build.sh | 20 | ||||
-rw-r--r-- | kokoro/linux-clang-release/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-clang-release/presubmit.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-gcc-debug/build.sh | 20 | ||||
-rw-r--r-- | kokoro/linux-gcc-debug/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-gcc-debug/presubmit.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-gcc-release/build.sh | 20 | ||||
-rw-r--r-- | kokoro/linux-gcc-release/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/linux-gcc-release/presubmit.cfg | 15 | ||||
-rw-r--r-- | kokoro/macos-clang-debug/build.sh | 20 | ||||
-rw-r--r-- | kokoro/macos-clang-debug/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/macos-clang-debug/presubmit.cfg | 15 | ||||
-rw-r--r-- | kokoro/macos-clang-release/build.sh | 20 | ||||
-rw-r--r-- | kokoro/macos-clang-release/continuous.cfg | 15 | ||||
-rw-r--r-- | kokoro/macos-clang-release/presubmit.cfg | 15 |
20 files changed, 348 insertions, 0 deletions
diff --git a/kokoro/check-format/build.sh b/kokoro/check-format/build.sh new file mode 100644 index 0000000..b67091e --- /dev/null +++ b/kokoro/check-format/build.sh @@ -0,0 +1,33 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +BUILD_ROOT=$PWD +SRC=$PWD/github/amber + +# Get clang-format-5.0.0. +# Once kokoro upgrades the Ubuntu VMs, we can use 'apt-get install clang-format' +curl -L http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz -o clang-llvm.tar.xz +tar xf clang-llvm.tar.xz +export PATH=$PWD/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04/bin:$PATH + +cd $SRC +curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py -o tools/clang-format-diff.py; + +echo $(date): Check formatting... +./tools/check_code_format.sh; +echo $(date): check completed. diff --git a/kokoro/check-format/presubmit_check_format.cfg b/kokoro/check-format/presubmit_check_format.cfg new file mode 100644 index 0000000..9e6e584 --- /dev/null +++ b/kokoro/check-format/presubmit_check_format.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/check-format/build.sh" diff --git a/kokoro/linux-clang-debug/build.sh b/kokoro/linux-clang-debug/build.sh new file mode 100644 index 0000000..83f1dfb --- /dev/null +++ b/kokoro/linux-clang-debug/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/linux/build.sh DEBUG clang diff --git a/kokoro/linux-clang-debug/continuous.cfg b/kokoro/linux-clang-debug/continuous.cfg new file mode 100644 index 0000000..d227731 --- /dev/null +++ b/kokoro/linux-clang-debug/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-clang-debug/build.sh" diff --git a/kokoro/linux-clang-debug/presubmit.cfg b/kokoro/linux-clang-debug/presubmit.cfg new file mode 100644 index 0000000..d227731 --- /dev/null +++ b/kokoro/linux-clang-debug/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-clang-debug/build.sh" diff --git a/kokoro/linux-clang-release/build.sh b/kokoro/linux-clang-release/build.sh new file mode 100644 index 0000000..2b691fd --- /dev/null +++ b/kokoro/linux-clang-release/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/linux/build.sh RELEASE clang diff --git a/kokoro/linux-clang-release/continuous.cfg b/kokoro/linux-clang-release/continuous.cfg new file mode 100644 index 0000000..408477a --- /dev/null +++ b/kokoro/linux-clang-release/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-clang-release/build.sh" diff --git a/kokoro/linux-clang-release/presubmit.cfg b/kokoro/linux-clang-release/presubmit.cfg new file mode 100644 index 0000000..408477a --- /dev/null +++ b/kokoro/linux-clang-release/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-clang-release/build.sh" diff --git a/kokoro/linux-gcc-debug/build.sh b/kokoro/linux-gcc-debug/build.sh new file mode 100644 index 0000000..ead61e1 --- /dev/null +++ b/kokoro/linux-gcc-debug/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/linux/build.sh DEBUG gcc diff --git a/kokoro/linux-gcc-debug/continuous.cfg b/kokoro/linux-gcc-debug/continuous.cfg new file mode 100644 index 0000000..84fd360 --- /dev/null +++ b/kokoro/linux-gcc-debug/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-gcc-debug/build.sh" diff --git a/kokoro/linux-gcc-debug/presubmit.cfg b/kokoro/linux-gcc-debug/presubmit.cfg new file mode 100644 index 0000000..84fd360 --- /dev/null +++ b/kokoro/linux-gcc-debug/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-gcc-debug/build.sh" diff --git a/kokoro/linux-gcc-release/build.sh b/kokoro/linux-gcc-release/build.sh new file mode 100644 index 0000000..dd0bef0 --- /dev/null +++ b/kokoro/linux-gcc-release/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/linux/build.sh RELEASE gcc diff --git a/kokoro/linux-gcc-release/continuous.cfg b/kokoro/linux-gcc-release/continuous.cfg new file mode 100644 index 0000000..769ab0d --- /dev/null +++ b/kokoro/linux-gcc-release/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-gcc-release/build.sh" diff --git a/kokoro/linux-gcc-release/presubmit.cfg b/kokoro/linux-gcc-release/presubmit.cfg new file mode 100644 index 0000000..769ab0d --- /dev/null +++ b/kokoro/linux-gcc-release/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/linux-gcc-release/build.sh" diff --git a/kokoro/macos-clang-debug/build.sh b/kokoro/macos-clang-debug/build.sh new file mode 100644 index 0000000..b345eff --- /dev/null +++ b/kokoro/macos-clang-debug/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/macos/build.sh DEBUG clang diff --git a/kokoro/macos-clang-debug/continuous.cfg b/kokoro/macos-clang-debug/continuous.cfg new file mode 100644 index 0000000..901610f --- /dev/null +++ b/kokoro/macos-clang-debug/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/macos-clang-debug/build.sh" diff --git a/kokoro/macos-clang-debug/presubmit.cfg b/kokoro/macos-clang-debug/presubmit.cfg new file mode 100644 index 0000000..901610f --- /dev/null +++ b/kokoro/macos-clang-debug/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/macos-clang-debug/build.sh" diff --git a/kokoro/macos-clang-release/build.sh b/kokoro/macos-clang-release/build.sh new file mode 100644 index 0000000..73888f6 --- /dev/null +++ b/kokoro/macos-clang-release/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e # fail on error +set -x # display commands + +SCRIPT_DIR=`dirname "$BASH_SOURCE"` +source $SCRIPT_DIR/../scripts/macos/build.sh RELEASE clang diff --git a/kokoro/macos-clang-release/continuous.cfg b/kokoro/macos-clang-release/continuous.cfg new file mode 100644 index 0000000..1b0234e --- /dev/null +++ b/kokoro/macos-clang-release/continuous.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/macos-clang-release/build.sh" diff --git a/kokoro/macos-clang-release/presubmit.cfg b/kokoro/macos-clang-release/presubmit.cfg new file mode 100644 index 0000000..1b0234e --- /dev/null +++ b/kokoro/macos-clang-release/presubmit.cfg @@ -0,0 +1,15 @@ +# Copyright 2018 The Amber Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "amber/kokoro/macos-clang-release/build.sh" |