-
Notifications
You must be signed in to change notification settings - Fork 40
/
.travis.yml
80 lines (62 loc) · 1.92 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
# Based on the "trust" template v0.1.2
# https://github.com/japaric/trust/tree/v0.1.2
# Ubuntu versions:
# https://docs.travis-ci.com/user/reference/linux/
dist: xenial
sudo: false
language: python
notifications:
email: change
matrix:
include:
# Python versions:
# https://docs.travis-ci.com/user/languages/python/#python-versions
- os: linux
python: "3.4"
- os: linux
python: "3.7"
- os: linux
python: "3.8"
- os: linux
python: "3.9"
- os: linux
python: "3.10"
- os: osx
# python comes with `osx_image`, see
# https://blog.travis-ci.com/2019-08-07-extensive-python-testing-on-travis-ci
language: shell
osx_image: xcode10.2
- os: osx
language: shell
osx_image: xcode12.2
branches:
only:
- master
- travis
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libgtk-3-dev
- libgtk-3-0
- libstdc++-6-pic
before_install:
- set -e
- python3 --version
install:
- export SDK_PATH=https://raw.githubusercontent.com/c-smile/sciter-sdk/master
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then curl -so "$TRAVIS_BUILD_DIR/libsciter-gtk.so" $SDK_PATH/bin.lnx/x64/libsciter-gtk.so; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then curl -so "$TRAVIS_BUILD_DIR/libsciter.dylib" $SDK_PATH/bin.osx/libsciter.dylib; fi
- pip3 install -U pip
- pip3 install -U pytest
before_script:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:$TRAVIS_BUILD_DIR"; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then cp "$TRAVIS_BUILD_DIR/libsciter.dylib" "$TRAVIS_BUILD_DIR/liblibsciter.dylib"; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$TRAVIS_BUILD_DIR"; fi
- export PATH="$PATH:$TRAVIS_BUILD_DIR"
- export LIBRARY_PATH="$LIBRARY_PATH:$TRAVIS_BUILD_DIR"
script:
- python3 setup.py develop
- python3 tests/test_value.py
after_script: set +e