wasmer/.travis.yml

74 lines
1.8 KiB
YAML
Raw Normal View History

2019-11-10 14:26:11 -06:00
arch:
- arm64
language: rust
2019-12-18 15:36:27 -05:00
install: travis_retry
2019-11-10 14:26:11 -06:00
rust:
- nightly-2019-12-19
2019-11-10 14:26:11 -06:00
2019-11-20 20:04:47 -08:00
cache:
directories:
- /home/travis/.sccache/
2019-11-20 21:24:11 -08:00
- /home/travis/.cargo/bin/
2019-11-20 20:04:47 -08:00
2019-11-10 14:26:11 -06:00
script:
2019-11-20 20:04:47 -08:00
# Sccache
2019-11-20 20:12:48 -08:00
# - curl -L https://github.com/mozilla/sccache/releases/download/0.2.10/sccache-0.2.10-x86_64-unknown-linux-musl.tar.gz | tar xzf -
# - export RUSTC_WRAPPER=`pwd`/sccache-0.2.10-x86_64-unknown-linux-musl/sccache
2019-12-18 15:36:27 -05:00
- test -f /home/travis/.cargo/bin/sccache || travis_retry cargo install sccache
2019-11-20 20:28:04 -08:00
- export RUSTC_WRAPPER=/home/travis/.cargo/bin/sccache
2019-11-20 20:04:47 -08:00
- mkdir -p /home/travis/.sccache/
- export SCCACHE_DIR="/home/travis/.sccache/"
- SCCACHE_ERROR_LOG=`pwd`/sccache.log RUST_LOG=debug $RUSTC_WRAPPER --start-server
- $RUSTC_WRAPPER -s
# Tests
2019-11-10 14:51:06 -06:00
- make spectests-singlepass
2019-11-20 20:04:47 -08:00
2019-11-22 09:55:31 -08:00
before_deploy:
2019-11-20 20:04:47 -08:00
# Release
- make release-singlepass
2020-02-29 08:45:24 -08:00
- mkdir -p artifacts
# Make capi
- make test-capi-singlepass
- make capi-singlepass
- make build-capi-package
- cp ./wasmer-c-api.tar.gz ./artifacts/$(./scripts/capi-name.sh)
2020-02-28 11:11:31 -08:00
# Build WAPM
- make build-wapm
# Make package
2020-02-20 11:59:44 -08:00
- make build-install-package
- cp ./wasmer.tar.gz ./artifacts/$(./scripts/binary-name.sh)
2019-11-22 09:55:31 -08:00
# before_deploy:
# # Set up git user name and tag this commit
# - git config --local user.name "Syrus Akbary"
# - git config --local user.email "syrus@wasmer.io"
# - export TRAVIS_TAG="0.10.2"
# # - git tag $TRAVIS_TAG
2019-11-20 20:04:47 -08:00
deploy:
provider: releases
file_glob: true
file: artifacts/*
api_key: $GITHUB_OAUTH_TOKEN
# This is set to the previous artifacts are not deleted by travis
skip_cleanup: true
2019-11-20 21:24:11 -08:00
on:
2019-11-22 09:55:31 -08:00
tags: true
# branch: feature/singlepass-aarch64
2019-11-10 14:51:06 -06:00
addons:
apt:
packages:
2019-11-10 14:58:55 -06:00
- cmake
branches:
only:
2019-11-22 09:55:31 -08:00
- master
- staging
- trying
2019-11-22 12:23:11 -08:00
# Making sure Travis runs on new Tags
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
- /^v\d+\.\d+(\.\d+)?(-\S*)?$/