forked from polymec/polyglot-dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.19 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
language: c
sudo: required
dist: trusty # Ubuntu 14.04.
compiler:
- clang
- gcc
env:
- DEBUG=0 MPI=0
- DEBUG=0 MPI=1
- DEBUG=1 MPI=0
- DEBUG=1 MPI=1
addons:
apt:
# Travis whitelist of packages.
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-trusty
packages:
- cmake
- gcc
- clang
- libopenmpi-dev
- openmpi-bin
- gfortran
- wget
deploy:
provider: s3
access_key_id: $S3_ACCESS_KEY_ID
secret_access_key: $S3_SECRET_KEY
bucket: polymec-dev.travis-ci
region: us-west-2
skip_cleanup: true
local_dir: latest
upload-dir: polyglot-dev
acl: public_read
script:
- pushd $HOME && wget https://s3-us-west-2.amazonaws.com/polymec-dev.travis-ci/polymec-dev/polymec-$CC-debug%3D$DEBUG-mpi%3D$MPI.tar.gz && tar xzvf polymec-$CC-debug=$DEBUG-mpi=$MPI.tar.gz && popd
- make config polymec="$HOME/polymec-$CC-debug=$DEBUG-mpi=$MPI" && make -j4 install && make test
after_success:
- mkdir -p latest
- tar czvf polyglot-$CC-debug=$DEBUG-mpi=$MPI.tar.gz polymec-$CC-debug=$DEBUG-mpi=$MPI/*
- mv polyglot-$CC-debug=$DEBUG-mpi=$MPI.tar.gz latest
after_failure:
- cat build/*/Testing/Temporary/LastTest.log