Skip to content

Commit

Permalink
ci: add minimal setup
Browse files Browse the repository at this point in the history
  • Loading branch information
FFY00 committed Sep 8, 2018
1 parent 4e4ab34 commit 3c1b0b5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
sudo: false
language: bash
dist: xenial

install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyenv global system 3.6; fi
- pip3 install pkgcheck-arch

script:
- bash run-tests.sh
14 changes: 14 additions & 0 deletions run-tests.sh
@@ -0,0 +1,14 @@
#!/bin/bash

CHANGED_FILES=($(git diff --name-only $TRAVIS_COMMIT_RANGE))

for FILE in $CHANGED_FILES; do

# Check PKGBUILD for errors/warnings
if [[ $(basename $FILE) == "PKGBUILD" ]]; then
pkgcheck $FILE
fi

# TODO: try to build

done

0 comments on commit 3c1b0b5

Please sign in to comment.