37 lines
989 B
YAML
37 lines
989 B
YAML
dist: xenial
|
|
language: node_js
|
|
node_js:
|
|
- "10"
|
|
env:
|
|
global:
|
|
- CC_TEST_REPORTER_ID=979056b20f7c89193ed7b4cdcd6bb6252231f069171fd73b072d0da6f5dd2338
|
|
addons:
|
|
apt:
|
|
sources: ['ubuntu-toolchain-r-test']
|
|
packages: ['cmake', 'g++-5']
|
|
cache:
|
|
cargo: true
|
|
yarn: true
|
|
directories:
|
|
- node_modules
|
|
compiler:
|
|
- clang
|
|
before_install:
|
|
- curl -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=nightly -y
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
- chmod +x ./cc-test-reporter
|
|
- export PATH=$HOME/.yarn/bin:$HOME/.cargo/bin:$(yarn global bin):$PATH
|
|
before_script:
|
|
- ./cc-test-reporter before-build
|
|
script:
|
|
- yarn polkadot-dev-travis-build
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
deploy:
|
|
skip_cleanup: true
|
|
provider: script
|
|
script: yarn polkadot-dev-travis-deploy
|
|
on:
|
|
branch: master
|