This repository has been archived by the owner on Mar 12, 2022. It is now read-only.
forked from HaxeFoundation/haxelib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
115 lines (111 loc) · 3.97 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
env:
global:
# deploy_key_decrypt
- secure: "cWYcbB7z97sW4yZtz9qcYrEhFZktNjQMOraPm7Vy0FsCMqb4r314Fk8rJze+yDbOKGdsIz6VNHE8nlsQN3EgGiVFJnF8xv6GAlfHPuaVomP2vO7W0A+l7xVy2/326MQJP8JoMgdebDi71yxKeEhYA+mVliI9qql9yfD2YOBmilQ="
matrix:
include:
# haxe development + neko master
- os: linux
sudo: required
dist: trusty
env:
- TRAVIS_HAXE_VERSION=development
- DEPLOY=1
before_install:
- sudo add-apt-repository ppa:haxe/snapshots -y
- sudo apt-get update
- sudo apt-get install haxe=1:3.3* neko-dev libapache2-mod-neko mysql-server mysql-client -y
- mkdir ~/haxelib && haxelib setup ~/haxelib
- sudo usermod -a -G travis www-data
# haxe 3.2.1 + neko 2.1.0
- os: linux
language: haxe
haxe: 3.2.1
sudo: required
dist: trusty
env:
- USE_DOCKER=1
services: [docker]
before_install:
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::=--force-confnew install docker-engine -y
- docker --version
# https://docs.travis-ci.com/user/docker/#Using-Docker-Compose
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# haxe 3.1.3 + neko 2.0.0
- os: linux
language: haxe
haxe: 3.1.3
sudo: required
dist: trusty
env:
- USE_DOCKER=1
services: [docker]
before_install:
- sudo apt-get update
- sudo apt-get -o Dpkg::Options::=--force-confnew install docker-engine -y
- docker --version
# https://docs.travis-ci.com/user/docker/#Using-Docker-Compose
- sudo rm -f /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
# Mac
- os: osx
language: haxe
haxe: development
- os: osx
language: haxe
haxe: 3.2.1
- os: osx
language: haxe
haxe: 3.1.3
install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew update;
fi
- npm -g install bower
- yes | haxelib install all
- yes | haxelib install tora
# We need https://github.com/ufront/ufront-uftasks/commit/1ef09322eb51cf5d16bc1f9abeecaeb30542b62f
- if [ "${TRAVIS_HAXE_VERSION}" = "development" ]; then
yes | haxelib git ufront-uftasks https://github.com/ufront/ufront-uftasks.git;
fi
# We need https://github.com/ufront/ufront-ufadmin/commit/4558fe0bb3534cda53396bc3b4b099a867f5b6a6
- if [ "${TRAVIS_HAXE_VERSION}" = "development" ]; then
yes | haxelib git ufront-ufadmin https://github.com/ufront/ufront-ufadmin.git;
fi
# Make sure hscript is >= 2.0.5
- yes | haxelib update hscript
# Make sure hscript is > 0.1.4
- yes | haxelib update mcli
# copy aws.ndll to the right place
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
sudo cp $(haxelib config)/aws-sdk-neko/*/ndll/Mac64/aws.ndll ${NEKOPATH}/aws.ndll;
fi;
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
if [ "${TRAVIS_HAXE_VERSION}" = "development" ]; then
sudo cp $(haxelib config)/aws-sdk-neko/*/ndll/Linux64/aws.ndll /usr/lib/x86_64-linux-gnu/neko/aws.ndll;
elif [ "${TRAVIS_HAXE_VERSION}" = "3.2.1" ]; then
sudo cp $(haxelib config)/aws-sdk-neko/*/ndll/Linux64/aws.ndll ${NEKOPATH}/aws.ndll;
fi;
fi;
- haxelib list
- haxelib run tora > /dev/null 2>&1 &
script:
# run our CI script
- haxe ci.hxml
deploy:
provider: elasticbeanstalk
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
region: $AWS_REGION
app: $EB_APP
env: ${TRAVIS_BRANCH}-lib-haxe-org
bucket_name: $EB_BUCKET
on:
all_branches: true
condition: $AWS_ACCESS_KEY && $DEPLOY && ($TRAVIS_BRANCH = master || $TRAVIS_BRANCH = development)