forked from synthetos/g2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (61 loc) · 3.72 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
language: c
before_install:
- sudo apt-get update -q
install:
- sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
script:
- cd ${TRAVIS_BUILD_DIR}/g2core
- make VERBOSE=1 COLOR=0 CONFIG=TestV9
- make VERBOSE=1 COLOR=0 CONFIG=Othermill
- make VERBOSE=1 COLOR=0 CONFIG=sbv300
- make VERBOSE=1 COLOR=0 CONFIG=PrintrbotPlus
- make VERBOSE=1 COLOR=0 CONFIG=PrintrbotSimple1403
- make VERBOSE=1 COLOR=0 CONFIG=PrintrbotSimple1608
- make VERBOSE=1 COLOR=0 CONFIG=PrintrbotPlay
# The tools take a while to download, and are rarely changed,
# so we'll cache them. This is also nicer on launchpad, who hosts the arm tools.
cache:
directories:
Motate/Tools/
before_deploy:
- cd ${TRAVIS_BUILD_DIR}/g2core
- mv bin/Othermill-g2v9k/g2core.elf bin/g2core-Othermill-g2v9k-${TRAVIS_TAG}.elf
- mv bin/Othermill-g2v9k/g2core.bin bin/g2core-Othermill-g2v9k-${TRAVIS_TAG}.bin
- mv bin/TestV9-g2v9k/g2core.elf bin/g2core-TestV9-g2v9k-${TRAVIS_TAG}.elf
- mv bin/TestV9-g2v9k/g2core.bin bin/g2core-TestV9-g2v9k-${TRAVIS_TAG}.bin
- mv bin/sbv300-sbv300/g2core.elf bin/g2core-sbv300-sbv300-${TRAVIS_TAG}.elf
- mv bin/sbv300-sbv300/g2core.bin bin/g2core-sbv300-sbv300-${TRAVIS_TAG}.bin
- mv bin/PrintrbotPlus-printrboardG2v3/g2core.elf bin/g2core-PrintrbotPlus-printrboardG2v3-${TRAVIS_TAG}.elf
- mv bin/PrintrbotPlus-printrboardG2v3/g2core.bin bin/g2core-PrintrbotPlus-printrboardG2v3-${TRAVIS_TAG}.bin
- mv bin/PrintrbotSimple1403-printrboardG2v3/g2core.elf bin/g2core-PrintrbotSimple1403-printrboardG2v3-${TRAVIS_TAG}.elf
- mv bin/PrintrbotSimple1403-printrboardG2v3/g2core.bin bin/g2core-PrintrbotSimple1403-printrboardG2v3-${TRAVIS_TAG}.bin
- mv bin/PrintrbotSimple1608-printrboardG2v3/g2core.elf bin/g2core-PrintrbotSimple1608-printrboardG2v3-${TRAVIS_TAG}.elf
- mv bin/PrintrbotSimple1608-printrboardG2v3/g2core.bin bin/g2core-PrintrbotSimple1608-printrboardG2v3-${TRAVIS_TAG}.bin
- mv bin/PrintrbotPlay-printrboardG2v3/g2core.elf bin/g2core-PrintrbotPlay-printrboardG2v3-${TRAVIS_TAG}.elf
- mv bin/PrintrbotPlay-printrboardG2v3/g2core.bin bin/g2core-PrintrbotPlay-printrboardG2v3-${TRAVIS_TAG}.bin
deploy:
provider: releases
# We'll mark these as prerelease, and we can later unmark them by hand.
# OR, when we move to Master, we remove this setting.
prerelease: true
api_key:
secure: SFQe2M+qWfu4Lm4Q4W6v+JkSv0d8u5/K6MpEBPT6KUvFcIJb0fm7aHzFcZ03Ul8cx9yjmuGbNGId1hNUXCWxM+MeaIWqnx1cvJAEIQpjZV0nQ6yHeO//jX5PRmEBykNmq/GLqILbHkRAFRxBC4TwtBcRFlS/p7kEC9q3tNac5gg=
skip_cleanup: true
file:
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-Othermill-g2v9k-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-Othermill-g2v9k-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-TestV9-g2v9k-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-TestV9-g2v9k-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-sbv300-sbv300-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-sbv300-sbv300-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotPlus-printrboardG2v3-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotPlus-printrboardG2v3-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotSimple1403-printrboardG2v3-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotSimple1403-printrboardG2v3-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotSimple1608-printrboardG2v3-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotSimple1608-printrboardG2v3-${TRAVIS_TAG}.bin
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotPlay-printrboardG2v3-${TRAVIS_TAG}.elf
- ${TRAVIS_BUILD_DIR}/g2core/bin/g2core-PrintrbotPlay-printrboardG2v3-${TRAVIS_TAG}.bin
on:
repo: synthetos/g2
tags: true