vitess.io/vitess@v0.16.2/dev.env (about) 1 # No shebang line as this script is sourced from an external shell. 2 3 # Copyright 2019 The Vitess Authors. 4 # 5 # Licensed under the Apache License, Version 2.0 (the "License"); 6 # you may not use this file except in compliance with the License. 7 # You may obtain a copy of the License at 8 # 9 # http://www.apache.org/licenses/LICENSE-2.0 10 # 11 # Unless required by applicable law or agreed to in writing, software 12 # distributed under the License is distributed on an "AS IS" BASIS, 13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 # See the License for the specific language governing permissions and 15 # limitations under the License. 16 17 # Plese ensure dev.env is written in a way which is POSIX (bourne) 18 # shell compatible. 19 # - Some build systems like rpm require the different scriptlets used 20 # to build a package to be run under a POSIX shell so non-POSIX 21 # syntax will break that as dev.env will not be sourced by bash.. 22 23 source ./build.env 24 25 export VTPORTSTART=6700 26 27 28 # Add chromedriver to path for Selenium tests. 29 PATH=$(prepend_path "$PATH" "$VTROOT/dist/chromedriver") 30 31 # Node path. 32 PATH=$(prepend_path "$PATH" "$VTROOT/dist/node/bin") 33 export PATH 34 35 # According to https://github.com/etcd-io/etcd/blob/a621d807f061e1dd635033a8d6bc261461429e27/Documentation/op-guide/supported-platform.md, 36 # currently, etcd is unstable on arm64, so ETCD_UNSUPPORTED_ARCH should be set. 37 if [ "$(uname -m)" = aarch64 ]; then 38 export ETCD_UNSUPPORTED_ARCH=arm64 39 fi