Commit e98936cb authored by Markus Koschany's avatar Markus Koschany

Import Upstream version 1.0.6

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

---
init:
- set PATH=C:\Python27\Scripts;%PATH% # while python's bin is already in PATH, but pip.exe in Scripts\ dir isn't
- set PATH=C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH%
# Python doesn't seem to be able to import files from the current script's
# directory on Windows.
- set PYTHONPATH=%APPVEYOR_BUILD_FOLDER%\test
install:
- git submodule update --init
environment:
JOBS: 3
matrix:
- GENERATOR: MSYS Makefiles
CONFIG: Release
JOBS_FLAG: -j
EXE_DIR: .
DEPLOY: false
- GENERATOR: Visual Studio 14 2015
CONFIG: Release
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: true
DEPLOY_NAME: wabt-%APPVEYOR_REPO_TAG_NAME%-win32.zip
- GENERATOR: Visual Studio 14 2015 Win64
CONFIG: Debug
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: false
- GENERATOR: Visual Studio 14 2015 Win64
CONFIG: Release
JOBS_FLAG: "/m:"
EXE_DIR: '%CONFIG%'
DEPLOY: true
DEPLOY_NAME: wabt-%APPVEYOR_REPO_TAG_NAME%-win64.zip
build_script:
- cmake . -DCMAKE_BUILD_TYPE=%CONFIG% -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER% -G "%GENERATOR%"
- cmake --build . --config %CONFIG% --target install -- %JOBS_FLAG%%JOBS%
test_script:
- python test\run-tests.py -v --bindir %APPVEYOR_BUILD_FOLDER%\bin
# Must happen before artifacts step.
after_test:
- call scripts\appveyor-after-test.bat
artifacts:
- path: "%DEPLOY_NAME%"
name: wabt
deploy:
description: 'wabt release'
provider: GitHub
auth_token:
secure: lHQSdycL1FHsFKZZ0RSnYSUtRitYaLb4uxDjCSOpYHnk4gIO/0/DLu4aoU2VvD7Y
artifact: "%DEPLOY_NAME%"
on:
appveyor_repo_tag: true
deploy: true
BasedOnStyle: Chromium
* text=auto
*.c text
*.h text
*.js text
*.l text
*.md text
*.py text
*.rst text
*.sh text
*.txt text
*.y text
demo/primer.css binary
demo/libwabt.js binary
demo/third_party/codemirror/codemirror.css binary
demo/third_party/codemirror/codemirror.js binary
# Mark this test as binary so git doesn't change the line endings, since this
# test is testing \r\n.
test/parse/bad-crlf.txt binary
# Highlight tests like .wast files when displayed on GitHub.
test/**/*.txt linguist-language=WebAssembly
# Mark test-files as "vendored". This tells GitHub to exclude them when it
# calculates the repository's languages summary, and preserves the current
# classification as a C++ project. See https://git.io/vr2pO
test/**/*.txt linguist-vendored
/bin
/out
/fuzz-out
/emscripten
*.pyc
[submodule "third_party/testsuite"]
path = third_party/testsuite
url = https://github.com/WebAssembly/testsuite
[submodule "third_party/gtest"]
path = third_party/gtest
url = https://github.com/google/googletest
[submodule "third_party/ply"]
path = third_party/ply
url = https://github.com/dabeaz/ply
[style]
split_before_named_assigns = False
based_on_style = chromium
column_limit = 79
language: c
before_install:
- eval "${MATRIX_EVAL}"
- scripts/travis-before-install.sh
script:
- scripts/travis-build.sh
- scripts/travis-test.sh
matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
- os: linux
dist: trusty
sudo: required
compiler: gcc-i686
- os: linux
dist: trusty
sudo: required
compiler: clang
env: WABT_DEPLOY=clang-release
- os: linux
dist: trusty
sudo: required
compiler: clang
env: SANITIZER=asan
# Disabled because MSAN seems to have stopped working on Travis.
# - os: linux
# dist: trusty
# sudo: required
# compiler: clang
# env: SANITIZER=msan
- os: linux
dist: trusty
sudo: required
compiler: clang
env: SANITIZER=lsan
- os: linux
dist: trusty
sudo: required
compiler: clang
env: SANITIZER=ubsan
- os: osx
compiler: clang
env: WABT_DEPLOY=clang-release
# Build the .js outputs using emcc
- &test-emcc
stage: test
compiler: clang
python: 2.7
node_js: 7
language: node_js
node_js:
- node
sudo: required
services:
- docker
before_install:
- docker run -dit --name emscripten -v $(pwd):/src trzeci/emscripten:sdk-incoming-64bit bash
script:
# run binaryen.js and wasm.js tests before and after building, so we see if the bundled
# version is good too
- docker exec -it emscripten bash scripts/travis-emcc.sh
# Allow failures on the Mac bots. We'd rather not, but they are quite slow.
allow_failures:
- os: osx
compiler: clang
fast_finish: true
before_deploy:
- scripts/travis-before-deploy.sh
deploy:
provider: releases
api_key:
secure: UTs36nT7zk1E5cmv4PmsrLbfpQoCJmkQ1upBvyiUl7F2GtPpd7bn/lxN9+e6xroW3vvFTD0MAx/ylqqKHISMhUlRj3vSRW9M1JO/EKj3jQ8kqr92Nz9On5QcGJ8usMMuzq4rXW/t32XIFci25RlFTBxAVXaQq6cVbvjGzvGfvJ6V6vTtho6Pjgj2HCq3K38TYMwA6/+NiP30bV2OkYKjTRx6RCFkYUhKallr0t035GT30bgW7Zz5roLlXUXMiCt8TqY5MCcFYmKukYpLF/tp+B5MUXR0rFFoTsafOc7hWCIi9SdngkwlUFW2tbc9CD0MtNEIUpF+Pf+siXo2RKqfg9A4pdHyHTx1PIOqyDTGcMLHBrs8bsQAoO4PJy6V0WLA1PwQDajXzGfFC3O7Wg/ljOpUumaHCt8yl3/aFu0LZu1NOCZnTpu/kLMXiB1osbSPuYqO+v2j8qgS6xDWf183d9cBzqlep+Wnk2Pgoq1PX2lO08QfxJjW6o3dJkZ/4icpT8hHb4ymcIr3VI9Pl+5Gg1JiMZooZeGV/XMXDAaaO2SNELOK4Dz9eBy4d4ffgaNPZkmNIJZLEx8nISDCU+u2VLcC5FHsCT8VyjcG9JdAXwOmlv2auxhyU87buteJvsJFDavfnc4BEgHPM1xR9PVJzY3IXAOAwAXUZQPWxSKwEgQ=
file: wabt-$TRAVIS_TAG-*.tar.gz*
file_glob: true
skip_cleanup: true
on:
tags: true
condition: -n ${WABT_DEPLOY}
This diff is collapsed.
# Contributing to WebAssembly
Interested in participating? Please follow
[the same contributing guidelines as the design repository][].
[the same contributing guidelines as the design repository]: https://github.com/WebAssembly/design/blob/master/Contributing.md
Also, please be sure to read [the README.md](README.md) for this repository.
This diff is collapsed.
#
# 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.
#
.SUFFIXES:
MAKEFILE_NAME := $(lastword $(MAKEFILE_LIST))
ROOT_DIR := $(dir $(abspath $(MAKEFILE_NAME)))
USE_NINJA ?= 0
FUZZ_BIN_DIR ?= ${ROOT_DIR}/afl-fuzz
GCC_FUZZ_CC := ${FUZZ_BIN_DIR}/afl-gcc
GCC_FUZZ_CXX := ${FUZZ_BIN_DIR}/afl-g++
EMSCRIPTEN_DIR ?= ${ROOT_DIR}/emscripten
CMAKE_CMD ?= cmake
DEFAULT_SUFFIX = clang-debug
COMPILERS := GCC GCC_I686 GCC_FUZZ CLANG EMCC
BUILD_TYPES := DEBUG RELEASE
SANITIZERS := ASAN MSAN LSAN UBSAN
CONFIGS := NORMAL $(SANITIZERS) COV NO_RE2C NO_TESTS
# directory names
GCC_DIR := gcc/
GCC_I686_DIR := gcc-i686/
GCC_FUZZ_DIR := gcc-fuzz/
CLANG_DIR := clang/
EMCC_DIR := emscripten/
DEBUG_DIR := Debug/
RELEASE_DIR := Release/
NORMAL_DIR :=
ASAN_DIR := asan/
MSAN_DIR := msan/
LSAN_DIR := lsan/
UBSAN_DIR := ubsan/
NO_RE2C_DIR := no-re2c/
COV_DIR := cov/
NO_TESTS_DIR := no-tests/
# CMake flags
GCC_FLAG := -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
GCC_I686_FLAG := -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
GCC_FUZZ_FLAG := -DCMAKE_C_COMPILER=${GCC_FUZZ_CC} -DCMAKE_CXX_COMPILER=${GCC_FUZZ_CXX} -DWITH_EXCEPTIONS=ON
CLANG_FLAG := -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
EMCC_FLAG := -DCMAKE_TOOLCHAIN_FILE=${EMSCRIPTEN_DIR}/cmake/Modules/Platform/Emscripten.cmake
DEBUG_FLAG := -DCMAKE_BUILD_TYPE=Debug
RELEASE_FLAG := -DCMAKE_BUILD_TYPE=Release
NORMAL_FLAG :=
ASAN_FLAG := -DUSE_ASAN=ON
MSAN_FLAG := -DUSE_MSAN=ON
LSAN_FLAG := -DUSE_LSAN=ON
UBSAN_FLAG := -DUSE_UBSAN=ON
COV_FLAG := -DCODE_COVERAGE=ON
NO_RE2C_FLAG :=