Skip to content

Commit

Permalink
build custom haxe on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfitz committed Mar 21, 2015
1 parent 21a3e6f commit b5d16e8
Showing 1 changed file with 16 additions and 52 deletions.
68 changes: 16 additions & 52 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1,20 @@
language: cpp

os:
- linux
- osx

env:
global:
# SAUCE_USERNAME
- secure: SjyKefmjUEXi0IKHGGpcbLAajU0mLHONg8aA8LoY7Q9nAkSN6Aql+fzS38Boq7w1jWn+2FOpr+4jy0l6wVd/bftsF+huFfYpFJmdh8BlKmE0K71zZAral0H1c7YxkuQpPiJCIFGXqtkvev7SWTy0z31u7kuuQeEyW27boXe5cDA=
# SAUCE_ACCESS_KEY
- secure: sUvWUjCyPuWht4seNa4f2VG9DkvXkhZyLZfjJO9TUAHB2JndS16E2j/qrvKEjycyH6w8tU/B9vnjDRvvGrYXxEXcBEwsJVfkorFnRl9uwGCGIYrzjMhssEl3fMYZK7P304f+gAp5ULrDBX2gIaKeSa8lUNRtz2PsZOieE4kMdhk=
matrix:
- TEST=third-party
- TEST=macro
- TEST=neko
- TEST=js
- TEST=php
- TEST=cpp
- TEST=flash9
- TEST=as3
- TEST=java
- TEST=cs
- TEST=python

matrix:
# fast_finish: true #https://github.com/travis-ci/travis-ci/issues/1696

before_script:
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then mysql -u root -e "CREATE DATABASE haxe_test;"; fi

- linux
install:
- if [ -z "${TRAVIS_OS_NAME}" ]; then export TRAVIS_OS_NAME=linux; fi; # for our forks that do not have mult-os enabled.
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then travis_retry sudo apt-get update -qq; travis_retry sudo apt-get install ocaml zlib1g-dev libgc-dev -qq; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew update; travis_retry brew install caskroom/cask/brew-cask; travis_retry brew install ocaml camlp4; fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then travis_retry git clone https://github.com/HaxeFoundation/neko.git ~/neko && cd ~/neko && make os=${TRAVIS_OS_NAME} -s && sudo make install -s && cd $TRAVIS_BUILD_DIR; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then travis_retry brew install neko --HEAD; fi

- echo "yes" | sudo add-apt-repository ppa:avsm/ocaml41+opam10
- travis_retry sudo apt-get update -qq; travis_retry sudo apt-get install ocaml -qq
script:
- make -s
- make tools -s
- sudo make install -s
- cd tests/
- mkdir ~/haxelib && haxelib setup ~/haxelib
- haxelib git hx-yaml https://github.com/mikestead/hx-yaml master src
- haxe -version
- haxe -neko RunCi.n -main RunCi -lib hx-yaml
- neko RunCi.n

notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/95a5fa471c27beee8e7c
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
- sed -i "s|INSTALL_DIR=/usr|INSTALL_DIR=$PWD/dist/haxerb|" Makefile
- mkdir -p dist/haxerb/bin
- make
- make install
- cd dist; zip -q -r haxerb haxerb; cd ..
deploy:
provider: releases
api_key:
secure: i109Iq34IA9QYF+Zf5WnieLzGdbbHlwl0QnHUXb4PKmB4vgTxwMRXSanPjM2I0/r5vuQiiuYuNTR6kfM6nbW6iyMjjoz/WB2W8/7LGCQCP8Fza46H18K2S3bEnvIPVQcfenjymPhoZ3JoTu9WubSj/LbDWZwPwqzP5Vb6HVwO9A=
file: dist/haxerb.zip
on:
tags: true
all_branches: true

0 comments on commit b5d16e8

Please sign in to comment.