-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
67 lines (63 loc) · 2.46 KB
/
.gitlab-ci.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
61
62
63
64
65
66
67
# Copyright (C) 2020, Lawrence Berkeley National Laboratory.
# All rights reserved.
#
# This file is part of Taskworks. The full Taskworks copyright notice,
# including terms governing use, modification, and redistribution, is
# contained in the file COPYING at the root of the source code distribution
# tree.
variables:
SCHEDULER_PARAMETERS: "-C haswell --qos=debug -N1 -t 00:30:00 -A m2621"
stages:
- build
- test
build:
stage: build
# instead of calling g++ directly you can also use some build toolkit like make
# install the necessary build tools when needed
before_script:
# Install autotools
# Don't work on Cori runners, use default
# - apt update && apt -y install make autoconf automake libtool
- autoconf --version
- automake --version
- libtool --version
# Install MPI
# Don't work on Cori runners, use default
# - apt -y install mpich3
# Make dir to build dependencies
- mkdir tw_deps
# Install OpenPA
- git clone -b v1.0.4 https://github.com/pmodels/openpa.git
- pushd openpa && ./autogen.sh && ./configure --prefix=${PWD}/../tw_deps && make -j 64 && make -j 64 install && popd
# Install Argobots
- git clone -b v1.0 https://github.com/pmodels/argobots.git
- pushd argobots && ./autogen.sh && ./configure --prefix=${PWD}/../tw_deps && make -j 64 && make -j 64 install && popd
# Install libevent
- git clone -b release-2.1.12-stable https://github.com/libevent/libevent.git
- pushd libevent && ./autogen.sh && ./configure --prefix=${PWD}/../tw_deps && make -j 64 && make -j 64 install && popd
script:
- autoreconf -i
# - CC=cc ./configure --with-opa=${PWD}/tw_deps --enable-parallel --with-argobots=${PWD}/tw_deps --with-libevent=${PWD}/tw_deps
- CC=cc ./configure --with-opa=${PWD}/tw_deps --enable-parallel --with-libevent=${PWD}/tw_deps
- make -j 64
tags:
- cori
artifacts:
paths:
- config.log
# run tests using the binary built before
test:
stage: test
script:
# - autoreconf -i
# - ./configure --with-opa=${PWD}/tw_deps --enable-parallel --with-argobots=${PWD}/tw_deps
- make -j 64 tests
- make check
tags:
- cori
cache:
paths:
- "./*"
artifacts:
paths:
- test/basic/test-suite.log