-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23c9397
commit 44fcca3
Showing
26 changed files
with
309 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "src/pearllib/static/buava"] | ||
path = src/pearllib/static/buava | ||
url = https://github.com/fsquillace/buava | ||
[submodule "integ-tests/test-utils"] | ||
path = integ-tests/test-utils | ||
[submodule "ci/test-utils"] | ||
path = ci/test-utils | ||
url = https://github.com/pearl-core/test-utils.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.0.0 | ||
2.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
export TWINE_REPOSITORY="https://test.pypi.org/legacy/" | ||
export TWINE_USER="fsquillace" | ||
|
||
[[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYTHON_VERSION" == "3.5" ]] && [[ "$TRAVIS_BRANCH" == "master" ]] && make release-ci | ||
|
||
export TWINE_REPOSITORY="https://pypi.org/legacy/" | ||
|
||
[[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$PYTHON_VERSION" == "3.5" ]] && [[ "$TRAVIS_BRANCH" == "master" ]] && make release-ci |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
VERSION=$1 | ||
|
||
cd /tmp | ||
wget http://ftp.gnu.org/gnu/bash/bash-$VERSION.tar.gz | ||
|
||
tar -zxf bash-$VERSION.tar.gz | ||
cd /tmp/bash-$VERSION* | ||
./configure | ||
make | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
VERSION=$1 | ||
|
||
cd /tmp | ||
wget https://github.com/fish-shell/fish-shell/releases/download/$VERSION/fish-$VERSION.tar.gz | ||
tar -xzf fish-$VERSION.tar.gz | ||
cd /tmp/fish-$VERSION && ./configure && make && sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
VERSION=$1 | ||
|
||
cd /tmp | ||
wget https://github.com/git/git/archive/v$VERSION.tar.gz | ||
|
||
tar -zxf v$VERSION.tar.gz | ||
cd /tmp/git-$VERSION* | ||
# Update NO_GETTEXT to fix the problem of missing libintl in OSX (http://stackoverflow.com/a/11370808/967489): | ||
# CFLAGS and LDFLAGS needs to be updated in OSX (https://www.atlassian.com/git/tutorials/install-git/mac-os-x) | ||
export NO_GETTEXT=1 | ||
make CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" configure | ||
./configure | ||
make CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" all | ||
sudo make CFLAGS="-I/usr/local/opt/openssl/include" LDFLAGS="-L/usr/local/opt/openssl/lib" install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
sudo apt-get -qq update | ||
sudo apt-get install -y zsh bash git | ||
|
||
BASE_NAME="$(dirname $0)" | ||
|
||
"${BASE_NAME}"/install-fish.sh "$TRAVIS_FISH_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
# Gettext is required for installing git from source code | ||
sudo apt-get install gettext | ||
|
||
BASE_NAME="$(dirname $0)" | ||
|
||
"${BASE_NAME}"/install-bash.sh "$TRAVIS_BASH_VERSION" | ||
"${BASE_NAME}"/install-zsh.sh "$TRAVIS_ZSH_VERSION" | ||
"${BASE_NAME}"/install-fish.sh "$TRAVIS_FISH_VERSION" | ||
"${BASE_NAME}"/install-git.sh "$TRAVIS_GIT_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
set -ex | ||
|
||
brew update | ||
brew install bash zsh grep gnu-sed | ||
# Coreutils and git should be already installed on OSX 7.3+ images: | ||
#brew install coreutils git | ||
|
||
BASE_NAME="$(dirname $0)" | ||
|
||
"${BASE_NAME}"/install-fish.sh "$TRAVIS_FISH_VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -ex | ||
brew update | ||
brew install grep gnu-sed | ||
# Coreutils and git should be already installed on OSX 7.3+ images: | ||
#brew install coreutils git | ||
# Openssl is required for installing git from source code | ||
# Findutils is required for `fonts` Pearl package | ||
brew install openssl findutils | ||
|
||
BASE_NAME="$(dirname $0)" | ||
|
||
"${BASE_NAME}"/install-bash.sh "$TRAVIS_BASH_VERSION" | ||
"${BASE_NAME}"/install-zsh.sh "$TRAVIS_ZSH_VERSION" | ||
"${BASE_NAME}"/install-fish.sh "$TRAVIS_FISH_VERSION" | ||
"${BASE_NAME}"/install-git.sh "$TRAVIS_GIT_VERSION" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
VERSION=$1 | ||
|
||
cd /tmp | ||
wget http://downloads.sourceforge.net/project/zsh/zsh/$VERSION/zsh-$VERSION.tar.gz | ||
|
||
tar -zxf zsh-$VERSION.tar.gz | ||
cd /tmp/zsh-$VERSION* | ||
# The option --without-tcsetpgrp is required for OSX | ||
./configure --without-tcsetpgrp | ||
make | ||
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env sh | ||
|
||
hash -r | ||
git --version | ||
bash --version | ||
zsh --version | ||
fish --version | ||
./tests/bunit/bin/checkstyle.sh ./bin/ ./lib/ | ||
./tests/bunit/bin/unit-tests.sh ./tests/unit-tests | ||
bash ./tests/test-utils/integ-tests/integ-tests.sh | ||
zsh ./tests/test-utils/integ-tests/integ-tests.sh | ||
fish ./tests/test-utils/integ-tests/integ-tests.fish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This is the Travis yml file template. | ||
# Copy this to the Pearl package. | ||
# | ||
# vim: ft=yaml | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
language: bash | ||
|
||
sudo: required | ||
|
||
env: | ||
- TRAVIS_BASH_VERSION="4.1" TRAVIS_ZSH_VERSION="5.0.0" TRAVIS_FISH_VERSION="2.2.0" TRAVIS_GIT_VERSION="1.8.0" | ||
|
||
before_install: | ||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./tests/test-utils/installs/install-linux-deps.sh; fi; | ||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./tests/test-utils/installs/install-osx-deps.sh; fi; | ||
|
||
install: | ||
- curl -sL https://git.io/vV4yE | sh | ||
- source ~/.bashrc | ||
- echo "PEARL_PACKAGES['test']='${PWD}'" >> ~/.config/pearl/pearl.conf | ||
|
||
script: | ||
- bash ./tests/test-utils/integ-tests/default-integ-tests.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env fish | ||
|
||
source "$HOME/.config/fish/config.fish" | ||
|
||
pearl install test | ||
|
||
# Fish trap may not work from time to time. | ||
# Forcing the sourcing here: | ||
source "$HOME/.config/fish/config.fish" | ||
|
||
if [ ! -d "$PEARL_HOME/packages/default/test" ] | ||
echo 'Error: The package `test` does not exist after installing it.' | ||
exit 1 | ||
end | ||
|
||
# From here is where you can add the integ tests for your packages | ||
source ./tests/integ-tests/integ-tests-common.sh | ||
|
||
pearl update test | ||
|
||
pearl remove test | ||
|
||
# vim: ft=sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
set -e | ||
|
||
[ -n "$BASH_VERSION" ] && source "$HOME/.bashrc" | ||
[ -n "$ZSH_VERSION" ] && source "$HOME/.zshrc" | ||
|
||
pearl install test | ||
|
||
if [ ! -d "$PEARL_HOME/packages/default/test" ]; then | ||
echo 'Error: The package `test` does not exist after installing it.' | ||
exit 1 | ||
fi | ||
|
||
# set -x option enabled by default as a reminder. | ||
# Let the consumer decide whether to disable it or not. | ||
set -x | ||
|
||
# From here is where you can add the integ tests for your packages | ||
source ./tests/integ-tests/integ-tests-common.sh | ||
|
||
set +x | ||
|
||
pearl update test | ||
|
||
pearl remove test | ||
|
||
# vim: ft=sh |
Oops, something went wrong.