forked from daniel5151/ANESE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
47 lines (41 loc) · 1.04 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
language: cpp
os:
- linux
- osx
compiler:
- gcc
- clang
addons:
apt:
packages:
- libsdl2-dev
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]
then
brew install SDL2
fi
after_success:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" && "$CXX" == "clang++" ]]
then
brew install gdrive
ARCHIVE="ANESE_macOS_`date +"%Y%m%d"`_`echo $TRAVIS_BRANCH`_`git rev-parse --short HEAD`.zip"
echo "Creating $ARCHIVE"
cd $TRAVIS_BUILD_DIR/bin
cp -R ../roms/demos ./
zip -r $ARCHIVE ANESE.app demos
echo "Starting Google Drive upload"
echo "Uploading commit"
gdrive upload --refresh-token $GDRIVE_REFRESH_TOKEN --parent $GDRIVE_MACOS_FOLDER $ARCHIVE
echo "Updating ANESE_macOS_latest.zip"
mv $ARCHIVE ANESE_macOS_latest.zip
gdrive update --refresh-token $GDRIVE_REFRESH_TOKEN 1wodUcWpAT9q4y12YPZ-QOrbvDUNcnZ2I ANESE_macOS_latest.zip
echo "Finished Google Drive upload"
fi
script:
- mkdir build
- cd build
- cmake ..
- make
- make install