Skip to content

Commit

Permalink
Merge pull request #6 from nxt-dev/dev
Browse files Browse the repository at this point in the history
Travis Test 5
  • Loading branch information
ImLucasBrown authored Nov 23, 2020
2 parents 4ea62fe + 4ab729f commit da92ce7
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,37 @@ branches:
python:
- "3.7"

addons:
apt:
packages:
- libxkbcommon-x11-0
- libgl1-mesa-dev

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 git+ssh://git@github.com/nxt-dev/nxt.git
- pip install ./nxt
- pip install ./nxt_editor
- sudo apt-get install -y libxkbcommon-x11-0
- sudo apt-get install -y libgl1-mesa-dev

script:
- python nxt/ci.py
- |
if [ "$TRAVIS_BRANCH" = "release" ] && [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then
python -m nxt.cli test
exit 0
fi
- |
if [ "$TRAVIS_BRANCH" = "release" ] && [ "$TRAVIS_EVENT_TYPE" = "push" ]; then
python -m nxt.cli exec nxt/build/packaging.nxt -s /make_and_test_upload
exit 0
fi

0 comments on commit da92ce7

Please sign in to comment.