forked from simdsoft/1kiss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
49 lines (44 loc) · 1.14 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
language: c
matrix:
include:
- os: osx
osx_image: xcode9.4
if: branch = main
env:
- BUILD_TARGET=ios
- BUILD_ARCH=arm
- TRAVIS_CI=true
install:
- echo "Nothing to install"
script:
- BUILDWARE_ROOT=`pwd`
- INSTALL_ROOT="install_${BUILD_TARGET}_${BUILD_ARCH}"
- mkdir -p "buildsrc"
- source 1k/build1.sh luajit $BUILD_TARGET $BUILD_ARCH $INSTALL_ROOT
- export INSTALL_ROOT=$INSTALL_ROOT
- zip -q -r ${INSTALL_ROOT}.zip ${INSTALL_ROOT}
before_deploy:
# Set up git user name and tag this commit
- export TRAVIS_TAG=artifacts-$(git log --format=%h -1)
- echo "$TRAVIS_TAG" "$TRAVIS_COMMIT"
- git config --local user.name "release-bot"
- git config --local user.email "release-bot@users.noreply.github.com"
- git tag "$TRAVIS_TAG" "$TRAVIS_COMMIT"
deploy:
provider: releases
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: $TRAVIS_TAG
overwrite: true
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file:
- install_ios_arm.zip
on:
branch: main
repo: adxeproject/buildware
notifications:
email:
on_success: never
on_failure: always