forked from kenkoooo/AtCoderProblems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 1.27 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
- postgresql
addons:
postgresql: "9.6"
matrix:
include:
- language: rust
os: linux
rust: nightly
before_install:
- cd atcoder-problems-backend/
- curl -L https://github.com/mozilla/grcov/releases/download/v0.5.1/grcov-linux-x86_64.tar.bz2 | tar jxf -
before_script:
- psql -c "CREATE USER kenkoooo PASSWORD 'pass';" -U postgres
- psql -c "CREATE DATABASE test OWNER kenkoooo;" -U postgres
script:
- export CARGO_INCREMENTAL=0
- export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zno-landing-pads"
- cargo build --verbose $CARGO_OPTIONS
- RUST_TEST_THREADS=1 cargo test --verbose $CARGO_OPTIONS
- zip -0 ccov.zip `find . \( -name "atcoder_problems_backend*.gc*" \) -print`;
- RUST_BACKTRACE=1 ./grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore-dir "/*" -o lcov.info
- bash <(curl -s https://codecov.io/bash) -f lcov.info
- language: node_js
node_js: node
before_script:
- cd atcoder-problems-frontend
script:
- npm install yarn -g
- yarn
- yarn build
- yarn test --coverage
- npx codecov
- yarn lint