This repository has been archived by the owner on May 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
65 lines (58 loc) · 1.67 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
language: generic
matrix:
include:
- os: linux
dist: bionic
language: cpp
compiler: gcc
env: LANGUAGE=cpp
- os: linux
dist: bionic
language: cpp
compiler: gcc
env: LANGUAGE=python
- os: osx
osx_image: xcode9.4
language: cpp
compiler: clang
env: LANGUAGE=cpp
addons:
homebrew:
packages:
- cmake
#update: true
- os: osx
osx_image: xcode9.4
language: cpp
compiler: clang
env: LANGUAGE=python
addons:
homebrew:
packages:
- cmake
- swig
#update: true
- os: windows
language: cpp
env: LANGUAGE=cpp
script:
- cmake -S . -B build
- cmake --build build --target test
- os: windows
language: cpp
env: LANGUAGE=python
script:
- choco install python swig -y
#Reload path
- eval $(powershell -NonInteractive -Command 'write("export PATH=`"" + ([Environment]::GetEnvironmentVariable("PATH","Machine") + ";" + [Environment]::GetEnvironmentVariable("PATH","User")).replace("\","/").replace("C:","/c").replace(";",":") + ":`$PATH`"")')
- pip install numpy wheel
- cmake -S . -B build -DBUILD_PYTHON=ON -DCMAKE_GENERATOR_PLATFORM=x64
- cmake --build build --config Release
- cmake --build build --config Release --target test
- pip install build/python/parflowio/
- cd python/
- python test.py
install:
- ./.travis/install.sh
script:
- ./.travis/script.sh