forked from tdulcet/Distributed-Computing-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (30 loc) · 1.05 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
language: bash
matrix:
include:
- name: "CUDALucas"
install:
- sudo apt-get -yqq update
- sudo apt-get -yqq install cppcheck
before_script:
- sed -i '/^GPU=/,/^fi/ s/^/# /' cudalucas.sh
- sed -i '/^if ! COMPUTE=/,/^fi/ s/^/# /' cudalucas.sh
- sed -i 's/\/$COMPUTE/\/--generate-code arch=compute_35,code=sm_35 --generate-code arch=compute_50,code=sm_50/' cudalucas.sh
- sed -i '/^\.\/CUDALucas / s/^/# /' cudalucas.sh
- sed -i '/^nohup / s/^/# /' cudalucas.sh
- sed -i '/^crontab / s/^/# /' cudalucas.sh
script:
- bash -e -- cudalucas.sh password ANONYMOUS
- cd cudalucas && cppcheck --enable=all *.cu *.c *.h
- name: "Mlucas (Intel)"
arch: amd64
- name: "Mlucas (ARM)"
arch: arm64
before_script:
- sudo apt-get -yqq update
- sudo apt-get -yqq install xz-utils
- sed -i '/^[[:blank:]]*nohup / s/^/# /' mlucas.sh
- sed -i '/^crontab / s/^/# /' mlucas.sh
script:
- bash -e -- mlucas.sh password ANONYMOUS
after_script:
- bash -c 'shopt -s globstar; shellcheck -s bash **/*.sh || true'