-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
37 lines (32 loc) · 1.15 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
language: node_js
node_js: 5
cache:
directories:
- node_modules/
before_install:
- npm install -g aurelia-cli
- pip install requests
- pip install beautifulsoup4 --user
- pip install lxml --user
script:
- ci/build_app.sh
after_success:
- file_prefix="churchconnect_mobile-app"
- commit_hash=`git rev-parse --short HEAD`
- label="`date +%Y%m%d%H%M-$commit_hash`"
- mv android.apk ${file_prefix}_android-$label.apk
- mv iphone.ipa ${file_prefix}_ios-$label.ipa
- mv phonegap_code.zip ${file_prefix}_phonegap_src-$label.zip
- s3base_url="https://s3.amazonaws.com/$ARTIFACTS_BUCKET/mobile-app/unstable"
- ipa_url="$s3base_url/${file_prefix}_ios-$label.ipa"
- manifest_url="$s3base_url/${file_prefix}_ios-$label/manifest.plist"
- ci/generate_manifest.py $ipa_url
- ci/generate_manifest_link.py $label $manifest_url
- mkdir ${file_prefix}_ios-$label
- mv manifest.plist ${file_prefix}_ios-$label/manifest.plist
- mv build_link.html ${file_prefix}_ios-$label/index.html
addons:
artifacts:
paths: $(ls *.apk *.zip *.ipa ${file_prefix}_ios-$label/* | tr "\n" ":")
target_paths: mobile-app/unstable/
permissions: public-read