forked from nxt-dev/nxt_editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 1023 Bytes
/
.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
language: python
branches:
only:
- release
- dev
python:
- "3.7"
services:
- xvfb
env:
- QT_CI_PACKAGES=qt.qt5.5132.gcc_64,qt.qt5.5132.qtwebengine PATH="$TRAVIS_BUILD_DIR/Qt/5.13.2/gcc_64/bin:${PATH}"
before_install:
- |
if [ "$TRAVIS_BRANCH" = "dev" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then
echo "Push to dev, not running tests until PR"
exit 0
else
echo "Doing the build"
fi
install:
- cd ..
- git clone https://github.com/nxt-dev/nxt.git
- pip install ./nxt
- pip install ./nxt_editor
- pip install twine
- sudo apt-get install -y libxkbcommon-x11-0
- sudo apt-get install -y libgl1-mesa-dev
script:
- |
if [ "$TRAVIS_BRANCH" = "release" ] && [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
python -m nxt.cli test
exit $?
fi
- |
if [ "$TRAVIS_BRANCH" = "release" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then
python -m nxt.cli exec nxt/build/packaging.nxt -s /make_and_upload
exit $?
fi