Commit Graph

64 Commits

Author SHA1 Message Date
Damien Elmes
e4bce71f2b need to invoke make for pull-i18n
suggestions on a more elegant want to avoid executing these rules
every time without needing to invoke make welcome!
2020-02-26 20:07:55 +10:00
Damien Elmes
2555990c9c fix pull-i18n running on every build 2020-02-26 18:32:47 +10:00
Damien Elmes
cd0a09c865 fetch qt/ftl/repo on first build
needs to happen prior to develop step to ensure qt translations
get compiled into rspy
2020-02-26 18:01:05 +10:00
Damien Elmes
46fadc2a82 don't abort build if mo file fails; rename files for consistency
Issues are now checked for in CI, so there's no need to break the
build for everyone each time there's a problem with the gettext
catalogs.
2020-02-26 17:47:02 +10:00
Damien Elmes
a333e2024b add shortcut to update translations to makefile 2020-02-25 15:32:11 +10:00
evandrocoan
47ccd6638d Added -o pipefail to all set -e ensuring the build fails when some
operation with pipe exits error status.

# Conflicts:
#	Makefile
2020-02-24 20:18:56 -03:00
Damien Elmes
fb8f753d2d update rslib version automatically 2020-02-17 08:40:17 +10:00
Damien Elmes
c29faa9d86 run rs checks before setting up py env 2020-02-17 08:40:16 +10:00
Damien Elmes
97e3602c14 fix build from tarball 2020-02-03 08:55:05 +10:00
Damien Elmes
bce24586ea run make run by default 2020-02-03 08:55:00 +10:00
Damien Elmes
c010bb0a37 make sure pyenv is active when fixing 2020-01-10 13:07:12 +10:00
Glutanimate
8ff506f184 Split root develop steps into separate develop target
Allows development tools to directly debug qt/runanki while using
`make develop` as a debugging pre-launch task.
2020-01-08 21:44:46 +01:00
Damien Elmes
fe18594c50 more makefile fixes
can't rely on SHELLFLAGS on macOS
2020-01-07 18:19:18 +10:00
Damien Elmes
f3a6a661fe ensure a failed check aborts build 2020-01-06 13:15:20 +10:00
Damien Elmes
f4649b515f be explicit about hash length
different git versions have different defaults
2020-01-05 12:20:35 +10:00
Damien Elmes
a4d38d65a6 fix buildhash not being updated 2020-01-05 10:28:48 +10:00
Damien Elmes
c27701da49 fix missing develop step in make check 2020-01-04 12:36:27 +10:00
Damien Elmes
c6de8d3ea4 split up build steps in top level makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
1c1fbde733 move top level scripts into makefile 2020-01-04 12:21:58 +10:00
Damien Elmes
b23b6fbe35 move the separate components back into this monorepo
Earlier today I pushed a change that split this code up into multiple
repos, but that has proved to complicate things too much. So we're
back to a single repo, except the individual submodules are better
separated than they were before.

The README files need updating again; I will push them out soon.

Aside from splitting out the different modules, the sound code has
moved from from anki to aqt.
2020-01-02 19:43:19 +10:00
Damien Elmes
4cead7effc add comment about make install 2019-12-30 21:53:11 +10:00
Damien Elmes
2ad7f6afc6 check depends on build 2019-12-27 08:40:46 +10:00
Damien Elmes
3f0b4ff3f6 isort tests; black/isort should notice changes to tests 2019-12-26 07:36:26 +10:00
Damien Elmes
ad703f9631 drop oneshell from makefile
It's preventing @ prefixes on subsequent lines from being honored.
2019-12-25 16:05:01 +10:00
Damien Elmes
e5c4618a9a format tests 2019-12-25 14:18:34 +10:00
Damien Elmes
3e1b474dca bridge->backend 2019-12-25 08:59:33 +10:00
Damien Elmes
c4dc40d0db ignore dot files and generated files when determining rust deps 2019-12-24 19:57:55 +10:00
Damien Elmes
280b010493 generate type stubs for Protobuf; disable pylint on rsbridge 2019-12-24 19:57:54 +10:00
Damien Elmes
b54c127372 switch to Google's (C++) Protobuf implementation
Brings the 100 field test down from 3 secs to 0.15 secs.

"betterproto" indeed!
2019-12-24 19:57:54 +10:00
Damien Elmes
252a0cb54f use protobuf for python/rust bridge
If we go ahead with betterproto on the Python side, it will mean
bumping the minimum Python dependency to 3.7.
2019-12-24 19:57:54 +10:00
Damien Elmes
e893294ee4 add rust checks, and clean up the makefile 2019-12-24 19:57:54 +10:00
Damien Elmes
7733e03360 make it possible to implement functionality in Rust 2019-12-24 19:57:54 +10:00
Damien Elmes
bbbfb50998 py-test needs to depend on test files 2019-12-24 10:46:02 +10:00
Damien Elmes
f2a7e4685c give up on pytype
the fix/check/fix cycle is infuriating slow
2019-12-23 11:58:26 +10:00
Damien Elmes
9ebc15c748 add black, update for new isort
people updating from a previous build, make sure you run
pip install --reinstall requirements.check
2019-12-23 10:31:47 +10:00
Damien Elmes
530961f264 js build doesn't require python deps 2019-12-22 19:29:26 +10:00
Damien Elmes
291472b52b fix race condition in build scripts
- pip dependencies need to be installed sequentially
- move the individual check deps back into a separate file
- qt type hints not required for 'make run'
2019-12-22 10:19:50 +10:00
Damien Elmes
5075fc23f6 remove pytype from 'make check', and split up dev deps 2019-12-22 08:56:47 +10:00
Damien Elmes
795f36aeb0 add comment about pretty to makefile 2019-12-20 20:37:29 +10:00
Damien Elmes
c1587254f4 use isort to tidy up imports 2019-12-20 19:19:29 +10:00
Damien Elmes
5fbe9ff048 rebuild gui if any icons change 2019-12-19 21:11:27 +10:00
Damien Elmes
06b2cb1875 update make instructions 2019-12-19 07:46:25 +10:00
Damien Elmes
99502e20ea ignore buildhash when checking if tests need to be re-run 2019-12-18 21:06:47 +10:00
Damien Elmes
c15f71071e fix broken js building
- deps need to be defined before used
- incremental builds were not working properly
2019-12-18 17:56:58 +10:00
Damien Elmes
aab765292a individual build rules need to depend on prereqs 2019-12-18 17:28:23 +10:00
Damien Elmes
71c0e23b77 do typecheck setup as part of prereqs install 2019-12-18 17:18:24 +10:00
Damien Elmes
d7d0d9bf88 add prettier, tidy up makefile 2019-12-18 16:12:02 +10:00
Damien Elmes
a98c0c6791 automatically install deps as part of build 2019-12-18 15:09:46 +10:00
Damien Elmes
685962faae make checks depend on full build 2019-12-18 14:52:53 +10:00
Damien Elmes
f3bfed82ef compile typescript in one go
much faster, especially with --incremental
2019-12-18 14:33:57 +10:00