Skip to content
Snippets Groups Projects
Commit 85449348 authored by Bruno Pinto's avatar Bruno Pinto
Browse files

Run tests on Travis osx and linux machines

Unfortunately we can't use docker anymore in order to support automatic
build on OSX.
parent 74d4e90f
No related merge requests found
language: c
dist: trusty
sudo: required sudo: required
language: generic
services: os:
- docker - linux
- osx
addons:
apt:
packages:
- bc
- doxygen
- expect
- gettext
- libncurses5-dev
- tree
env: env:
global: global:
...@@ -10,19 +23,22 @@ env: ...@@ -10,19 +23,22 @@ env:
before_install: before_install:
- source tools/travis-github-pr-integration.sh - source tools/travis-github-pr-integration.sh
- tools/travis-install-fish.sh
before_script: before_script:
- docker build --build-arg OMF_REPO_BRANCH=$OMF_REPO_BRANCH --build-arg OMF_REPO_URI=$OMF_REPO_URI -t oh-my-fish . < Dockerfile - tree -h
- docker run -t oh-my-fish /usr/bin/fish -c "export; tree -h" - export
- fish $TRAVIS_BUILD_DIR/bin/install
script: script:
- docker run -t oh-my-fish /usr/bin/fish "tests/run.fish" - tests/run.fish
- docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/fish-spec; fish-spec" - pushd pkg/fish-spec; fish -c 'fish-spec'; popd
- docker run -t oh-my-fish /usr/bin/fish -c "cd pkg/omf; fish-spec" - pushd pkg/omf; fish -c 'fish-spec'; popd
- docker run -t oh-my-fish /usr/bin/fish "tests/test-generate-themes-doc.fish" - tests/test-generate-themes-doc.fish
after_failure: after_failure:
- docker ps -a - pwd
- cd ~/.config/fish; tree -h; find . -type f | xargs cat
notifications: notifications:
email: email:
......
tests/run.fish 100644 → 100755
File mode changed from 100644 to 100755
#!/usr/bin/env bash
set -o pipefail
set -o errexit
set -o nounset
#set -o xtrace
# Return if we are not in a Pull Request
if [[ "$TRAVIS_OS_NAME" = "linux" ]]; then
sudo apt-add-repository -y ppa:fish-shell/release-2
sudo apt-get update
sudo apt-get install -y fish
else
brew update
brew install fish tree
fi
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment