-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
60 lines (60 loc) · 3.39 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
branches:
only:
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
# Also build commits on master. Remove this if we choose to protect master
- master
language: rust
cache: cargo
sudo: false
rust:
- nightly-2019-07-19
addons:
apt:
packages:
- flex
install:
- CUDA="10.1.105-1"
- wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_${CUDA}_amd64.deb
- sudo dpkg -i cuda-repo-ubuntu1404_${CUDA}_amd64.deb
- sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/7fa2af80.pub
- sudo apt-get update
- sudo apt-get install cuda-cupti-10-1 cuda-curand-dev-10-1 libcublas-dev cuda-libraries-dev-10-1 cuda-license-10-1
before_script:
- flex --version
jobs:
include:
- stage: test
script: CUDA_HOME=/usr/local/cuda-10.1 cargo check --all --exclude telajax --all-targets --tests --benches
- script: cargo test
- script: cd backend/cuda && cargo test
- script: cd telamon-utils && cargo test
- script: cd telamon-gen && cargo test
- script: cd telamon-gen/cc_tests && cargo test
- script: cd kernels && cargo test --release
- script: cd telamon-gen && LEX="flex" cargo build --features "lex"
- script: cargo fmt --all -- --check
before_script: rustup component add rustfmt
- script: CUDA_HOME=/usr/local/cuda-10.1 cargo clippy --all --exclude telamon-mppa --exclude telajax --all-targets --tests --benches
before_script: rustup component add clippy
- stage: documentation
if: branch IN (master, staging)
script: CUDA_HOME=/usr/local/cuda-10.1 cargo doc --no-deps --all --exclude telajax
deploy:
provider: pages
local-dir: target/doc
target-branch: gh-pages
skip-cleanup: true
keep-history: true
github-token: "$GITHUB_TOKEN"
notifications:
slack:
rooms:
secure: bhOU59RYPbvA8GXYtL4JTGjKRbrOFyni2wjAV0gWQqwP9lkzYWlYDlsoHOFIR+DLhwN0Or2d5Sw47Ic3NLGrzhPOFcXNBhoRUy4QBUPWaKETEJbqjG/UvYRbfGr7ajosQdL1pDMuem8NFXdNcSCgnHu9Wgtim1EjO82rdc4YGPSCcHkfHpCncM435vXcDhtdz/ks9pF4igmJH0frhXTAkngckggaR2xx1cUAlrc4ztc03goe+uFC3Iti1QAp2DGMFx9hLvV1CjATeqSA4/65idUS0aEWccK2tNwLjp3nL3LAwwymCr4OWS8wCD0p1lk3Fvcc3FTX2fw6TfGciaFNCwAO+0FD5tJD+Uez+QllN4cufKrbwQo9ZlRP0fFsx38QJ1FeK8k/uk0hR7MzqypzkCNwG6NBI98L71P2sFvA15gELuI9sWhx655PwFzmjNwYw/zCeimp9pi+bNbYoWjckkwbN7ArwJjPt47vv/bIJbo/NrmNxFghZm4RTQW45prolMUqGO9AeIMf7oP24pPdEv3v9oH7lF/97tCBLt9Nd7LhwizK6nG/VFFCofwdIfBqlGDwJufN3UoMqVezkHqRuZa+tDgU9SuUrfAe1XnAc1+HbDzza55LM+3tzHn4sPr1jmlLIEHww2Yub4GpxBJYl+8MhusRbGhedqtpqeLk3LE=
on_success: never
on_failure: change
env:
global:
secure: ZLjUSECDu2ewLa2eJ8DepE7b3tuQxR81tbUxFtSBKKj6IVZPppzS7CUcVZxE46Xp+pug9KKApACOfqfqil5hRaSHKtqoVoOf/sYPJs+xA3JdmVBmqVYj0YViCA5WCxVU1J5BIEDVLTqJy7y3zBy8OYP2fNquNLEBUL7r0jn/+tjbuZfrwzN2PUqL/l7YyQVT/UgdpaXzVkvAcjGEL4nXpcSLb+a0g49PSQNcJhoLiYoZziUZH6buKllBzyBszBk4f/yO+wrvs334FaVw0DBbngIyUcQyzJT56eck22AJXlTl88DpJOUPakFTTJ1oa7UG6MTD46QMp2F/LK+ASNXwT5Q1OIsk67/CltZiWLXGBmdaAX2CJ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