-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
144 lines (138 loc) · 3.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
language: cpp
compiler: gcc
jobs:
include:
- os: linux
dist: xenial
name: Ubuntu 16.04
env:
- TARGET=linux-libgfortran3
- OUTPUT_DIRS="lib share"
addons:
apt:
packages:
- g++
- libgfortran3
- gfortran
- make
- python3.5
- python3-venv
- python3-pip
cache:
- pip
- os: linux
name: f2c
env:
- TARGET=linux-f2c
- OUTPUT_DIRS="lib share"
addons:
apt:
packages:
- g++
- f2c
- make
- python3.5
- python3-venv
- python3-pip
cache:
- pip
before_install:
- f2c -w -a -C++ -Nn1604 -Nq1200 -dsrc/eos/ src/eos/*.f
- f2c -w -a -c++ -dsrc/sme/ src/sme/*.f
- rm makefile.am
- mv makefile_f2c.am makefile.am
- os: linux
name: manylinux2010
services:
- docker
env:
- DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64
- PLAT=manylinux2010_x86_64
- TARGET=manylinux2010
- OUTPUT_DIRS="lib share"
install:
- docker pull $DOCKER_IMAGE
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io -w "/io" $DOCKER_IMAGE $PRE_CMD /io/travis/build.sh
before_script: skip
script: skip
- os: osx
name: OSX
env:
- TARGET=osx
- FORTRAN_DIR="$(/usr/local/bin/gfortran --print-file-name=)"
- LDFLAGS="-L$FORTRAN_DIR"
- OUTPUT_DIRS="lib share"
addons:
homebrew:
update: true
packages:
- gcc
- make
- automake
- autoconf
- libtool
- ccache
cache:
- pip
before_install:
- ls $FORTRAN_DIR
- alias python3="/usr/local/opt/[email protected]/bin/python3"
- alias pip3="/usr/local/opt/[email protected]/bin/pip3"
- os: linux
dist: bionic
name: Windows64
env:
- TARGET=win64
- FORTRAN_DIR="$(x86_64-w64-mingw32-gfortran --print-file-name=)"
- LDFLAGS="-L$FORTRAN_DIR"
- CXX=x86_64-w64-mingw32-gcc
- F77=x86_64-w64-mingw32-gfortran
- CONFIG_FLAGS="--build=x86_64-pc-linux-gnu --host=x86_64-w64-mingw32"
- OUTPUT_DIRS="bin share"
addons:
apt:
packages:
- g++
- gfortran
- make
- libtool
- mingw-w64
- mingw-w64-tools
- mingw-w64-common
- gfortran-mingw-w64
- gfortran-mingw-w64-x86-64
- gcc-mingw-w64
- gcc-mingw-w64-x86-64
- g++-mingw-w64
- g++-mingw-w64-x86-64
# Skip testing for Windows target
before_script: skip
script: skip
install:
- ./bootstrap
- ./configure --prefix=$PWD $CONFIG_FLAGS
- make install
- ls $OUTPUT_DIRS
before_script:
- source ~/.bashrc
- python --version
- python3 --version
- pip3 install --upgrade pip
- pip3 install -r test/requirements.txt
script:
- python3 -m pytest
before_deploy:
- mkdir -p build
- tar -czvf build/smelib_$TARGET.tar.gz $OUTPUT_DIRS
- ls build
deploy:
provider: releases
skip_cleanup: true
overwrite: true
file_glob: true
file: build/*
api_key:
secure: mVOwSNIG/LXshCZD4YzVKLKelp0qqSOzvHME+4huKHqDces3CSUIPLThvxk1/Uk3foKn1IiIcAsZaQ+LGieGCqi204nDDsjuLxuqSqoO5P9Q+Hqs81pfHV8hSMKcEGmpmzmTQt+RDBuSXyoGx8YC3d65JKyOEpgbpzScnWo79LLEYXopUnq5p2jKG15AoVWQTDbm9OnoItfic1iFwEG2KlHLEx4MOhHtn79Yhuxkya9O452s7xJu2EoC7VsN0u66bhp+NQ8/J2qCDNATRfUMCT5FMBLdK6DX0aoD3wxdXkiVYUUoev3Qw0WaqYwZwDos/1T2ttn+PGEkYe6jTKlMyiH2J9jeWjaRdV0dIKVdxMyS0cJpf6n32Lb3HQ+g9RcEXeywC4ZV5SXHfYTv3WlJcAmKmCktPS9ErQ3FmttcKT6xO1C7S2IQViXE1Q/Ml7go9+hUzMNvJLxfW2O1TjmeS/uspK5a5Ln+/f4qQx70h87Cf25kNsFrLPxakgcV/I+giMALa2ilWODhbpGRC/PdO3M/LUxVtenz0jgczq//S9uvMLHt0qDP5IXVVQIUJ6tzT+UAyOCEh4HRYP5wIRpHwqA4xyWcAvgRXIGT1K/fLDuxl2VENmVY9H1H7Keh3kKdf77nA+T/6bIiig7+0jt9LVDKrTqKektGLghaahOQSTM=
on:
tags: true