summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/appveyor-after-test.bat23
-rwxr-xr-xscripts/travis-before-deploy.sh50
-rwxr-xr-xscripts/travis-before-install.sh20
-rwxr-xr-xscripts/travis-build.sh35
-rwxr-xr-xscripts/travis-common.sh22
-rwxr-xr-xscripts/travis-emcc.sh21
-rwxr-xr-xscripts/travis-test.sh61
7 files changed, 0 insertions, 232 deletions
diff --git a/scripts/appveyor-after-test.bat b/scripts/appveyor-after-test.bat
deleted file mode 100644
index 8c9114db..00000000
--- a/scripts/appveyor-after-test.bat
+++ /dev/null
@@ -1,23 +0,0 @@
-REM Copyright 2018 WebAssembly Community Group participants
-REM
-REM Licensed under the Apache License, Version 2.0 (the "License");
-REM you may not use this file except in compliance with the License.
-REM You may obtain a copy of the License at
-REM
-REM http://www.apache.org/licenses/LICENSE-2.0
-REM
-REM Unless required by applicable law or agreed to in writing, software
-REM distributed under the License is distributed on an "AS IS" BASIS,
-REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-REM See the License for the specific language governing permissions and
-REM limitations under the License.
-
-REM Set up the artifact for this build, but only if this is a tag build.
-
-IF "%DEPLOY%" == "true" (
- IF "%APPVEYOR_REPO_TAG%" == "true" (
- ren "%APPVEYOR_BUILD_FOLDER%\\bin" "wabt-%APPVEYOR_REPO_TAG_NAME%"
- 7z a %DEPLOY_NAME% "%APPVEYOR_BUILD_FOLDER%\\wabt-%APPVEYOR_REPO_TAG_NAME%\\*.exe"
- python "%APPVEYOR_BUILD_FOLDER%\\scripts\\sha256sum.py" "%DEPLOY_NAME%" > "%DEPLOY_NAME%.sha256"
- )
-)
diff --git a/scripts/travis-before-deploy.sh b/scripts/travis-before-deploy.sh
deleted file mode 100755
index f509fbff..00000000
--- a/scripts/travis-before-deploy.sh
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2018 WebAssembly Community Group participants
-#
-# 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 -o nounset
-set -o errexit
-
-SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd -P)"
-source "${SCRIPT_DIR}/travis-common.sh"
-
-sha256sum() {
- ${SCRIPT_DIR}/sha256sum.py ${1} > ${1}.sha256
-}
-
-if [[ -n ${WABT_DEPLOY:-} ]]; then
- # Rebuild the WABT_DEPLOY target so it copies the results into bin/
- make ${WABT_DEPLOY}
-
- PKGNAME="wabt-${TRAVIS_TAG}-${TRAVIS_OS_NAME}"
- mv bin wabt-${TRAVIS_TAG}
- tar -czf ${PKGNAME}.tar.gz wabt-${TRAVIS_TAG}
- sha256sum ${PKGNAME}.tar.gz
-
- # We want to store the output in the `webassembly` bucket, with the directory
- # `wabt/${TRAVIS_TAG}/${TRAVIS_OS_NAME}/`. The root directory is `gcs/` so it
- # can be recursively copied by the deployment step.
- GCS_DIR=gcs/wabt/${TRAVIS_TAG}/${TRAVIS_OS_NAME}
- mkdir -p ${GCS_DIR}
- cp wabt-${TRAVIS_TAG}/* ${GCS_DIR}
-
- # Create sha256 files for each tool.
- cd ${GCS_DIR}
- for tool in *; do
- sha256sum ${tool}
- done
- cd -
-fi
diff --git a/scripts/travis-before-install.sh b/scripts/travis-before-install.sh
deleted file mode 100755
index f5a430b2..00000000
--- a/scripts/travis-before-install.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016 WebAssembly Community Group participants
-#
-# 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.
-#
-
-if [[ ${TRAVIS_OS_NAME} = "osx" ]]; then
- brew update
-fi
diff --git a/scripts/travis-build.sh b/scripts/travis-build.sh
deleted file mode 100755
index 8e49667d..00000000
--- a/scripts/travis-build.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016 WebAssembly Community Group participants
-#
-# 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 -o nounset
-set -o errexit
-
-SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd -P)"
-source "${SCRIPT_DIR}/travis-common.sh"
-
-if [[ ${COMPILER} = "clang" && -z ${SANITIZER:-} ]]; then
- # Test building without GTest submodule
- make clang-debug-no-tests
-fi
-
-for BUILD_TYPE in ${BUILD_TYPES}; do
- if [[ -n ${SANITIZER:-} ]]; then
- make ${COMPILER}-${BUILD_TYPE}-${SANITIZER}
- else
- make ${COMPILER}-${BUILD_TYPE}
- fi
-done
diff --git a/scripts/travis-common.sh b/scripts/travis-common.sh
deleted file mode 100755
index 3f0f9baf..00000000
--- a/scripts/travis-common.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016 WebAssembly Community Group participants
-#
-# 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.
-#
-
-SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd -P)"
-ROOT_DIR="$(dirname "${SCRIPT_DIR}")"
-BUILD_TYPES="debug release"
-BUILD_TYPES_UPPER="Debug Release"
-COMPILER="${CC:=clang}"
diff --git a/scripts/travis-emcc.sh b/scripts/travis-emcc.sh
deleted file mode 100755
index 7287f870..00000000
--- a/scripts/travis-emcc.sh
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016 WebAssembly Community Group participants
-#
-# 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
-emconfigure cmake .
-emmake make -j 2
-
diff --git a/scripts/travis-test.sh b/scripts/travis-test.sh
deleted file mode 100755
index a03e132d..00000000
--- a/scripts/travis-test.sh
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2016 WebAssembly Community Group participants
-#
-# 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 -o nounset
-set -o errexit
-
-RTN=0
-SCRIPT_DIR="$(cd "$(dirname "$0")"; pwd -P)"
-source "${SCRIPT_DIR}/travis-common.sh"
-
-cd ${ROOT_DIR}
-
-log_and_run() {
- echo $*
- if ! $*; then
- echo "travis-test.sh: sub-command failed: $*"
- RTN=1;
- fi
-}
-
-run_tests() {
- log_and_run test/run-tests.py -v --bindir ${BINDIR} $* --timeout=10
- log_and_run ${BINDIR}/wabt-unittests
-}
-
-set_run_test_args() {
- local COMPILER=$1
- local BUILD_TYPE=$2
- local CONFIG=${3:-}
-
- BINDIR="out/${COMPILER}/${BUILD_TYPE}/${CONFIG}"
-}
-
-for BUILD_TYPE in ${BUILD_TYPES_UPPER}; do
- if [[ -n "${SANITIZER:-}" ]]; then
- if set_run_test_args ${COMPILER} ${BUILD_TYPE} ${SANITIZER}; then
- run_tests
- fi
- else
- if set_run_test_args ${COMPILER} ${BUILD_TYPE}; then
- run_tests
- fi
- fi
-done
-
-echo "travis-test.sh done: $RTN"
-exit $RTN