Skip to content

Commit 91dfb41

Browse files
committed
Switch files for new build process.
1 parent cafc445 commit 91dfb41

File tree

3 files changed

+18
-49
lines changed

3 files changed

+18
-49
lines changed

.travis.yml

Lines changed: 15 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,24 @@
1-
# Travis CI configuration for automated .mpy file generation.
2-
# Author: Tony DiCola
3-
# License: Public Domain
4-
# This configuration will work with Travis CI (travis-ci.org) to automacially
5-
# build .mpy files for MicroPython when a new tagged release is created. This
6-
# file is relatively generic and can be shared across multiple repositories by
7-
# following these steps:
8-
# 1. Copy this file into a .travis.yml file in the root of the repository.
9-
# 2. Change the deploy > file section below to list each of the .mpy files
10-
# that should be generated. The config will automatically look for
11-
# .py files with the same name as the source for generating the .mpy files.
12-
# Note that the .mpy extension should be lower case!
13-
# 3. Commit the .travis.yml file and push it to GitHub.
14-
# 4. Go to travis-ci.org and find the repository (it needs to be setup to access
15-
# your github account, and your github account needs access to write to the
16-
# repo). Flip the 'ON' switch on for Travis and the repo, see the Travis
17-
# docs for more details: https://docs.travis-ci.com/user/getting-started/
18-
# 5. Get a GitHub 'personal access token' which has at least 'public_repo' or
19-
# 'repo' scope: https://help.github.com/articles/creating-an-access-token-for-command-line-use/
20-
# Keep this token safe and secure! Anyone with the token will be able to
21-
# access and write to your GitHub repositories. Travis will use the token
22-
# to attach the .mpy files to the release.
23-
# 6. In the Travis CI settings for the repository that was enabled find the
24-
# environment variable editing page: https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
25-
# Add an environment variable named GITHUB_TOKEN and set it to the value
26-
# of the GitHub personal access token above. Keep 'Display value in build
27-
# log' flipped off.
28-
# 7. That's it! Tag a release and Travis should go to work to add .mpy files
29-
# to the release. It takes about a 2-3 minutes for a worker to spin up,
30-
# build mpy-cross, and add the binaries to the release.
31-
language: generic
1+
# This is a common .travis.yml for generating library release zip files for
2+
# CircuitPython library releases using circuitpython-build-tools.
3+
# See https://github.com/adafruit/circuitpython-build-tools for detailed setup
4+
# instructions.
325

33-
sudo: true
6+
dist: trusty
7+
sudo: false
8+
language: python
9+
python:
10+
- "3.6"
11+
12+
cache:
13+
pip: true
3414

3515
deploy:
3616
provider: releases
3717
api_key: $GITHUB_TOKEN
38-
file:
39-
- "neopixel.mpy"
18+
file_glob: true
19+
file: bundles/*
4020
skip_cleanup: true
4121
on:
4222
tags: true
4323

44-
before_install:
45-
- sudo apt-get -yqq update
46-
- sudo apt-get install -y build-essential git python python-pip
47-
- git clone https://github.com/adafruit/micropython.git
48-
- cd micropython
49-
- git checkout stable
50-
- cd ..
51-
- make -C micropython/mpy-cross
52-
- export PATH=$PATH:$PWD/micropython/mpy-cross/
53-
- sudo pip install shyaml
54-
55-
before_deploy:
56-
- shyaml get-values deploy.file < .travis.yml | sed 's/.mpy/.py/' | xargs -L1 mpy-cross
24+
script: circuitpython-build-bundles --filename_prefix adafruit-circuitpython-neopixel --library_location .

readthedocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
python:
2+
version: 3
13
requirements_file: requirements.txt
2-

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1+
circuitpython-travis-build-tools

0 commit comments

Comments
 (0)