Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Travis CI builds #39

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: php

php:
- 5.6
- 7.1
- 7.2
- nightly

matrix:
fast_finish: true
allow_failures:
- php: nightly

cache:
directories:
- $HOME/.composer/cache

before_install:
- export PATH="$HOME/.composer/vendor/bin:$PATH"

- composer global require drush/drush:~8.1.5

- ./build.sh new

script:
- echo "There are no tests yet, but the build passed."
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,10 @@ class Maker:

# Ensure directories exist
def _precheck(self):
# Most of the time a files directory will already exist, but primarily for initial builds, it won't.
if not os.path.isdir('files'):
os.mkdir('files')

# Remove old build it if exists
if os.path.isdir(self.temp_build_dir):
shutil.rmtree(self.temp_build_dir)
Expand Down
2 changes: 1 addition & 1 deletion conf/kadaproject.make
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ libraries[colorbox][download][url] = https://github.com/jackmoore/colorbox/archi

; Openlayers library
libraries[openlayers][download][type] = get
libraries[openlayers][download][url] = https://github.com/openlayers/openlayers/releases/download/release-2.13.1/OpenLayers-2.13.1.zip
libraries[openlayers][download][url] = https://github.com/openlayers/ol2/archive/release-2.13.1.zip

; Contrib modules
; ------------
Expand Down