Skip to content

Commit

Permalink
Initial drop of ZeeQL3Apache
Browse files Browse the repository at this point in the history
  • Loading branch information
helje5 committed May 29, 2017
0 parents commit ba3ad09
Show file tree
Hide file tree
Showing 33 changed files with 4,457 additions and 0 deletions.
85 changes: 85 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xcuserstate

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

# hh
.libs
*.la
*.lo
*.slo
*.so
build
*.build
Debug
Release
*.pid
*.xcscmblueprint

*~
*.o
Packages

Package.pins

31 changes: 31 additions & 0 deletions .travis.d/before-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/bash

if [[ "$TRAVIS_OS_NAME" == "Linux" ]]; then
sudo apt-get install -y wget \
clang-3.6 libc6-dev make git libicu52 libicu-dev \
git autoconf libtool pkg-config \
libblocksruntime-dev \
libkqueue-dev \
libpthread-workqueue-dev \
systemtap-sdt-dev \
libbsd-dev libbsd0 libbsd0-dbg \
curl libcurl4-openssl-dev \
libedit-dev \
python2.7 python2.7-dev \
\
pkg-config libapr1-dev libaprutil1-dev \
libxml2 apache2 apache2-dev \
libaprutil1-dbd-sqlite3 \
libaprutil1-dbd-pgsql

# Not available on Trusty: libnghttp2-dev

sudo update-alternatives --quiet --install /usr/bin/clang clang /usr/bin/clang-3.6 100
sudo update-alternatives --quiet --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
else
echo "OS: $TRAVIS_OS_NAME"
brew tap modswift/mod_swift
brew update
brew install homebrew/apache/httpd24 --with-mpm-event --with-http2
brew install mod_swift
fi
55 changes: 55 additions & 0 deletions .travis.d/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash

if [[ "$TRAVIS_OS_NAME" == "Linux" ]]; then

# our path is:
# /home/travis/build/NozeIO/Noze.io/

# Install Swift

wget "${SWIFT_SNAPSHOT_NAME}"

TARBALL="`ls swift-*.tar.gz`"
echo "Tarball: $TARBALL"

TARPATH="$PWD/$TARBALL"

cd $HOME # expand Swift tarball in $HOME
tar zx --strip 1 --file=$TARPATH
pwd

export PATH="$PWD/usr/bin:$PATH"
which swift

if [ `which swift` ]; then
echo "Installed Swift: `which swift`"
else
echo "Failed to install Swift?"
exit 42
fi
swift --version


# Environment

TT_SWIFT_BINARY=`which swift`

echo "${TT_SWIFT_BINARY}"


# Install mod_swift

wget "${MOD_SWIFT}" -O mod_swift.tar.gz
tar zxf mod_swift.tar.gz
cd mod_swift-*
make all
sudo make install

swift apache validate


# Go back somewhere

cd $HOME

fi
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: generic

notifications:
slack: nozeio:LIFY1Jtkx0FRcLq3u1WliHRZ

matrix:
include:
- os: Linux
dist: trusty
env: MOD_SWIFT="https://github.com/modswift/mod_swift/archive/0.8.0.tar.gz" SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-3.0.2-release/ubuntu1404/swift-3.0.2-RELEASE/swift-3.0.2-RELEASE-ubuntu14.04.tar.gz"
sudo: required
- os: Linux
dist: trusty
env: MOD_SWIFT="https://github.com/modswift/mod_swift/archive/0.8.0.tar.gz" SWIFT_SNAPSHOT_NAME="https://swift.org/builds/swift-3.1.1-release/ubuntu1404/swift-3.1.1-RELEASE/swift-3.1.1-RELEASE-ubuntu14.04.tar.gz"
sudo: required
- os: osx
osx_image: xcode8.2

before_install:
- ./.travis.d/before-install.sh

install:
- ./.travis.d/install.sh

script:
- export PATH="$HOME/usr/bin:$PATH"
- swift build
Loading

0 comments on commit ba3ad09

Please sign in to comment.